From 0dc1128014964af460c5446670ef1340a72d59ee Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Tue, 22 May 2012 09:58:54 -0400 Subject: [PATCH] kpac : added content css and cleanup Signed-off-by: Bill Erickson --- Open-ILS/src/templates/kpac/parts/addedcontent.tt2 | 28 ++++++++++------------ Open-ILS/web/css/skin/default/kpac/style.css | 16 ++++--------- 2 files changed, 17 insertions(+), 27 deletions(-) diff --git a/Open-ILS/src/templates/kpac/parts/addedcontent.tt2 b/Open-ILS/src/templates/kpac/parts/addedcontent.tt2 index 27f4dedcb3..6a7a10b364 100644 --- a/Open-ILS/src/templates/kpac/parts/addedcontent.tt2 +++ b/Open-ILS/src/templates/kpac/parts/addedcontent.tt2 @@ -15,22 +15,20 @@ # content, do not render the link if it's known to not have content. If # the content status is unknown, render the link, but hide the link via CSS # if dojo is enabled. If dojo is not enabled, render and display the link. --%] - [%- - all_hidden = 1; - FOR type IN ac_types.keys; - tab_class = ''; - SET tab_class = 'ac_tab_selected' IF type == selected_type; - IF ctx.added_content.$type.status != '2'; # no content - all_hidden = 0; - IF ctx.added_content.$type.status == '3' AND want_dojo; # status unknown - tab_class = tab_class _ ' hidden'; - END %] - [% ac_types.$type %] - [% END; - END; - %] + all_hidden = 1; + FOR type IN ac_types.keys; + tab_class = ''; + SET tab_class = 'ac_tab_selected' IF type == selected_type; + IF ctx.added_content.$type.status != '2'; # no content + all_hidden = 0; + IF ctx.added_content.$type.status == '3' AND want_dojo; # status unknown + tab_class = tab_class _ ' hidden'; + END %] + [% ac_types.$type %] + [% END; + END %] +
 
diff --git a/Open-ILS/web/css/skin/default/kpac/style.css b/Open-ILS/web/css/skin/default/kpac/style.css index bc88132fa8..f937fa21e2 100755 --- a/Open-ILS/web/css/skin/default/kpac/style.css +++ b/Open-ILS/web/css/skin/default/kpac/style.css @@ -1018,16 +1018,8 @@ div.hr { visibility : hidden; } - - - - - - - - - - - - +.hidden { + visibility : hidden; + display : none; +} -- 2.11.0