]> git.parisson.com Git - teleforma.git/commitdiff
add chars info
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 16 Dec 2013 22:24:34 +0000 (23:24 +0100)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 16 Dec 2013 22:24:34 +0000 (23:24 +0100)
teleforma/templates/teleforma/answer_detail.html

index c8037611d27757a4d8f89c9da732a71ef28a6599..091226db925cb3f1cbd7ffb9290aea510b5297c8 100644 (file)
@@ -33,7 +33,7 @@ $('#reject').unbind('click').click(function() {
 
 <div class="course_content">
   <div class="course_subtitle">
-   <h3><img src="{{ STATIC_URL }}telemeta/images/item_title.png" width="10px" alt="" /> {{ answer.question|safe }}</h3>
+   <h3><img src="{{ STATIC_URL }}telemeta/images/item_title.png" width="10px" alt="" /> {{ answer.question|safe }} ({{ answer.question.min_nchars }} {% trans "characters"})</h3>
   </div>
   <div style="text-align: justify;">
     {{ answer.question.question|safe }}
@@ -44,7 +44,7 @@ $('#reject').unbind('click').click(function() {
 
 <div class="course_content">
 <div class="course_subtitle">
-   <h3><img src="{{ STATIC_URL }}telemeta/images/item_title.png" width="10px" alt="" /> {% trans "Answer" %}{% if answer.question.rank %} n° {{ answer.question.rank }}{% endif %}</h3>
+   <h3><img src="{{ STATIC_URL }}telemeta/images/item_title.png" width="10px" alt="" /> {% trans "Answer" %}{% if answer.question.rank %} n° {{ answer.question.rank }}{% endif %} ({{ answer.answer|length }} {% trans "characters"})</h3>
   </div>
   <div style="text-align: justify; padding: .5em;">
     {{ answer.answer|safe }}