<commit_before>{% load i18n %}
{% load deck_tags %}


<div class="text-center">
  {% if request.user|already_voted:proposal %}
    <h5 class="text-success">
      <i class="icon-ok"></i>
      {% trans "Rated." %}
    </h5>
  {% elif request.user|allowed_to_vote:proposal %}
    {% for value, name in vote_rates %}
      <a href="{% url 'rate_proposal' event_slug=proposal.event.slug slug=proposal.slug rate=name %}" class="flat-icon" title="{{ name|title }}">
        <i class="{{ name }} black"></i>
      </a>
    {% endfor %}
  {% elif proposal.author_id == request.user.id %}
    <a href="{% url 'update_proposal' event_slug=event.slug slug=proposal.slug %}" class="flat-icon">
      <i class="update black"></i>
    </a>
  {% endif %}
</div><commit_msg>Show the Update buttons for the Admin too.<commit_after>{% load i18n %}
{% load deck_tags %}


<div class="text-center">
  {% if proposal.author_id == request.user.id or request.user.is_superuser %}
    <a href="{% url 'update_proposal' event_slug=event.slug slug=proposal.slug %}" class="flat-icon">
      <i class="update black"></i>
    </a>
  {% endif %}
  {% if request.user|already_voted:proposal %}
    <h5 class="text-success">
      <i class="icon-ok"></i>
      {% trans "Rated." %}
    </h5>
  {% elif request.user|allowed_to_vote:proposal %}
    {% for value, name in vote_rates %}
      <a href="{% url 'rate_proposal' event_slug=proposal.event.slug slug=proposal.slug rate=name %}" class="flat-icon" title="{{ name|title }}">
        <i class="{{ name }} black"></i>
      </a>
    {% endfor %}
  {% endif %}
</div>
{'fraction_non_alphanumeric': 0.1996221662468514, 'fraction_numerical': 0.005037783375314861, 'mean_word_length': 3.4138888888888888, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '5145133', 'n_tokens_mistral': 598, 'n_tokens_neox': 554, 'n_words': 119}