<commit_before>{% extends "mobile/base.html" %}

{# L10n: {0} is an addon name. #}
{% block title %}{{ page_title(_('Reviews for {0}')|f(addon.name)) }}{% endblock %}

{% block back_link %}
  <a class="back-link" href="{{ addon.get_url_path() }}">&laquo; {{ addon.name }}</a>
{% endblock %}

{% block bodyclass %}text-listing reviews{% endblock %}

{% block page %}

{% if not addon.total_reviews %}
  {{ _('No ratings yet.') }}
{% else %}

<h2>{{ _('Rating') }}</h2>
<section class="copy">
  {{ addon.average_rating|float|stars }}
  {{ ngettext('Average from {0} Rating', 'Average from {0} Ratings',
              addon.total_reviews)|f(addon.total_reviews|numberfmt) }}
  {% include "reviews/grouped_ratings.html" %}
</section>

<h2>{{ _('Reviews') }}</h2>
<section class="copy">
{% for review in reviews.object_list %}
  <div class="review">
    {% if review.title %}
      <h3>{{ review.title }}</h3>
    {% endif %}
    {{ review.rating|float|stars }}
    {% trans user=review.user|user_link %}
      by {{ user }}<commit_msg>Un-linking usernames in mobile reviews (bug 637785)<commit_after>{% extends "mobile/base.html" %}

{# L10n: {0} is an addon name. #}
{% block title %}{{ page_title(_('Reviews for {0}')|f(addon.name)) }}{% endblock %}

{% block back_link %}
  <a class="back-link" href="{{ addon.get_url_path() }}">&laquo; {{ addon.name }}</a>
{% endblock %}

{% block bodyclass %}text-listing reviews{% endblock %}

{% block page %}

{% if not addon.total_reviews %}
  {{ _('No ratings yet.') }}
{% else %}

<h2>{{ _('Rating') }}</h2>
<section class="copy">
  {{ addon.average_rating|float|stars }}
  {{ ngettext('Average from {0} Rating', 'Average from {0} Ratings',
              addon.total_reviews)|f(addon.total_reviews|numberfmt) }}
  {% include "reviews/grouped_ratings.html" %}
</section>

<h2>{{ _('Reviews') }}</h2>
<section class="copy">
{% for review in reviews.object_list %}
  <div class="review">
    {% if review.title %}
      <h3>{{ review.title }}</h3>
    {% endif %}
    {{ review.rating|float|stars }}
    {% trans user=review.user.name %}
      by {{ user }}
{'fraction_non_alphanumeric': 0.22195704057279236, 'fraction_numerical': 0.014319809069212411, 'mean_word_length': 4.026378896882494, 'pattern_counts': {'":': 0, '<': 27, '<?xml version=': 0, '>': 27, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4149220', 'n_tokens_mistral': 839, 'n_tokens_neox': 753, 'n_words': 164}