From 5f1ae2930b5ae69e142aed84f70afe5cde8cc38f Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Fri, 29 May 2015 11:07:57 +0200 Subject: show created/edited dates for menus --- mod/menu.php | 2 ++ view/css/mod_menu.css | 15 ++++++++++++++- view/tpl/menulist.tpl | 8 ++++++-- 3 files changed, 22 insertions(+), 3 deletions(-) diff --git a/mod/menu.php b/mod/menu.php index 63aeaa5e3..2f502ca17 100644 --- a/mod/menu.php +++ b/mod/menu.php @@ -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'), diff --git a/view/css/mod_menu.css b/view/css/mod_menu.css index 930bd834d..c3edec9fe 100644 --- a/view/css/mod_menu.css +++ b/view/css/mod_menu.css @@ -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; } diff --git a/view/tpl/menulist.tpl b/view/tpl/menulist.tpl index 1d3d70757..71c2a89fb 100644 --- a/view/tpl/menulist.tpl +++ b/view/tpl/menulist.tpl @@ -14,17 +14,21 @@ {{$nametitle}} - {{$desctitle}} + {{$desctitle}} + {{$created}} + {{$edited}} {{foreach $menus as $m }} {{if $m.bookmark}}{{/if}} {{$m.menu_name}} - {{$m.menu_desc}} + {{$m.menu_desc}} + {{$m.menu_created}} + {{$m.menu_edited}} {{/foreach}} -- cgit v1.2.3