summaryrefslogtreecommitdiffstats
path: root/templates/part.content.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/part.content.php')
-rw-r--r--templates/part.content.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/templates/part.content.php b/templates/part.content.php
index 9968e07e1..c91e83ff2 100644
--- a/templates/part.content.php
+++ b/templates/part.content.php
@@ -66,10 +66,14 @@
<div class="enclosure" ng-if="item.enclosureLink">
- <news-audio type="{{ item.enclosureType }}"
- ng-src="{{ item.enclosureLink|trustUrl }}">
- <?php p($l->t('Download')) ?>
- </news-audio>
+ <news-enclosure type="{{ item.enclosureMime }}"
+ link="{{ item.enclosureLink }}">
+ <a class="button"
+ ng-href="{{ item.enclosureLink | trustUrl}}"
+ target="_blank">
+ <?php p($l->t('Download')) ?>
+ </a>
+ </news-enclosure>
</div>
<div class="body" news-bind-html-unsafe="item.body"></div>