<commit_before>{% extends "sakai/base.html" %}{% load molly_sakai %}{% load molly_utils %}{% load i18n %}

{% block content %}

{% if poll.mayVote %}
<form method="POST" action="">
  {% csrf_token %}
{% endif %}

<div class="section">
  <div class="header">
    <h2>{{ poll.text }}</h2>

    {% if error %}
      <div class="sakai-error-message">
        <p>
          {{ error }}
        </p>
      </div>
    {% endif %}

    {% if not poll.hasVoted and not poll.isOpen %}
      <div class="sakai-error-message">
        <p>
          {% if poll.hasClosed %}
              {% blocktrans with poll.voteClose|timesince as time_since_closed %}You are unable to vote in this poll as it closed {{ time_since_closed }} ago.{% endblocktrans %}
          {% else %}
              {% blocktrans with poll.voteOpen|timeuntil as time_until_open %}This poll has not yet opened. Please try again in {{ time_until_open }}.{% endblocktrans %}
          {% endif %}
        </p>
      </div>
    {% endif %}
    {% if not poll.hasVoted and poll.isOpen %}
      <div class="sakai-notice-message">
        {% blocktrans with pollvoteClose|timeuntil as time_until_close %}This poll closes {{ time_until_close }} from now.{% endblocktrans %}<commit_msg>corrected error in sakai/poll/detail template<commit_after>{% extends "sakai/base.html" %}{% load molly_sakai %}{% load molly_utils %}{% load i18n %}

{% block content %}

{% if poll.mayVote %}
<form method="POST" action="">
  {% csrf_token %}
{% endif %}

<div class="section">
  <div class="header">
    <h2>{{ poll.text }}</h2>

    {% if error %}
      <div class="sakai-error-message">
        <p>
          {{ error }}
        </p>
      </div>
    {% endif %}

    {% if not poll.hasVoted and not poll.isOpen %}
      <div class="sakai-error-message">
        <p>
          {% if poll.hasClosed %}
              {% blocktrans with poll.voteClose|timesince as time_since_closed %}You are unable to vote in this poll as it closed {{ time_since_closed }} ago.{% endblocktrans %}
          {% else %}
              {% blocktrans with poll.voteOpen|timeuntil as time_until_open %}This poll has not yet opened. Please try again in {{ time_until_open }}.{% endblocktrans %}
          {% endif %}
        </p>
      </div>
    {% endif %}
    {% if not poll.hasVoted and poll.isOpen %}
      <div class="sakai-notice-message">
        {% blocktrans with poll.voteClose|timeuntil as time_until_close %}This poll closes {{ time_until_close }} from now.{% endblocktrans %}
{'fraction_non_alphanumeric': 0.15381542149420696, 'fraction_numerical': 0.0031961646024770275, 'mean_word_length': 2.6080691642651295, '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': '6098851', 'n_tokens_mistral': 876, 'n_tokens_neox': 779, 'n_words': 214}