aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/conv_item.tpl9
-rwxr-xr-xview/tpl/jot.tpl2
2 files changed, 9 insertions, 2 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}}
diff --git a/view/tpl/jot.tpl b/view/tpl/jot.tpl
index ea68368aa..e61d75fee 100755
--- a/view/tpl/jot.tpl
+++ b/view/tpl/jot.tpl
@@ -3,7 +3,7 @@
{{if $parent}}
<input type="hidden" name="parent" value="{{$parent}}" />
{{/if}}
- <input type="hidden" name="type" value="{{$ptyp}}" />
+ <input type="hidden" name="obj_type" value="{{$ptyp}}" />
<input type="hidden" name="profile_uid" value="{{$profile_uid}}" />
<input type="hidden" name="return" value="{{$return_path}}" />
<input type="hidden" name="location" id="jot-location" value="{{$defloc}}" />