Add support of originUrl field in material entry view

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
This commit is contained in:
Kevin Decherf 2017-09-09 21:00:32 +02:00
parent e50e45d6fa
commit f0f162b8d2

View file

@ -249,6 +249,14 @@
<i class="material-icons link">comment</i>
{{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations | length) }}
</li>
{% if entry.originUrl is not empty %}
<li>
<i class="material-icons" title="Provided by">launch</i>
<a href="{{ entry.originUrl|e }}" target="_blank" class="tool">
{{ entry.originUrl|striptags|removeSchemeAndWww|truncate(32) }}
</a>
</li>
{% endif %}
</ul>
<ul class="tags">
{% for tag in entry.tags %}