summaryrefslogtreecommitdiffstats
path: root/templates/part.items.php
diff options
context:
space:
mode:
authorBernhard Posselt <Raydiation@users.noreply.github.com>2014-07-30 11:22:44 +0200
committerBernhard Posselt <Raydiation@users.noreply.github.com>2014-07-30 11:22:44 +0200
commit713b71a33ca0521417504aaa4fb90c93805a4a55 (patch)
treebf25a31e1ae74f25d38da8196cdef0ab85320028 /templates/part.items.php
parent8251981a398a489b82cca87d1b0140bffaab6956 (diff)
Revert "Fix audio tag and basic video enclosure support"
Diffstat (limited to 'templates/part.items.php')
-rw-r--r--templates/part.items.php17
1 files changed, 3 insertions, 14 deletions
diff --git a/templates/part.items.php b/templates/part.items.php
index d189f2b0f..8b062b787 100644
--- a/templates/part.items.php
+++ b/templates/part.items.php
@@ -63,21 +63,10 @@
</span>
</h2>
- <div class="enclosure" ui-if="item.enclosureLink" ng-switch="item.enclosureMime.split('/')[0]">
- <div ng-switch-when="audio">
- <news-audio type="{{ item.enclosureMime }}" ng-src="{{ item.enclosureLink|trustUrl }}"><?php
- p($l->t('Download'))
- ?></news-audio>
- </div>
- <div ng-switch-when="video">
- <news-video type="{{ item.enclosureMime }}" ng-src="{{ item.enclosureLink|trustUrl }}"><?php
- p($l->t('Download'))
- ?></news-video>
- </div>
- <img ng-switch-when="image" type="{{ item.enclosureMime }}" ng-src="{{ item.enclosureLink|trustUrl }}" alt="" />
- <a class="button" ng-switch-default type="{{ item.enclosureMime }}" ng-href="{{ item.enclosureLink|trustUrl }}"><?php
+ <div class="enclosure" ui-if="item.enclosureLink">
+ <news-audio type="{{ item.enclosureType }}" ng-src="{{ item.enclosureLink|trustUrl }}"/><?php
p($l->t('Download'))
- ?></a>
+ ?></audio>
</div>
<div class="item_body" news-bind-html-unsafe="item.body">