aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/search_item.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-18 16:26:00 -0800
committerzotlabs <mike@macgirvin.com>2016-12-18 16:26:00 -0800
commit92f3d863fa4a8a96d4f882a91a81d888a58230e5 (patch)
tree40798d2b1c46e869932d2780ce22e49fc2456749 /view/tpl/search_item.tpl
parente1819a874f334185e379db9390d493d12273704b (diff)
downloadvolse-hubzilla-92f3d863fa4a8a96d4f882a91a81d888a58230e5.tar.gz
volse-hubzilla-92f3d863fa4a8a96d4f882a91a81d888a58230e5.tar.bz2
volse-hubzilla-92f3d863fa4a8a96d4f882a91a81d888a58230e5.zip
re-factor item_photo_menu - there is some room for future development, currently it was made compatible with minimal template changes
Diffstat (limited to 'view/tpl/search_item.tpl')
-rwxr-xr-xview/tpl/search_item.tpl13
1 files changed, 10 insertions, 3 deletions
diff --git a/view/tpl/search_item.tpl b/view/tpl/search_item.tpl
index 51fa8b8dc..a490cb473 100755
--- a/view/tpl/search_item.tpl
+++ b/view/tpl/search_item.tpl
@@ -74,13 +74,20 @@
<i class="fa fa-caret-down"></i>
</button>
<ul class="dropdown-menu">
- {{if $item.item_photo_menu}}
- {{$item.item_photo_menu}}
+ {{if $item.thread_action_menu}}
+ {{foreach $item.thread_action_menu as $mitem}}
+ <li role="presentation"><a role="menuitem" {{if $mitem.href}}href="{{$mitem.href}}"{{/if}} {{if $mitem.action}}onclick="{{$mitem.action}}"{{/if}} {{if $mitem.title}}title="{{$mitem.title}}"{{/if}} ><i class="fa fa-{{$mitem.icon}}"></i> {{$mitem.title}}</a></li>
+ {{/foreach}}
{{/if}}
{{if $item.drop.dropping}}
- <li role="presentation" class="divider"></li>
<li><a href="item/drop/{{$item.id}}" onclick="return confirmDelete();" title="{{$item.drop.delete}}" ><i class="fa fa-trash-o"></i> {{$item.drop.delete}}</a></li>
{{/if}}
+ {{if $item.thread_author_menu}}
+ <li role="presentation" class="divider"></li>
+ {{foreach $item.thread_author_menu as $mitem}}
+ <li role="presentation"><a role="menuitem" {{if $mitem.href}}href="{{$mitem.href}}"{{/if}} {{if $mitem.action}}onclick="{{$mitem.action}}"{{/if}} {{if $mitem.title}}title="{{$mitem.title}}"{{/if}} >{{$mitem.title}}</a></li>
+ {{/foreach}}
+ {{/if}}
</ul>
</div>
{{if $item.attachments}}