summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-09-16 19:42:37 +0200
committerBernhard Posselt <dev@bernhard-posselt.com>2014-09-16 19:42:37 +0200
commit8e0cbf094ea553821697091d69fff9ba59214c4b (patch)
tree61f14f1d11b732405f89e045029a8ce0d58720bb /templates
parent9e36ef31f9bf16d43326fd047619ada5ff16e072 (diff)
fix enclosure
Diffstat (limited to 'templates')
-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>