X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=7706896fd82e804b25a163dc65adbd170072dda3;hb=19c407f2967786bb106ebae636055b30af900e7b;hp=6f657b1807f44dac95af9ad98637f4f2ad53d6b3;hpb=c07ec4b6820723165bd7b832681ad6d43ad605d0;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig index 6f657b18..7706896f 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/material/Entry/entries.html.twig @@ -1,9 +1,16 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} +{% block head %} + {{ parent() }} + {% if tag is defined and app.user.config.feedToken %} + + {% endif %} +{% endblock %} + {% block title %} {% set filter = '' %} {% if tag is defined %} - {% set filter = tag %} + {% set filter = tag.slug %} {% endif %} {% if searchTerm is defined and searchTerm is not empty %} {% set filter = searchTerm %} @@ -13,56 +20,80 @@ {% block content %} {% set listMode = app.user.config.listMode %} -
-
+ {% set currentRoute = app.request.attributes.get('_route') %} + {% if currentRoute == 'homepage' %} + {% set currentRoute = 'unread' %} + {% endif %} +
+
+
{{ 'entry.list.number_on_the_page'|transchoice(entries.count) }} {% if listMode == 0 %}view_list{% else %}view_module{% endif %} + {% if app.user.config.feedToken %} + {% include "@WallabagCore/themes/common/Entry/_feed_link.html.twig" %} + {% endif %}
{% if entries.getNbPages > 1 %} {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} {% endif %}
-
    + +
  • + {% if entries.count > 0 and listMode == 1 %} + +   + + + + + + + + {% endif %} +
  • + {% for entry in entries %} -
  • +
  • {% if listMode == 1 %} {% include "@WallabagCore/themes/material/Entry/_card_list.html.twig" with {'entry': entry} only %} - {% elseif entry.previewPicture is null %} - {% include "@WallabagCore/themes/material/Entry/_card_no_preview.html.twig" with {'entry': entry} only %} {% elseif not entry.previewPicture is null and entry.mimetype starts with 'image/' %} {% include "@WallabagCore/themes/material/Entry/_card_full_image.html.twig" with {'entry': entry} only %} - {% elseif not entry.previewPicture is null %} + {% else %} {% include "@WallabagCore/themes/material/Entry/_card_preview.html.twig" with {'entry': entry} only %} {% endif %}
  • {% endfor %}
+
{% if entries.getNbPages > 1 %} - {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} +
+ {{ pagerfanta(entries, 'twitter_bootstrap_translated', {'proximity': 1}) }} +
{% endif %}
- {% set currentRoute = app.request.attributes.get('_route') %} - {% set currentTag = '' %} + {% set currentTag = null %} {% if tag is defined %} - {% set currentTag = tag %} + {% set currentTag = tag.slug %} {% endif %} - {% if currentRoute == 'homepage' %} - {% set currentRoute = 'unread' %} + {% set exportSearchTerm = null %} + {% if searchTerm is defined %} + {% set exportSearchTerm = searchTerm %} {% endif %} + {% set previousRoute = app.request.attributes.get('currentRoute') %}

{{ 'entry.list.export_title'|trans }}

    - {% if craue_setting('export_epub') %}
  • EPUB
  • {% endif %} - {% if craue_setting('export_mobi') %}
  • MOBI
  • {% endif %} - {% if craue_setting('export_pdf') %}
  • PDF
  • {% endif %} - {% if craue_setting('export_csv') %}
  • JSON
  • {% endif %} - {% if craue_setting('export_json') %}
  • CSV
  • {% endif %} - {% if craue_setting('export_txt') %}
  • TXT
  • {% endif %} - {% if craue_setting('export_xml') %}
  • XML
  • {% endif %} + {% if craue_setting('export_epub') %}
  • EPUB
  • {% endif %} + {% if craue_setting('export_mobi') %}
  • MOBI
  • {% endif %} + {% if craue_setting('export_pdf') %}
  • PDF
  • {% endif %} + {% if craue_setting('export_json') %}
  • JSON
  • {% endif %} + {% if craue_setting('export_csv') %}
  • CSV
  • {% endif %} + {% if craue_setting('export_txt') %}
  • TXT
  • {% endif %} + {% if craue_setting('export_xml') %}
  • XML
  • {% endif %}
@@ -70,10 +101,15 @@ {% if form is not null %}
-

{{ 'entry.filters.title'|trans }}

+ {% if currentRoute != 'untagged' and nbEntriesUntagged != 0 %} + + {% endif %} +
@@ -102,6 +138,15 @@ {{ form_label(form.previewPicture) }}
+
+ +
+ +
+ {{ form_widget(form.isPublic) }} + {{ form_label(form.isPublic) }} +
+
{{ form_label(form.language) }}
@@ -121,10 +166,12 @@
{{ form_label(form.readingTime) }}
+
{{ form_widget(form.readingTime.left_number, {'type': 'number'}) }}
+
{{ form_widget(form.readingTime.right_number, {'type': 'number'}) }} @@ -161,4 +208,33 @@
{% endif %} + + {% if sortForm is not null %} +
+ +

{{ 'entry.sort.title'|trans }}

+ +
+
+ {{ form_widget(sortForm.sortType) }} + {{ form_label(sortForm.sortType) }} +
+ +
+
+ +
+
+ +
+ +
+
+ +
+ {% endif %} + {% endblock %}