[Opda-develop] OPDA/components/sidebar/sidetags category_list.rhtml, 1.1, 1.2
Brought to you by:
digitalpodcast
|
From: Alex N. <dig...@us...> - 2006-07-17 05:16:53
|
Update of /cvsroot/opda/OPDA/components/sidebar/sidetags In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv12661/components/sidebar/sidetags Modified Files: category_list.rhtml Log Message: enhanced category sidebar - sub cats now hidden, need to add ajax toggle Index: category_list.rhtml =================================================================== RCS file: /cvsroot/opda/OPDA/components/sidebar/sidetags/category_list.rhtml,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** category_list.rhtml 10 Jul 2006 05:55:00 -0000 1.1 --- category_list.rhtml 17 Jul 2006 05:16:51 -0000 1.2 *************** *** 1,9 **** ! <div id="sidenav-links"> <h4>Browse Categories</h4> ! <ul> ! <% for category in @categories %> ! <li><%= link_to h(category.title.to_s.slice(0..19)), :controller => 'channels', :action => 'show_category', :id => category.title %></li> ! <% end %> ! </ul> </div> \ No newline at end of file --- 1,18 ---- ! <div> <h4>Browse Categories</h4> ! <ul class="topcatlevel"> ! <% depth_check = 0 %> ! <% for category in @categories %> ! <% if category.depth == depth_check %> ! <li><%= link_to("#{h category.title}", {:action => 'show_category', :id => category.id}) %></li> ! <% depth_check = category.depth %> ! <% elsif category.depth > depth_check %> ! <ul class="subcat"><li><%= link_to("#{h category.title}", {:action => 'show_category', :id => category.id}) %></li> ! <% depth_check = category.depth %> ! <% elsif category.depth < depth_check %> ! </ul><li><%= link_to("#{h category.title}", {:action => 'show_category', :id => category.id}) %></li> ! <% depth_check = category.depth %> ! <% end %> ! <% end %> </ul> </div> \ No newline at end of file |