X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentry.html.twig;h=e87ba201a957ebcfd0feccf8d7890c88002e704e;hb=293730656d696dab8cdbc8447a0e970a58ff77d2;hp=675168bbae601c51cb2ad3591803d5b2d2d51151;hpb=33adf8dc915f4911fd454e98194c1b2323514d4a;p=github%2Fwallabag%2Fwallabag.git diff --git a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig index 675168bb..e87ba201 100644 --- a/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig +++ b/src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig @@ -1,64 +1,101 @@ {% extends "WallabagCoreBundle::layout.html.twig" %} -{% block title %}{{ entry.title|raw }} ({{ entry.domainName|removeWww }}){% endblock %} +{% block title %}{{ entry.title|e|default('entry.default_title'|trans)|raw }} ({{ entry.domainName|removeWww }}){% endblock %} {% block content %}
-

{{ entry.title|raw }} ✎

+

{{ entry.title|e|default('entry.default_title'|trans)|raw }} ✎

- + + {{ entry.createdAt|date('Y-m-d H:i') }} + + + {% if entry.publishedAt is not null %} + + {{ entry.publishedAt|date('Y-m-d H:i') }} + + {% endif %} + + {% if entry.publishedBy is not empty %} + + {% for author in entry.publishedBy %} + {{ author }}{% if not loop.last %}, {% endif %} + {% endfor %} + + {% endif %} - + - {% set nbAnnotations = entry.annotations | length %} comment {{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations | length) }} + + {% if entry.originUrl is not empty %} + launch + + {{ entry.originUrl|striptags|removeSchemeAndWww|truncate(32) }} + + {% endif %} +
- {% if entry.previewPicture is not null %} -
{{ entry.title|raw }}
- {% endif %}
{{ entry.content | raw }}
@@ -76,22 +113,4 @@ "entryId": "{{ entry.id }}" } - - {% endblock %}