kpac : added content css and cleanup kpac-ac
authorBill Erickson <berick@esilibrary.com>
Tue, 22 May 2012 13:58:54 +0000 (09:58 -0400)
committerBill Erickson <berick@esilibrary.com>
Tue, 22 May 2012 13:58:54 +0000 (09:58 -0400)
Signed-off-by: Bill Erickson <berick@esilibrary.com>
Open-ILS/src/templates/kpac/parts/addedcontent.tt2
Open-ILS/web/css/skin/default/kpac/style.css

index 27f4ded..6a7a10b 100644 (file)
     # 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 %]
-                <a class="[% tab_class %]" id="ac:[% type %]" href="[% mkurl('', {ac => type}) _ '#addedcontent' %]">[% ac_types.$type %]</a>
-            [% 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 %]
+            <a class="[% tab_class %]" id="ac:[% type %]" href="[% mkurl('', {ac => type}) _ '#addedcontent' %]">[% ac_types.$type %]</a>
+        [% END;
+    END %]
+
     <div class="clear">&nbsp;</div>
 </div>
 
index bc88132..f937fa2 100755 (executable)
@@ -1018,16 +1018,8 @@ div.hr {
     visibility : hidden;\r
 }\r
 \r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
-\r
+.hidden {\r
+    visibility : hidden;\r
+    display : none;\r
+}\r
 \r