{# TODO(jbalogh): make this a global fix: bug 551748 #} {% set amo_user = user.get_profile() if user.is_authenticated() else None %} {% if addon.can_review(amo_user) %} {{ _('close') }}

{{ _('What do you think?') }}

{% if not user.is_authenticated() %}

{% trans login=login_link() %} Please log in to submit a review {% endtrans %}

{% endif %}
{% set attrs = {} if user.is_authenticated() else {'disabled': 'disabled'} %} {{ csrf() }} {{ field(review_form.body, _('Review:'), **attrs) }} {{ field(review_form.rating, _('Rating:'), **attrs) }}

{% if webapp %} {{ loc('Please do not post bug reports in reviews. We do not make your email address available to app developers and they may need to contact you to help resolve your issue.') }} {% else %} {% trans %} Please do not post bug reports in reviews. We do not make your email address available to add-on developers and they may need to contact you to help resolve your issue. {% endtrans %} {% endif %}

{% if addon.support_url or addon.support_email %}

{% with support=request.path + '#support' %} {% if webapp %} {{ loc('See the support section to find out where to get assistance for this app.')|f( support=support)|safe }} {% else %} {% trans %} See the support section to find out where to get assistance for this add-on. {% endtrans %} {% endif %} {% endwith %}

{% endif %} {% if not webapp %}

{{ _('Review Guidelines') }}

{% endif %}

{{ _('Detailed Review') }}

{# /#review-box #} {% endif %}{# /is_author #}