From: Bill Erickson Date: Tue, 22 May 2012 13:58:54 +0000 (-0400) Subject: kpac : added content css and cleanup X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=refs%2Fheads%2Fkpac-ac;p=evergreen%2Fequinox.git kpac : added content css and cleanup Signed-off-by: Bill Erickson --- 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; +}