aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/conv_item.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-10-20 09:36:15 +0200
committerMario Vavti <mario@mariovavti.com>2015-10-20 09:36:15 +0200
commitf7601756e99fcedb062d1f7ac3e53431ea72642d (patch)
tree5aae7959b0b2d16fc7e374335ddc85984b9a482d /view/tpl/conv_item.tpl
parent54059b2f153433f7154a754a77dafba1cc97a1a2 (diff)
downloadvolse-hubzilla-f7601756e99fcedb062d1f7ac3e53431ea72642d.tar.gz
volse-hubzilla-f7601756e99fcedb062d1f7ac3e53431ea72642d.tar.bz2
volse-hubzilla-f7601756e99fcedb062d1f7ac3e53431ea72642d.zip
create photo object if feature large photos is enabled and display those slightly different
Diffstat (limited to 'view/tpl/conv_item.tpl')
-rwxr-xr-xview/tpl/conv_item.tpl9
1 files changed, 8 insertions, 1 deletions
diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl
index 5bac5b412..0a6622fa4 100755
--- a/view/tpl/conv_item.tpl
+++ b/view/tpl/conv_item.tpl
@@ -33,12 +33,19 @@
</div>
<div class="clear"></div>
</div>
- <div class="{{if $item.is_photo}}wall-photo-item{{else}}wall-item-content{{/if}}" id="wall-item-content-{{$item.id}}">
+ {{if $item.is_photo}}
+ <div class="wall-photo-item" id="wall-photo-item-{{$item.id}}">
+ <a href="{{$item.photo.link}}"><img style="max-width:{{$item.photo.width}}px; width:100%; height:auto;" src={{$item.photo.url}}></a>
+ </div>
+ {{/if}}
+ {{if $item.body}}
+ <div class="wall-item-content" id="wall-item-content-{{$item.id}}">
<div class="wall-item-body" id="wall-item-body-{{$item.id}}" >
{{$item.body}}
</div>
<div class="clear"></div>
</div>
+ {{/if}}
{{if $item.has_tags}}
<div class="wall-item-tools">
{{if $item.mentions}}