aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/mitemlist.tpl
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-04-21 22:45:54 +0200
committerMario Vavti <mario@mariovavti.com>2015-04-21 22:45:54 +0200
commit21704ecb93e293f39d0228ae0d9765f37af8d99e (patch)
treeba934e990f9c26a15ddbe1b9aa0a298323cb1ffc /view/tpl/mitemlist.tpl
parent0bd9fe0b11013423a17ebaabb22482bee38d8f0f (diff)
downloadvolse-hubzilla-21704ecb93e293f39d0228ae0d9765f37af8d99e.tar.gz
volse-hubzilla-21704ecb93e293f39d0228ae0d9765f37af8d99e.tar.bz2
volse-hubzilla-21704ecb93e293f39d0228ae0d9765f37af8d99e.zip
bring lockview to menu items, slightly change the way /lockview is called
Diffstat (limited to 'view/tpl/mitemlist.tpl')
-rw-r--r--view/tpl/mitemlist.tpl6
1 files changed, 4 insertions, 2 deletions
diff --git a/view/tpl/mitemlist.tpl b/view/tpl/mitemlist.tpl
index 68dd225ee..983776fa3 100644
--- a/view/tpl/mitemlist.tpl
+++ b/view/tpl/mitemlist.tpl
@@ -13,14 +13,16 @@
<table id="mitem-list-table">
<tr>
<th width="1%">{{$nametitle}}</th>
- <th width="97%">{{$targettitle}}</th>
+ <th width="96%">{{$targettitle}}</th>
+ <th width="1%"></th>
<th width="1%"></th>
<th width="1%"></th>
</tr>
{{foreach $mlist as $m }}
<tr id="mitem-list-item-{{$m.mitem_id}}">
<td width="1%">{{$m.mitem_desc}}</td>
- <td width="97%"><a href="{{$m.mitem_link}}">{{$m.mitem_link}}</a></td>
+ <td width="96%"><a href="{{$m.mitem_link}}">{{$m.mitem_link}}</a></td>
+ <td width="1%" class="dropdown">{{if $m.allow_cid || $m.allow_gid || $m.deny_cid || $m.deny_gid}}<i class="icon-lock dropdown-toggle lockview" data-toggle="dropdown" onclick="lockview('menu_item',{{$m.mitem_id}});" ></i><ul id="panel-{{$m.mitem_id}}" class="lockview-panel dropdown-menu"></ul>{{/if}}</td>
<td width="1%" class="mitem-list-tool"><a href="mitem/{{$menu_id}}/{{$m.mitem_id}}" title="{{$hintedit}}"><i class="icon-pencil"></i></a></td>
<td width="1%" class="mitem-list-tool"><a href="#" title="{{$hintdrop}}" onclick="dropItem('mitem/{{$menu_id}}/{{$m.mitem_id}}/drop', '#mitem-list-item-{{$m.mitem_id}}, #pmenu-item-{{$m.mitem_id}}'); return false;"><i class="icon-trash drop-icons"></i></a></td>
</tr>