Add support of originUrl field in baggy entry view

This commit is contained in:
Kevin Decherf 2017-11-05 15:32:32 +01:00
parent 00f2368f7a
commit 6de4cd35b5

View file

@ -71,6 +71,14 @@
</i>
<span class="tool link"><i class="material-icons link">comment</i> {{ 'entry.view.annotations_on_the_entry'|transchoice(entry.annotations | length) }}</span>
{% if entry.originUrl is not empty %}
<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>
{% endif %}
<aside class="tags">
<div class="card-entry-tags">
{% for tag in entry.tags %}