Skip to content

Commit

Permalink
added inline images from attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
Throckmortra committed Aug 30, 2016
1 parent 74d5856 commit b9d72c1
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mobile/www/app/shared/status/status.html
Expand Up @@ -45,6 +45,11 @@ <h2 class="inline">{{vm.status.firstName}} {{vm.status.lastName}}</h2>
<span class="ion-locked padding-right"></span>
<span translate="status.private"></span>
</p>
<span ng-repeat="attachment in vm.status.attachments" >
<img ng-if="attachment.filename.endsWith('.jpg') || attachment.filename.endsWith('.gif') || attachment.filename.endsWith('.jpeg') || attachment.filename.endsWith('.png')"
class="tatami-attached-image" ng-src="{{ vm.tatamEndpoint }}/tatami/file/{{ attachment.attachmentId }}/{{ attachment.filename }}" />
</span>
<!--No view exists to display them-->
<p ng-repeat="attachment in vm.status.attachments">
<a ng-href="{{ vm.buildAttachmentUrl(attachment) }}">
<i class="ion-document-text"></i> {{ attachment.filename }}
Expand Down

0 comments on commit b9d72c1

Please sign in to comment.