X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=src%2FWallabag%2FCoreBundle%2FResources%2Fviews%2Fthemes%2Fbaggy%2FEntry%2Fentry.html.twig;h=f18e32ca4a23c0b94b4f0399bf54cf58c5cd4c5d;hb=3473e600b1d0ae0695b8c15342a6a1f76e2bc973;hp=d7374dc7551a34e156395ccfc3db37ab3bf963b1;hpb=c649d433810906571995a60eb6a486766e4875cf;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 d7374dc7..f18e32ca 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,145 +1,119 @@
{% extends "WallabagCoreBundle::layout.html.twig" %}
-{% block title %}{{ entry.title|raw }} ({{ entry.domainName|removeWww }}){% endblock %}
+{% block title %}{{ entry.title|e|raw|default('entry.default_title'|trans) }} ({{ entry.domainName|removeWww }}){% endblock %}
{% block content %}
- {{ entry.title|raw }} â
+ {{ entry.title|e|raw |default('entry.default_title'|trans) }} â
-
- {{ 'entry.view.created_at'|trans }}: {{ entry.createdAt|date('Y-m-d') }}
+
-
- {% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
- {% if readingTime > 0 %}
- {{ 'entry.list.reading_time_minutes'|trans({'%readingTime%': readingTime|round})|capitalize }}
- {% else %}
- {{ 'entry.list.reading_time_less_one_minute'|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 %}
-
- {% set nbAnnotations = entry.annotations | length %}
-
-
+ {% if entry.publishedBy is not empty %}
+
+ {% for author in entry.publishedBy %}
+ {{ author }}{% if not loop.last %}, {% endif %}
+ {% endfor %}
+
+ {% endif %}
+
+
+ {% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
+ {% if readingTime > 0 %}
+ {{ 'entry.list.reading_time_minutes_short'|trans({'%readingTime%': readingTime|round}) }}
+ {% else %}
+ {{ 'entry.list.reading_time_less_one_minute_short'|trans|raw }}
+ {% endif %}
+
+
+
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 %}
-
+
{% endif %}
{{ entry.content | raw }}
-
-
-
{% endblock %}