aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WallabagBundle/Resources/views/Entry/entries.html.twig
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-23 12:45:24 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-23 12:45:24 +0100
commit163eae0bb15d0daa5390f434a42a8176eca186e7 (patch)
tree0e1ab2c2bb9591e826e73d875cbb04fdabb3f77f /src/WallabagBundle/Resources/views/Entry/entries.html.twig
parentbd9f08157cc10619e9bb9dace6df43090dde44a9 (diff)
downloadwallabag-163eae0bb15d0daa5390f434a42a8176eca186e7.tar.gz
wallabag-163eae0bb15d0daa5390f434a42a8176eca186e7.tar.zst
wallabag-163eae0bb15d0daa5390f434a42a8176eca186e7.zip
toggle archive / fav actions
Diffstat (limited to 'src/WallabagBundle/Resources/views/Entry/entries.html.twig')
-rw-r--r--src/WallabagBundle/Resources/views/Entry/entries.html.twig20
1 files changed, 17 insertions, 3 deletions
diff --git a/src/WallabagBundle/Resources/views/Entry/entries.html.twig b/src/WallabagBundle/Resources/views/Entry/entries.html.twig
index 81177298..de343aa2 100644
--- a/src/WallabagBundle/Resources/views/Entry/entries.html.twig
+++ b/src/WallabagBundle/Resources/views/Entry/entries.html.twig
@@ -7,6 +7,20 @@
7{% endblock %} 7{% endblock %}
8 8
9{% block content %} 9{% block content %}
10 {% block pager %}
11 {% if entries is not empty %}
12 <div class="results">
13 <div class="nb-results">{{ entries.count }} {% trans %}entries{% endtrans %}</div>
14 <div class="pagination">
15 {% for p in range(1, entries.count) %}
16 <li>
17 <a href="{{ path(app.request.attributes.get('_route'), {'page': p}) }}">{{ p }}</a>
18 </li>
19 {% endfor %}
20 </div>
21 </div>
22 {% endif %}
23 {% endblock %}
10 24
11 {% if entries is empty %} 25 {% if entries is empty %}
12 <div class="messages warning"><p>{% trans %}No articles found.{% endtrans %}</p></div> 26 <div class="messages warning"><p>{% trans %}No articles found.{% endtrans %}</p></div>
@@ -21,9 +35,9 @@
21 {% endif %} 35 {% endif %}
22 36
23 <ul class="tools links"> 37 <ul class="tools links">
24 <li><a title="{% trans %}Toggle mark as read{% endtrans %}" class="tool icon-check icon {% if entry.isRead == 0 %}archive-off{% else %}archive{% endif %}" href="./?action=toggle_archive&amp;id={{ entry.id|e }}"><span>{% trans %}Toggle mark as read{% endtrans %}</span></a></li> 38 <li><a title="{% trans %}Toggle mark as read{% endtrans %}" class="tool icon-check icon {% if entry.isRead == 0 %}archive-off{% else %}archive{% endif %}" href="{{ path('archive_entry', { 'id': entry.id }) }}"><span>{% trans %}Toggle mark as read{% endtrans %}</span></a></li>
25 <li><a title="{% trans %}toggle favorite{% endtrans %}" class="tool icon-star icon {% if entry.isFav == 0 %}fav-off{% else %}fav{% endif %}" href="./?action=toggle_fav&amp;id={{ entry.id|e }}"><span>{% trans %}toggle favorite{% endtrans %}</span></a></li> 39 <li><a title="{% trans %}toggle favorite{% endtrans %}" class="tool icon-star icon {% if entry.isFav == 0 %}fav-off{% else %}fav{% endif %}" href="{{ path('star_entry', { 'id': entry.id }) }}"><span>{% trans %}toggle favorite{% endtrans %}</span></a></li>
26 <li><a title="{% trans %}delete{% endtrans %}" class="tool delete icon-trash icon" href="./?action=delete&amp;id={{ entry.id|e }}"><span>{% trans %}delete{% endtrans %}</span></a></li> 40 <li><a title="{% trans %}delete{% endtrans %}" class="tool delete icon-trash icon" href="{{ path('delete_entry', { 'id': entry.id }) }}"><span>{% trans %}delete{% endtrans %}</span></a></li>
27 <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.url | e | domainName }}</span></a></li> 41 <li><a href="{{ entry.url|e }}" target="_blank" title="{% trans %}original{% endtrans %} : {{ entry.title|e }}" class="tool link icon-link icon"><span>{{ entry.url | e | domainName }}</span></a></li>
28 </ul> 42 </ul>
29 <p>{{ entry.content|striptags|slice(0, 300) }}...</p> 43 <p>{{ entry.content|striptags|slice(0, 300) }}...</p>