|
| 1 | +<h3>{{ distro_tag(amo.CHANNEL_LISTED)}} {{ _('Listing visibility') }}</h3> |
| 2 | +<div class="item" id="addon-current-state"> |
| 3 | + <div class="item_wrapper"> |
| 4 | + {% if addon.status == amo.STATUS_REJECTED %} |
| 5 | + <label><input name="addon-state" value="disabled" type="radio" |
| 6 | + {% if addon.status == amo.STATUS_DISABLED %}disabled="disabled"{% endif %} |
| 7 | + {% if not addon.is_disabled %}checked="checked"{% endif %} |
| 8 | + data-url="{{ addon.get_dev_url('rejected_review_request') }}" |
| 9 | + class="rejected_review_request"> |
| 10 | + {{ _("{label_open}Rejected:{label_close} Add-on listing content is rejected. It won't be included in search results, " |
| 11 | + "and its product page will be unavailable. New listed version submissions won't be accepted in this state.")|format_html( |
| 12 | + label_open='<strong>'|safe, label_close='</strong>'|safe, site_url=settings.SITE_URL)|safe }}</label> |
| 13 | + {% else %} |
| 14 | + <label><input name="addon-state" value="listed" type="radio" |
| 15 | + {% if addon.status == amo.STATUS_DISABLED %}disabled="disabled"{% endif %} |
| 16 | + {% if not addon.is_disabled %}checked="checked"{% endif %} |
| 17 | + data-url="{{ addon.get_dev_url('enable') }}" |
| 18 | + class="enable-addon"> |
| 19 | + {{ _("{label_open}Visible:{label_close} Visible to everyone on {site_url} and included " |
| 20 | + "in search results and product pages.")|format_html( |
| 21 | + label_open='<strong>'|safe, label_close='</strong>'|safe, site_url=settings.SITE_URL)|safe }}</label> |
| 22 | + {% endif %} |
| 23 | + |
| 24 | + <br> |
| 25 | + <label><input name="addon-state" value="hidden" type="radio" |
| 26 | + {% if addon.status == amo.STATUS_DISABLED %}disabled="disabled"{% endif %} |
| 27 | + {% if addon.is_disabled %}checked="checked"{% endif %} |
| 28 | + class="disable-addon"> |
| 29 | + {{ _("{label_open}Invisible:{label_close} Won't be included in search results, and its product page will " |
| 30 | + "indicate you disabled it. New version submissions for product " |
| 31 | + "won't be accepted in this state.")|format_html( |
| 32 | + label_open='<strong>'|safe, label_close='</strong>'|safe) }}</label> |
| 33 | + |
| 34 | + {% if addon.status == amo.STATUS_REJECTED %} |
| 35 | + <div> |
| 36 | + {{ _('Our review found that your listing content violates the following Mozilla policy or policies:') }} |
| 37 | + <ul> |
| 38 | + {% for text in rejected_policy_texts %} |
| 39 | + <li>{{ text }}</li> |
| 40 | + {% endfor %} |
| 41 | + </ul> |
| 42 | + {% if rejection_manual_reasoning_text %}{{ rejection_manual_reasoning_text }}. {% endif %} |
| 43 | + </div> |
| 44 | + <div> |
| 45 | + {{ _('To address these issues, please update your listing content and submit a new version for review.') }} |
| 46 | + <button class="rejected_review_request" |
| 47 | + data-url="{{ addon.get_dev_url('rejected_review_request') }}"> |
| 48 | + {{ _('I have addressed the issues and request a review') }} |
| 49 | + </button> |
| 50 | + </div> |
| 51 | + {% endif %} |
| 52 | + </div> |
| 53 | +</div> |
0 commit comments