diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-23 10:42:31 -0700 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-23 10:42:31 -0700 |
commit | c2618ca7917b6566d3e0406a2ccbe6c936327837 (patch) | |
tree | 91cb1138610644c340f2f79c15373644a65b4c58 /tpl/home.twig | |
parent | 8340fedd6403e5ef68df443476a548ff0d241b67 (diff) | |
parent | 4b4afc7322cef96575649a47e34b1621a5aab1fd (diff) | |
download | wallabag-c2618ca7917b6566d3e0406a2ccbe6c936327837.tar.gz wallabag-c2618ca7917b6566d3e0406a2ccbe6c936327837.tar.zst wallabag-c2618ca7917b6566d3e0406a2ccbe6c936327837.zip |
Merge pull request #163 from NumEricR/tools-list
Improve tools list code
Diffstat (limited to 'tpl/home.twig')
-rw-r--r-- | tpl/home.twig | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/tpl/home.twig b/tpl/home.twig index 03f9f70d..6f6c17e1 100644 --- a/tpl/home.twig +++ b/tpl/home.twig | |||
@@ -15,12 +15,10 @@ | |||
15 | <div id="entry-{{ entry.id|e }}" class="entrie"> | 15 | <div id="entry-{{ entry.id|e }}" class="entrie"> |
16 | <h2><a href="index.php?view=view&id={{ entry.id|e }}">{{ entry.title|e }}</a></h2> | 16 | <h2><a href="index.php?view=view&id={{ entry.id|e }}">{{ entry.title|e }}</a></h2> |
17 | <ul class="tools"> | 17 | <ul class="tools"> |
18 | <li> | 18 | <li><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>{% trans "toggle mark as read" %}</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> | 19 | <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>{% trans "toggle favorite" %}</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 "delete" %}" class="tool delete" href="./?action=delete&id={{ entry.id|e }}"><span>{% trans "delete" %}</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 class="reading-time">{{ entry.content| getReadingTime }} min</li> |
22 | <li class="reading-time">{{ entry.content| getReadingTime }} min</li> | ||
23 | </li> | ||
24 | </ul> | 22 | </ul> |
25 | <p>{{ entry.content|striptags|slice(0, 300) }}...</p> | 23 | <p>{{ entry.content|striptags|slice(0, 300) }}...</p> |
26 | <p class="vieworiginal txtright small"><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{{ entry.url | e | getDomain }}</a></p> | 24 | <p class="vieworiginal txtright small"><a href="{{ entry.url|e }}" target="_blank" title="{% trans "original" %} : {{ entry.title|e }}">{{ entry.url | e | getDomain }}</a></p> |