aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2015-05-29 13:08:01 +0200
committerMario Vavti <mario@mariovavti.com>2015-05-29 13:08:01 +0200
commitb8d328076384ff48be47f59366aea8b1e1cc04a1 (patch)
tree81f0c9ac22a7ca48bf6aa6ccde8c738d5620caa3 /view
parent5f1ae2930b5ae69e142aed84f70afe5cde8cc38f (diff)
downloadvolse-hubzilla-b8d328076384ff48be47f59366aea8b1e1cc04a1.tar.gz
volse-hubzilla-b8d328076384ff48be47f59366aea8b1e1cc04a1.tar.bz2
volse-hubzilla-b8d328076384ff48be47f59366aea8b1e1cc04a1.zip
some fixes to make menu sharing work and expose it in the ui.
Diffstat (limited to 'view')
-rw-r--r--view/css/mod_menu.css8
-rw-r--r--view/tpl/menulist.tpl18
2 files changed, 14 insertions, 12 deletions
diff --git a/view/css/mod_menu.css b/view/css/mod_menu.css
index c3edec9fe..7f0f40246 100644
--- a/view/css/mod_menu.css
+++ b/view/css/mod_menu.css
@@ -7,14 +7,14 @@
white-space: nowrap;
}
-#menu-list-table th:nth-child(6),
-#menu-list-table td:nth-child(6) {
+#menu-list-table th:nth-child(7),
+#menu-list-table td:nth-child(7) {
padding: 7px 3px;
white-space: nowrap;
}
-#menu-list-table th:nth-child(7),
-#menu-list-table td:nth-child(7) {
+#menu-list-table th:nth-child(8),
+#menu-list-table td:nth-child(8) {
padding: 7px 10px 7px 7px;
white-space: nowrap;
}
diff --git a/view/tpl/menulist.tpl b/view/tpl/menulist.tpl
index 71c2a89fb..888dc6e6d 100644
--- a/view/tpl/menulist.tpl
+++ b/view/tpl/menulist.tpl
@@ -14,7 +14,8 @@
<tr>
<th width="1%"></th>
<th width="1%">{{$nametitle}}</th>
- <th width="94%">{{$desctitle}}</th>
+ <th width="93%">{{$desctitle}}</th>
+ <th width="1%"></th>
<th width="1%"></th>
<th width="1%"></th>
<th width="1%" class="hidden-xs">{{$created}}</th>
@@ -22,13 +23,14 @@
</tr>
{{foreach $menus as $m }}
<tr id="menu-list-item-{{$m.menu_id}}">
- <td width="1%">{{if $m.bookmark}}<i class="icon-bookmark menu-list-tool" title="{{$bmark}}" ></i>{{/if}}</td>
- <td width="1%"><a href="mitem/{{$m.menu_id}}{{if $sys}}?f=&sys=1{{/if}}" title="{{$hintcontent}}">{{$m.menu_name}}</a></td>
- <td width="94%">{{$m.menu_desc}}</td>
- <td width="1%" class="menu-list-tool"><a href="menu/{{$m.menu_id}}{{if $sys}}?f=&sys=1{{/if}}" title="{{$hintedit}}"><i class="icon-pencil"></i></a></td>
- <td width="1%" class="menu-list-tool"><a href="#" title="{{$hintdrop}}" onclick="dropItem('menu/{{$m.menu_id}}/drop{{if $sys}}?f=&sys=1{{/if}}', '#menu-list-item-{{$m.menu_id}}'); return false;"><i class="icon-trash drop-icons"></i></a></td>
- <td width="1%" class="hidden-xs">{{$m.menu_created}}</td>
- <td width="1%" class="hidden-xs">{{$m.menu_edited}}</td>
+ <td>{{if $m.bookmark}}<i class="icon-bookmark menu-list-tool" title="{{$bmark}}" ></i>{{/if}}</td>
+ <td><a href="mitem/{{$m.menu_id}}{{if $sys}}?f=&sys=1{{/if}}" title="{{$hintcontent}}">{{$m.menu_name}}</a></td>
+ <td>{{$m.menu_desc}}</td>
+ <td class="menu-list-tool"><a href="menu/{{$m.menu_id}}{{if $sys}}?f=&sys=1{{/if}}" title="{{$hintedit}}"><i class="icon-pencil"></i></a></td>
+ <td class="menu-list-tool"><a href="rpost?attachment={{$m.element}}" title="{{$share}}"><i class="icon-share"></i></a></td>
+ <td class="menu-list-tool"><a href="#" title="{{$hintdrop}}" onclick="dropItem('menu/{{$m.menu_id}}/drop{{if $sys}}?f=&sys=1{{/if}}', '#menu-list-item-{{$m.menu_id}}'); return false;"><i class="icon-trash drop-icons"></i></a></td>
+ <td class="hidden-xs">{{$m.menu_created}}</td>
+ <td class="hidden-xs">{{$m.menu_edited}}</td>
</tr>
{{/foreach}}
</table>