Skip to content

Commit

Permalink
don't offer writing reviews to an addon's author (bug 678892)
Browse files Browse the repository at this point in the history
  • Loading branch information
potch committed Aug 17, 2011
1 parent c68bc2b commit d0b0441
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions apps/addons/templates/addons/impala/review_list_box.html
Expand Up @@ -40,10 +40,12 @@ <h3>
{% else %}
<div class="review no-reviews">
<h3>
{% trans url = url('reviews.add', addon.slug) %}
This add-on has not yet been reviewed.
<a href="{{ url }}">Be the first!</a>
{% endtrans %}
{{ _('This add-on has not yet been reviewed.') }}
{% if not addon.has_author(amo_user) %}
<a href="{{ url('reviews.add', addon.slug) }}">
{{ ('Be the first!') }}
</a>
{% endif %}
</h3>
</div>
{% endif %}
Expand Down

0 comments on commit d0b0441

Please sign in to comment.