]> git.openstreetmap.org Git - osqa.git/blobdiff - forum/skins/default/templates/question_list/item.html
Make RequestHolder thread-safe
[osqa.git] / forum / skins / default / templates / question_list / item.html
index 19cbb36fd860a7f1471d05ab1e7284aa7fdcb77e..1ad2ba5c8e98859e3da6cb9843e79e651fcec7a8 100644 (file)
             <div>{% ifequal question.answer_count 1 %}{% trans "answer" %}{% else %}{% trans "answers" %}{% endifequal %}</div>\r
         </div>\r
         <div class="views">\r
-             <div class="item-count">{{question.view_count|cnprog_intword|safe}}</div>\r
+             <div class="item-count">{{question.view_count|decorated_int|safe}}</div>\r
              <div>{% ifequal question.view_count 1 %}{% trans "view" %}{% else %}{% trans "views" %}{% endifequal %}</div>\r
         </div>\r
     </div>\r
 \r
     <div class="question-summary-wrapper">\r
-        <h2><a title="{{ question.summary }}" href="{{ question.get_absolute_url }}">{{question.headline}}</a></h2>\r
+        <h2><a {% if not question_summary %}title="{{ question.summary }}"{% endif %} href="{{ question.get_absolute_url }}">{{question.headline}}</a></h2>\r
+        {% if question_summary %}\r
+        <div class="summary">\r
+          {{ question.summary }}\r
+        </div>\r
+        {% endif %}\r
         <div class="userinfo">\r
             <span class="relativetime" title="{{question.last_activity_at}}">{% diff_date question.last_activity_at %}</span>\r
             {% if question.last_activity_by %}{% user_signature question.last_activity_by signature_type %}{% endif %}\r
         </div>\r
 \r
         <div class="tags">{% for tag in question.tagname_list %}\r
-            <a href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}' {% trans "using tags" %}" rel="tag">{{ tag }}</a>{% endfor %}\r
+            <a class="tag-link-{{ tag }}" href="{% url tag_questions tag|urlencode %}" title="{% trans "see questions tagged" %} '{{ tag }}'" rel="tag">{{ tag }}</a>{% endfor %}\r
         </div>\r
     </div>\r
 \r