modification time displayed in announces list

This commit is contained in:
Serghei Mihai 2015-01-19 09:51:59 +01:00
parent bc1b589781
commit 98bf28f82f
2 changed files with 14 additions and 2 deletions

View File

@ -177,7 +177,7 @@ div.user a.logout:before {
font-weight: bold;
}
.text_preview {
.preview {
padding-left: 10px;
font-size: .8em;
color: #777;
@ -220,6 +220,13 @@ div.user a.logout:before {
.announce {
margin-left: 25px;
width: 65%;
}
#management .datetime {
width: 15%;
float: right;
margin-right: 35px;
}
.empty {

View File

@ -35,13 +35,18 @@
{% endif %}
{% endif %}
</div>
<div class="preview datetime">
{% blocktrans with mtime=obj.mtime|date:'DATETIME_FORMAT' %}
Modified on {{ mtime }}
{% endblocktrans %}
</div>
<div class="actions">
<span><a class="icon edit" href="{% url 'edit_announce' obj.id %}" rel="popup"></a></span>
<span><a class="icon delete" href="{% url 'delete_announce' obj.id %}" rel="popup"></a></span>
</div>
<div class="announce">
<div class="title">{{ obj.title }}</div>
<div class="text_preview">{{ obj.text|safe|truncatechars_html:128 }}</div>
<div class="preview">{{ obj.text|safe|truncatechars_html:128 }}</div>
</div>
</li>
{% empty %}