- {% include "WallabagCoreBundle:Entry:pager.html.twig" with {'entries': entries} %}
- <br />
- <ul class="row data">
- {% for entry in entries %}
- <li id="entry-{{ entry.id|e }}" class="col l3 m6 s12">
- <div class="card">
-
- <div class="card-body">
- {% if not entry.previewPicture is null %}
- <div class="card-image waves-effect waves-block waves-light">
- <ul class="card-entry-labels">
- {% for tag in entry.tags | slice(0, 3) %}
- <li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
- {% endfor %}
- </ul>
- <div class="preview activator" style="background-image: url({{ entry.previewPicture }})"></div>
- </div>
- {% endif %}
-
- <div class="card-content">
- {% if not entry.previewPicture is null %}
- <i class="grey-text text-darken-4 activator material-icons right">more_vert</i>
- {% endif %}
-
- <span class="card-title dot-ellipsis dot-resize-update"><a href="{{ path('view', { 'id': entry.id }) }}" title="{{ entry.title|raw }}">{{ entry.title|striptags|raw }}</a></span>
-
- <div class="original grey-text">
- <a href="{{ entry.url|e }}" target="_blank" title="{{ 'entry.list.original_article'|trans }}: {{ entry.title|e }} - {{ entry.domainName|removeWww }}" class="tool original grey-text">
- <span>{{ entry.domainName|removeWww|truncate(18) }}</span>
- </a>
- </div>
-
- {% if entry.previewPicture is null %}
- <p>{{ entry.content|striptags|slice(0, 300)|raw }}…</p>
- <ul class="card-entry-labels-hidden">
- {% for tag in entry.tags | slice(0, 2) %}
- <li><a href="{{ path('tag_entries', {'slug': tag.slug}) }}">{{ tag.label }}</a></li>
- {% endfor %}
- </ul>
- {% endif %}
- </div>
- </div>
+ {% set listMode = app.user.config.listMode %}
+ {% set currentRoute = app.request.attributes.get('_route') %}
+ {% if currentRoute == 'homepage' %}
+ {% set currentRoute = 'unread' %}
+ {% endif %}
+ <div class="results">
+ <div class="nb-results">
+ {{ 'entry.list.number_on_the_page'|transchoice(entries.count) }}
+ <a href="{{ path('switch_view_mode') }}"><i class="material-icons">{% if listMode == 0 %}view_list{% else %}view_module{% endif %}</i></a>
+ {% if app.user.config.feedToken %}
+ {% include "@WallabagCore/themes/common/Entry/_feed_link.html.twig" %}
+ {% endif %}
+ </div>
+ {% if entries.getNbPages > 1 %}
+ {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }}
+ {% endif %}
+ </div>