X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=c3fd4d286d46510469a90aac198e7ceed2734953;hb=fdec3acab1e48ceb74917ce8ae4cfb1d127c757b;hp=668824bc0bbed56eabf9f8c7c6e96fdd44c57ae8;hpb=4b55e704ab51c1a125f33552873d7188f3ed637e;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 668824bc..c3fd4d28 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
@@ -46,16 +46,20 @@
{% endif %}
- {{ entry.title|raw|striptags|slice(0, 42) }}
-
- {% if entry.readingTime > 0 %}
-
{% trans %}estimated reading time{% endtrans %}: {{ entry.readingTime }} min
- {% else %}
- {% trans %}estimated reading time{% endtrans %}: < 1 min
- {% endif %}
+ {{ entry.title|striptags|slice(0, 42)|raw }}
+
+
+
+ {% if entry.readingTime > 0 %}
+ {% trans with {'%readingTime%': entry.readingTime } %}estimated reading time: %readingTime% min{% endtrans %}
+ {% else %}
+ {% trans with {'%inferior%': '<'} %}estimated reading time: %inferior% 1 min{% endtrans %}
+ {% endif %}
+
+
{% if entry.previewPicture is null %}
- {{ entry.content|striptags|slice(0, 300) }}…
+ {{ entry.content|striptags|slice(0, 300)|raw }}…
{% endif %}
@@ -65,13 +69,14 @@
{{ entry.title|raw }}
- {% if entry.readingTime > 0 %}
- {% trans %}estimated reading time{% endtrans %}: {{ entry.readingTime }} min
- {% else %}
- {% trans %}estimated reading time{% endtrans %}: < 1 min
- {% endif %}
+
+
+ {% trans %}estimated reading time{% endtrans %}:
+ {% if entry.readingTime > 0 %}{{ entry.readingTime }}{% else %}< 1{% endif %} min
+
+
- {{ entry.content|striptags|slice(0, 300) }}…
+ {{ entry.content|striptags|slice(0, 300)|raw }}…
{% endif %}
@@ -91,6 +96,24 @@
{% endfor %}
+
+
+ {% set currentRoute = app.request.attributes.get('_route') %}
+ {% if currentRoute == 'homepage' %}
+ {% set currentRoute = 'unread' %}
+ {% endif %}
+
{% trans %}Export{% endtrans %}
+
+ {% 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 %}
+
+
+
- {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com'} }) }}
+ {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com' | trans} }) }}