- <div class="headQuestions">\r
- {% if searchtag %}\r
- {% trans "Found by tags" %}\r
- {% else %}\r
- {% if searchtitle %}\r
- {% if settings.USE_SPHINX_SEARCH %}\r
- {% trans "Search results" %}\r
- {% else %}\r
- {% trans "Found by title" %}\r
- {% endif %}\r
- {% else %}\r
- {% if is_unanswered %}\r
- {% trans "Unanswered questions" %}\r
- {% else %}\r
- {% trans "All questions" %}\r
- {% endif %}\r
- {% endif %}\r
- {% endif %}\r
- </div>\r
- <div class="tabsA">\r
- <a id="latest" href="{% if is_search %}{{ search_uri }}&{% else %}?{% endif %}sort=latest" class="off" title="{% trans "most recently asked questions" %}">{% trans "newest" %}</a>\r
- <a id="active" href="{% if is_search %}{{ search_uri }}&{% else %}?{% endif %}sort=active" class="off" title="{% trans "most recently updated questions" %}">{% trans "active" %}</a>\r
- <a id="hottest" href="{% if is_search %}{{ search_uri }}&{% else %}?{% endif %}sort=hottest" class="off" title="{% trans "hottest questions" %}">{% trans "hottest" %}</a>\r
- <a id="mostvoted" href="{% if is_search %}{{ search_uri }}&{% else %}?{% endif %}sort=mostvoted" class="off" title="{% trans "most voted questions" %}">{% trans "most voted" %}</a> \r
- </div>\r
-</div>\r
-<div id="listA">\r
- {% for question in questions.object_list %}\r
- <div class="qstA"\r
- {% if request.user.is_authenticated %}\r
- {% if question.interesting_score > 0 %}\r
- style="background:#ffff99;"\r
- {% else %}\r
- {% if not request.user.hide_ignored_questions %}\r
- {% if question.ignored_score > 0 %}\r
- style="background:#f3f3f3;"\r
- {% endif %}\r
- {% endif %}\r
- {% endif %}\r
- {% endif %}\r
- >\r
- <h2>\r
- <a href="{{ question.get_absolute_url }}">{{ question.get_question_title }}</a>\r
- </h2>\r
- <div class="stat">\r
- <table>\r
- <tr>\r
- <td><span class="num">{{ question.answer_count|intcomma }}</span> </td>\r
- <td><span class="num">{{ question.score|intcomma }}</span> </td>\r
- <td><span class="num">{{ question.view_count|cnprog_intword|safe }}</span> </td>\r
- </tr> \r
- <tr>\r
- <td><span class="unit">{% trans "answers" %}</span></td>\r
- <td><span class="unit">{% trans "votes" %}</span></td>\r
- <td><span class="unit">{% trans "views" %}</span></td>\r
- </tr> \r
- </table>\r
- </div>\r
- \r
- <div class="summary">\r
- {{ question.summary }}... \r
- </div>\r
- \r
- {% ifequal tab_id 'active'%}\r
- {% if question.wiki and settings.WIKI_ON %}\r
- <span class="from wiki">{% trans "community wiki" %}</span>\r
- <span class="date" title="{{ question.added_at }}">{% diff_date question.added_at %}</span>\r
- {% else %}\r
- <div class="from">\r
- {% comment %}{% gravatar question.last_activity_by 24 %}{% endcomment %}\r
- <span class="author"><a href="{{ question.last_activity_by.get_profile_url }}">{{ question.last_activity_by }}</a></span>\r
- <span class="score">{% get_score_badge question.last_activity_by %} </span>\r
- <span class="date" title="{{ question.last_activity_at }}">{% diff_date question.last_activity_at %}</span>\r
- </div>\r
- {% endif %}\r
- {% else %}\r
- {% if question.wiki and settings.WIKI_ON %}\r
- <span class="from wiki">{% trans "community wiki" %}</span>\r
- <span class="date" title="{{ question.added_at }}">{% diff_date question.added_at %}</span>\r
- {% else %}\r
- <div class="from">\r
- {% comment %}{% gravatar question.author 24 %}{% endcomment %}\r
- {% if question.last_activity_at != question.added_at %}\r
- {% if question.author.id != question.last_activity_by.id %}\r
- {% trans "Posted:" %}\r
- <span class="author"><a href="{{ question.author.get_profile_url }}">{{ question.author }}</a></span>\r
- <span class="score">{% get_score_badge question.author %} </span>\r
- / {% trans "Updated:" %}\r
- <span class="author"><a href="{{ question.last_activity_by.get_profile_url }}">{{ question.last_activity_by }}</a></span>\r
- <span class="score">{% get_score_badge question.last_activity_by %} </span>\r
- <span class="date" title="{{ question.last_activity_at }}">{% diff_date question.last_activity_at %}</span>\r
- {% else %}\r
- {% trans "Updated:" %}\r
- <span class="author"><a href="{{ question.last_activity_by.get_profile_url }}">{{ question.last_activity_by }}</a></span>\r
- <span class="score">{% get_score_badge question.last_activity_by %} </span>\r
- <span class="date" title="{{ question.last_activity_at }}">{% diff_date question.last_activity_at %}</span>\r
- {% endif %}\r
- {% else %}\r
- {% trans "Posted:" %}\r
- <span class="author"><a href="{{ question.author.get_profile_url }}">{{ question.author }}</a></span>\r
- <span class="score">{% get_score_badge question.author %} </span>\r
- <span class="date" title="{{ question.added_at }}">{% diff_date question.added_at %}</span>\r
- {% endif %}\r
- </div>\r
- {% endif %}\r
- {% endifequal %}\r
- \r
- <div class="tags">\r
- {% 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>\r
- {% endfor %}\r
- </div>\r
- </div>\r
- {% endfor %}\r
- {% if searchtitle %}\r
- {% if questions_count == 0 %}\r
- <p class="evenMore" style="padding-top:30px;text-align:center;">\r
- {% trans "Did not find anything?" %}\r
- {% else %}\r
- <p class="evenMore" style="padding-left:9px">\r
- {% trans "Did not find what you were looking for?" %} \r
- {% endif %}\r
- <a href="{% url ask %}">{% trans "Please, post your question!" %}</a>\r
- </p>\r
- {% endif %}\r