.questions-count {
color: #A40000;
font-family: sans-serif;
.questions-count {
color: #A40000;
font-family: sans-serif;
font-weight: 600;
margin-top: 3px;
font-weight: 600;
margin-top: 3px;
padding: 0 0 5px 0;
}
.boxA {
padding: 0 0 5px 0;
}
.boxA {
- background: none repeat scroll 0 0 #888A85;
- margin-bottom: 8px;
- padding: 6px;
+ background: none repeat scroll 0 0 #888A85;
+ margin-bottom: 8px;
+ padding: 6px;
});
</script>
{% endif %}
});
</script>
{% endif %}
-
- {% block forejs %}
- {% endblock %}
+
+ <link rel="search" type="application/opensearchdescription+xml" href="open_search.xml" title="Web Search" />
</head>
<body>
<div class="notify" style="display:none">
</head>
<body>
<div class="notify" style="display:none">
{% endblock %}
</body>
</html>
{% endblock %}
</body>
</html>
-<!-- end template base.html -->
+ <!-- end template base.html -->
{% load humanize %}\r
\r
<div class="boxC">\r
{% load humanize %}\r
\r
<div class="boxC">\r
- <div class="questions-count">{{ questions_count }}</div>\r
- <p>{{ list_description }}</p>\r
+ <div class="questions-count">\r
+ {{ questions_count }}<span style="color:black;font-size:14px;margin-left:5px">{{ list_description }}</span>\r
+ </div>\r
+\r
+\r
+ {% if answer_count %}\r
+ <div class="questions-count" style="color:green">\r
+ {{ answer_count }}<span style="color:black;font-size:14px;margin-left:5px">answers</span>\r
+ </div>\r
+\r
+ {% endif %}\r
+\r
+ <div>\r
- {{ sort_description|safe }}\r
+ {{ sort_description|safe }}\r
</div>
\ No newline at end of file
</div>
\ No newline at end of file
def unanswered(request):
return question_list(request,
Question.objects.filter(extra_ref=None),
def unanswered(request):
return question_list(request,
Question.objects.filter(extra_ref=None),
- _('Open questions without an accepted answer'),
+ _('open questions without an accepted answer'),
request.utils.set_sort_method('active'),
None,
_("Unanswered questions"))
request.utils.set_sort_method('active'),
None,
_("Unanswered questions"))
def tag(request, tag):
return question_list(request,
Question.objects.filter(tags__name=unquote(tag)),
def tag(request, tag):
return question_list(request,
Question.objects.filter(tags__name=unquote(tag)),
- mark_safe(_('Questions tagged <span class="tag">%(tag)s</span>') % {'tag': tag}),
+ mark_safe(_('questions tagged <span class="tag">%(tag)s</span>') % {'tag': tag}),
request.utils.set_sort_method('active'),
None,
request.utils.set_sort_method('active'),
None,
- mark_safe(_('Questions tagged %(tag)s') % {'tag': tag}),
+ mark_safe(_('questions tagged %(tag)s') % {'tag': tag}),
False)
@decorators.list('questions', QUESTIONS_PAGE_SIZE)
False)
@decorators.list('questions', QUESTIONS_PAGE_SIZE)
if page_title is None:
page_title = _("Questions")
if page_title is None:
page_title = _("Questions")
+ answer_count = Answer.objects.filter(deleted=None, parent__in=questions).count()
+
return {
"questions" : questions,
"questions_count" : questions.count(),
return {
"questions" : questions,
"questions_count" : questions.count(),
+ "answer_count" : answer_count,
#"tags_autocomplete" : _get_tags_cache_json(),
"list_description": list_description,
"base_path" : base_path,
#"tags_autocomplete" : _get_tags_cache_json(),
"list_description": list_description,
"base_path" : base_path,