]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Resources/views/themes/baggy/Entry/entry.html.twig
Added author of article
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Resources / views / themes / baggy / Entry / entry.html.twig
index 8bc7b54c6661b34856bb400563bf04080b7501db..426ce91c3b31023abe8900ad5ad32b72315a6de7 100644 (file)
                 {{ entry.createdAt|date('Y-m-d H:i') }}
             </i>
 
-            {%  if entry.publishedAt is not null %}
+            {% if entry.publishedAt is not null %}
                 <i class="tool icon icon-pencil2" title="{{ 'entry.view.published_at'|trans }}">
                     {{ entry.publishedAt|date('Y-m-d H:i') }}
                 </i>
             {% endif %}
 
+            {% if entry.publishedBy is not empty %}
+                <i class="tool icon icon-users" title="{{ 'entry.view.published_by'|trans }}">
+                    {% for author in entry.publishedBy %}
+                        {{ author }}{% if not loop.last %}, {% endif %}
+                    {% endfor %}
+                </i>
+            {% endif %}
+
             <i class="tool icon icon-time">
                 {% set readingTime = entry.readingTime / app.user.config.readingSpeed %}
                 {% if readingTime > 0 %}