X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fcommon%2FEntry%2Fentries.xml.twig;h=cf6f6571775e6bc8d75368377cd408668852d80f;hb=92a66835624acf6fd14f5adc5f8aab399658592e;hp=16ecaa97988795818701d8b42edbabcc15d7c1dd;hpb=5ae8788583a63973c89a5a83f1a6880ce04b49d7;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig index 16ecaa97..cf6f6571 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/common/Entry/entries.xml.twig @@ -1,34 +1,53 @@ - - + + {% if type != 'tag' %} wallabag — {{type}} feed - {{ url(type) }} - - {% if entries.hasPreviousPage -%} - - {% endif -%} - {% if entries.hasNextPage -%} - - {% endif -%} - - {{ "now"|date('D, d M Y H:i:s') }} - wallabag - wallabag {{type}} elements - - {% for entry in entries %} - - - <![CDATA[{{ entry.title }}]]> - wallabag - {{ entry.url }} - {{ entry.url }} - {{ entry.createdAt|date('D, d M Y H:i:s') }} - - 0 -%}{{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': entry.readingTime}) }}{%- else -%}{{ 'entry.list.reading_time_less_one_minute'|trans|raw }}{%- endif %}{{ entry.content|raw -}}]]> - - - + Atom feed for {{ type }} entries + wallabag:{{ domainName | removeScheme | removeWww }}:{{ user }}:{{ type }} + + {% else %} + wallabag:{{ domainName | removeScheme | removeWww }}:{{ user }}:{{ type }}:{{ tag }} + + wallabag — {{type}} {{ tag }} feed + Atom feed for entries tagged with {{ tag }} + {% endif %} + {% if entries | length > 0 %} + {{ (entries | first).createdAt | date('c') }} {# Indicates the last time the feed was modified in a significant way. #} + {% endif %} + + {% if entries.hasPreviousPage %} + + {% endif -%} + {% if entries.hasNextPage %} + + {% endif -%} + + wallabag + + {{ user }} + + {{ asset('favicon.ico') }} + {{ asset('bundles/wallabagcore/themes/_global/img/logo-square.png') }} + {% for entry in entries %} + + <![CDATA[{{ entry.title|e }}]]> + + {{ entry.url }} + wallabag:{{ domainName | removeScheme | removeWww }}:{{ user }}:entry:{{ entry.id }} + {{ entry.updatedAt|date('c') }} + {{ entry.createdAt|date('c') }} + {% for tag in entry.tags %} + {% endfor %} - - - + {% for author in entry.publishedBy %} + + {{ author }} + + {% endfor %} + + 0 -%}{{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': entry.readingTime}) }}{%- else -%}{{ 'entry.list.reading_time_less_one_minute'|trans|raw }}{%- endif %}{{ entry.content|raw -}}]]> + + + {% endfor %} +