show created/edited dates for menus

This commit is contained in:
Mario Vavti 2015-05-29 11:07:57 +02:00
parent 3a9139f76e
commit 5f1ae2930b
3 changed files with 22 additions and 3 deletions

View file

@ -102,6 +102,8 @@ function menu_content(&$a) {
'$desctitle' => t('Menu Title'),
'$edit' => t('Edit'),
'$drop' => t('Drop'),
'$created' => t('Created'),
'$edited' => t('Edited'),
'$new' => t('New'),
'$bmark' => t('Bookmarks allowed'),
'$hintnew' => t('Create'),

View file

@ -2,7 +2,20 @@
width: 100%;
}
#menu-list-table th:nth-child(2){
#menu-list-table th:nth-child(2),
#menu-list-table th:nth-child(3) {
white-space: nowrap;
}
#menu-list-table th:nth-child(6),
#menu-list-table td:nth-child(6) {
padding: 7px 3px;
white-space: nowrap;
}
#menu-list-table th:nth-child(7),
#menu-list-table td:nth-child(7) {
padding: 7px 10px 7px 7px;
white-space: nowrap;
}

View file

@ -14,17 +14,21 @@
<tr>
<th width="1%"></th>
<th width="1%">{{$nametitle}}</th>
<th width="96%">{{$desctitle}}</th>
<th width="94%">{{$desctitle}}</th>
<th width="1%"></th>
<th width="1%"></th>
<th width="1%" class="hidden-xs">{{$created}}</th>
<th width="1%" class="hidden-xs">{{$edited}}</th>
</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="96%">{{$m.menu_desc}}</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>
</tr>
{{/foreach}}
</table>