Commit 3727eb93 authored by Riccardo Padovani's avatar Riccardo Padovani

New sidebar

parent c44e08df
...@@ -1791,6 +1791,10 @@ ul.form-horizontal-rows li input { ...@@ -1791,6 +1791,10 @@ ul.form-horizontal-rows li input {
margin: 0 2px 0 1px; margin: 0 2px 0 1px;
} }
#sidebar-upper, #sidebar-lower {
background-color: #EFEFEF;
}
a.sidebar_button { a.sidebar_button {
background: none repeat scroll 0 0 #EEEEEE; background: none repeat scroll 0 0 #EEEEEE;
color: black; color: black;
......
{% extends base %}
{% load i18n markup node_tags general_sidebar_tags %}
{% block title %}{% spaceless %}{{ page.title }}{% endspaceless %}{% endblock %}
{% block content %}
<div class="headNormal">{{ page.title }}</div>
<div class="content">
{{ body }}
</div>
{% if page.extra.comments %}
{% comments page request.user %}
{% endif %}
{% endblock %}
{% ifequal page.extra.template "sidebar" %}
{% sidebar_upper %}
{% block sidebar %}
{% if page.extra.sidebar %}
{% if page.extra.sidebar_wrap %}<div class="boxC"><div class="body">{% endif %}
{{ sidebar }}
{% if page.extra.sidebar_wrap %}</div></div>{% endif %}
{% endif %}
{% sidebar_lower %}
{% endblock %}
{% endifequal %}
\ No newline at end of file
{% spaceless %}
{% load i18n humanize extra_tags %}
{% declare %}
answer_count = questions.children_count('answer')
{% enddeclare %}
<div class="boxC">
<div class="questions-count">
{{ questions.paginator.count }}<span style="color:black;font-size:14px;margin-left:5px;font-weight:normal;"> {{ list_description }}</span>
</div>
{% if answer_count %}
<div class="questions-count">
{{ answer_count }}<span style="color:black;font-size:14px;margin-left:5px;font-weight:normal;"> {% trans "answers" %}</span>
</div>
{% endif %}
</div>
{% endspaceless %}
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment