aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/conv_item.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-10-31 00:38:01 +0100
committerMario Vavti <mario@mariovavti.com>2015-10-31 00:38:01 +0100
commit5920a96da7f71b45b7d386d27da2c130e3ddb23f (patch)
treeb007b7b5dfb640eba778c77dee8a9729c7811606 /view/tpl/conv_item.tpl
parentf8b767ed32391763a3abb7bbc38422d7b8cb5991 (diff)
downloadvolse-hubzilla-5920a96da7f71b45b7d386d27da2c130e3ddb23f.tar.gz
volse-hubzilla-5920a96da7f71b45b7d386d27da2c130e3ddb23f.tar.bz2
volse-hubzilla-5920a96da7f71b45b7d386d27da2c130e3ddb23f.zip
make attachments appear in a dropdown in wall-item-tools-left
Diffstat (limited to 'view/tpl/conv_item.tpl')
-rwxr-xr-xview/tpl/conv_item.tpl19
1 files changed, 10 insertions, 9 deletions
diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl
index 760d64db0..4782f827b 100755
--- a/view/tpl/conv_item.tpl
+++ b/view/tpl/conv_item.tpl
@@ -69,11 +69,6 @@
<span class="tag">{{$item.folders}}</span>
</div>
{{/if}}
- {{if $item.attachments}}
- <div class="body-tags" id="item-attachments">
- <span class='tag'>{{$item.attachments}}</span>
- </div>
- {{/if}}
<div class="clear"></div>
</div>
{{/if}}
@@ -157,9 +152,15 @@
</div>
<div id="like-rotator-{{$item.id}}" class="like-rotator"></div>
- {{if $item.responses }}
- <div class="wall-item-tools-left{{if $item.responses.count > 1}} btn-group{{/if}}">
- {{foreach $item.responses as $verb=>$response}}
+ {{if $item.responses || $item.attachments}}
+ <div class="wall-item-tools-left{{if ($item.responses.count > 1) || ($item.responses.count && $item.attachments)}} btn-group{{/if}}">
+ {{if $item.attachments}}
+ <div class="btn-group">
+ <button type="button" class="btn btn-default btn-sm wall-item-like dropdown-toggle" data-toggle="dropdown" id="attachment-menu-{{$item.id}}"><i class="icon-paperclip"></i></button>
+ <ul class="dropdown-menu" role="menu" aria-labelledby="attachment-menu-{{$item.id}}">{{$item.attachments}}</ul>
+ </div>
+ {{/if}}
+ {{foreach $item.responses as $verb=>$response}}
{{if $response.count}}
<div class="btn-group">
<button type="button" class="btn btn-default btn-sm wall-item-like dropdown-toggle" data-toggle="dropdown" id="wall-item-{{$verb}}-{{$item.id}}">{{$response.count}} {{$response.button}}</button>
@@ -188,7 +189,7 @@
{{/if}}
</div>
{{/if}}
- {{/foreach}}
+ {{/foreach}}
</div>
{{/if}}
<div class="clear"></div>