X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fmaterial%2FEntry%2Fentries.html.twig;h=371992df41aad59aea17aebf337e06f475c52559;hb=bca5485946a72942c76dbb65c29e40818dca4976;hp=c2157db59302c64cbd57332008db386fc8576fd2;hpb=db96045a0ae96cfe67bc98d49596fde31c9124fc;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 c2157db5..371992df 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 @@ -4,13 +4,13 @@ {% set currentRoute = app.request.attributes.get('_route') %} {% if currentRoute == 'starred' %} - {% trans %}Starred{% endtrans %} + {% trans %}starred{% endtrans %} {% elseif currentRoute == 'archive' %} - {% trans %}Archive{% endtrans %} + {% trans %}archive{% endtrans %} {% elseif currentRoute == 'all' %} {% trans %}Filtered{% endtrans %} {% else %} - {% trans %}Unread{% endtrans %} + {% trans %}unread{% endtrans %} {% endif %} {% endblock %} @@ -46,16 +46,21 @@ {% 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 }} + +
+ + {% set readingTime = entry.readingTime / app.user.config.readingSpeed %} + {% if readingTime > 0 %} + {% trans with {'%readingTime%': 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,18 +70,19 @@ {{ 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 %}
- {{ entry.domainName | truncate(18) }} + {{ entry.domainName|removeWww|truncate(18) }} + +
+ {% 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 %} +
+
+
-

{% trans %}Filters{% endtrans %}

+

{% trans %}Filters{% endtrans %}

@@ -121,14 +145,12 @@
-
- {{ form_widget(form.isArchived) }} - +
+
-
- {{ form_widget(form.isStarred) }} - +
+ {{ form_widget(form.language) }}
@@ -144,7 +166,7 @@
- {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com'} }) }} + {{ form_widget(form.domainName, {'type': 'text', 'attr' : {'placeholder': 'website.com' | trans} }) }}