aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-09 08:25:16 +0200
committerNicolas LÅ“uillet <nicolas.loeuillet@gmail.com>2013-08-09 08:25:16 +0200
commitd91787589bfd7541a99032cc23243165dc1572c4 (patch)
treead7246e41e5acbb87eafafbbdd3c95f0ea7a0c18 /tpl
parent3d8bded89e880aa28a1b17422c5bb3d9def28026 (diff)
downloadwallabag-d91787589bfd7541a99032cc23243165dc1572c4.tar.gz
wallabag-d91787589bfd7541a99032cc23243165dc1572c4.tar.zst
wallabag-d91787589bfd7541a99032cc23243165dc1572c4.zip
fix #113 - reading time
Diffstat (limited to 'tpl')
-rw-r--r--tpl/css/style.css4
-rw-r--r--tpl/home.twig1
2 files changed, 5 insertions, 0 deletions
diff --git a/tpl/css/style.css b/tpl/css/style.css
index d23c1896..de82a822 100644
--- a/tpl/css/style.css
+++ b/tpl/css/style.css
@@ -241,4 +241,8 @@ a, a:hover, a:visited {
241 241
242footer { 242footer {
243 clear: both; 243 clear: both;
244}
245
246.reading-time {
247 font-size: 13px;
244} \ No newline at end of file 248} \ No newline at end of file
diff --git a/tpl/home.twig b/tpl/home.twig
index a6da641f..03f9f70d 100644
--- a/tpl/home.twig
+++ b/tpl/home.twig
@@ -19,6 +19,7 @@
19 <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> 19 <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>
20 <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> 20 <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>
21 <li><a title="{% trans "delete" %}" class="tool delete" href="./?action=delete&id={{ entry.id|e }}"><span></span></a></li> 21 <li><a title="{% trans "delete" %}" class="tool delete" href="./?action=delete&id={{ entry.id|e }}"><span></span></a></li>
22 <li class="reading-time">{{ entry.content| getReadingTime }} min</li>
22 </li> 23 </li>
23 </ul> 24 </ul>
24 <p>{{ entry.content|striptags|slice(0, 300) }}...</p> 25 <p>{{ entry.content|striptags|slice(0, 300) }}...</p>