]> git.parisson.com Git - teleforma.git/commitdiff
fix message button from script
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 24 Jun 2021 10:38:07 +0000 (12:38 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 24 Jun 2021 10:38:07 +0000 (12:38 +0200)
teleforma/exam/templates/exam/script_detail.html

index 9ed42ac7da4536c2d8ede0bffc49cf270ccdf60d..fbc2fd7536412aeb9c22ee2ba70edcacaf9af5f1 100644 (file)
     <a href="{% url 'teleforma-desk-period-course' period.id script.course.id %}">{{ script.title }}</a>
 
     <div style="float: right; font-size: 0.9em;">
-        <a href="{% url 'postman:write' script.author.username %}" class="component_icon button icon_ok">{% trans "Send a message" %}</a>
+        {% if user.quotas.all %}
+            <a href="{% url 'postman:write' script.author.username %}" class="component_icon button icon_next">{% trans "Send a message" %}</a>
+        {% endif %}
         {% if topic.file %}
-        <a id="topic" href="{% url 'teleforma-document-download' topic.id %}" class="component_icon button icon_download">&nbsp;{% trans "Topic" %}</a>
+            <a id="topic" href="{% url 'teleforma-document-download' topic.id %}" class="component_icon button icon_download">&nbsp;{% trans "Topic" %}</a>
         {% endif %}
         {% if script.score %}
-        <a id="score" href="#" class="component_icon button icon_ok"> {% trans "Score" %} : {{ script.score|floatformat }}/20</a>
-        <a id="opener_comments" href="#" class="component_icon button icon_ok"> {% trans "Comments" %}</a>
-{#        <a id="opener_print" href="#" class="component_icon button icon_download"> {% trans "Imprimer" %}</a>#}
+            <a id="score" href="#" class="component_icon button icon_ok"> {% trans "Score" %} : {{ script.score|floatformat }}/20</a>
+            <a id="opener_comments" href="#" class="component_icon button icon_ok"> {% trans "Comments" %}</a>
+{#          <a id="opener_print" href="#" class="component_icon button icon_download"> {% trans "Imprimer" %}</a>#}
         {% elif script.status == 0 %}
-        <a href="#" class="component_icon button icon_delete">{% trans "Rejected" %}</a>
+            <a href="#" class="component_icon button icon_delete">{% trans "Rejected" %}</a>
         {% else %}
          {% if user.quotas.all %}
                <a id="opener_mark" href="#" class="component_icon button icon_edit"> {% trans "Scoring" %}</a>