{% from "devhub/includes/macros.html" import tip, some_html_tip, empty_unless, flags %}

{{ _('Technical Details') }} {% if not editable %} {{ _('Edit') }} {% endif %}

{# L10n: {0} is an addon name #} {% if show_listed_fields %} {% if addon.current_version.is_jetpack %} {% endif %} {% endif %}
{{ _('Technical Details for {0}')|fe(addon.name) }}
{% if editable %} {{ form.developer_comments }} {{ form.developer_comments.errors }} {{ some_html_tip() }} {% else %} {% call empty_unless(addon.developer_comments) %}
{{ addon|all_locales('developer_comments') }}
{% endcall %} {% endif %}
{{ _('Required Add-ons') }} {% if editable %} {{ _('Limit 3') }} {% endif %} {% if editable %} {% include "devhub/addons/edit/technical_dependencies.html" %} {% else %} {% set deps = addon.all_dependencies %} {% call empty_unless(deps) %} {% endcall %} {% endif %}
{{ tip(_("Add-on Flags"), _("These flags are used to classify add-ons. It is only " "relevant for listed add-ons.")) }}
{{ flags(_("This is a site-specific add-on."), form.site_specific if editable else addon.site_specific, editable) }} {{ flags(_("This add-on requires external software."), form.external_software if editable else addon.external_software, editable) }} {% if not editable %} {% call empty_unless(addon.site_specific or addon.external_software) %}{% endcall %} {% endif %}
{{ tip(_("View Source?"), _("Whether the source of your add-on can be displayed in our " "online viewer. It is only relevant for listed add-ons.")) }} {{ flags(_("This add-on's source code is publicly viewable."), addon.view_source if not editable else form.view_source, editable, _("No, this add-on's source code is not publicly viewable.")) }}
{{ tip(_("Public Stats?"), _("Whether the download and usage stats of your add-on can " "be displayed in our online viewer. " "It is only relevant for listed add-ons.")) }} {{ flags(_("This add-on's stats are publicly viewable."), addon.public_stats if not editable else form.public_stats, editable, _("No, this add-on's stats are not publicly viewable.")) }}
{{ tip(_('Upgrade SDK?'), _("If selected, we will try to automatically upgrade your " "add-on when a new version of the SDK is released. " "It is only relevant for listed add-ons.")) }} {{ flags(_('This add-on will be automatically upgraded to new versions of the Add-on SDK.'), form.auto_repackage if editable else addon.auto_repackage, editable, _('No, this add-on will be upgraded manually.')) }}
{{ _('UUID') }} ? {{ addon.guid }}
{{ _('Whiteboard') }} ? {% if editable %} {{ form.whiteboard }} {% else %} {% call empty_unless(addon.whiteboard) %}{{ addon.whiteboard }}{% endcall %} {% endif %}
{% if editable %} {% endif %}