display images in enclosures

This commit is contained in:
Athou
2013-05-20 07:33:50 +02:00
parent b2ee06d94a
commit 52c5e9369a

View File

@@ -36,6 +36,9 @@
<audio controls ui-if="entry.enclosureType && entry.enclosureType.indexOf('audio') == 0">
<source src="{{entry.enclosureUrl}}" type="{{entry.enclosureType}}" />
</audio>
<div ui-if="entry.enclosureType && entry.enclosureType.indexOf('image') == 0">
<img ng-src="{{entry.enclosureUrl}}" />
</div>
<a href="{{entry.enclosureUrl}}" target="_blank" ui-if="entry.enclosureType" download>
${global.download}
</a>