fix #113 - reading time

This commit is contained in:
Nicolas Lœuillet
2013-08-09 08:25:16 +02:00
parent 3d8bded89e
commit d91787589b
4 changed files with 18 additions and 0 deletions

View File

@ -241,4 +241,8 @@ a, a:hover, a:visited {
footer {
clear: both;
}
.reading-time {
font-size: 13px;
}

View File

@ -19,6 +19,7 @@
<a title="{% trans "toggle mark as read" %}" class="tool archive {% if entry.is_read == 0 %}archive-off{% endif %}" href="./?action=toggle_archive&id={{ entry.id|e }}"><span></span></a></li>
<li><a title="{% trans "toggle favorite" %}" class="tool fav {% if entry.is_fav == 0 %}fav-off{% endif %}" href="./?action=toggle_fav&id={{ entry.id|e }}"><span></span></a></li>
<li><a title="{% trans "delete" %}" class="tool delete" href="./?action=delete&id={{ entry.id|e }}"><span></span></a></li>
<li class="reading-time">{{ entry.content| getReadingTime }} min</li>
</li>
</ul>
<p>{{ entry.content|striptags|slice(0, 300) }}...</p>