[Opda-develop] OPDA/components/sidebar/sidetags category_list.rhtml, 1.5, 1.6
Brought to you by:
digitalpodcast
|
From: Alex N. <dig...@us...> - 2006-08-31 05:35:48
|
Update of /cvsroot/opda/OPDA/components/sidebar/sidetags In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv19234/components/sidebar/sidetags Modified Files: category_list.rhtml Log Message: mods to render cat list from sub lists Index: category_list.rhtml =================================================================== RCS file: /cvsroot/opda/OPDA/components/sidebar/sidetags/category_list.rhtml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** category_list.rhtml 26 Jul 2006 21:40:14 -0000 1.5 --- category_list.rhtml 31 Aug 2006 05:35:45 -0000 1.6 *************** *** 4,23 **** <h4><%= "Browse Categories".t %></h4> <ul class="nobulletlist"> ! <% depth_check = 0 %> ! <% for category in @categories %> ! <% if category.depth == depth_check %> ! <li><div id="cat<%=category.id%>"> ! <%= render :partial => 'category', :object => category %> ! <% depth_check = category.depth %> ! <% elsif category.depth > depth_check %> ! <ul id="subcat<%=category.parent_id%>" class="subcatlist" style="display:none"> ! <li><div id="cat<%=category.id%>"> ! <%= render :partial => 'category', :object => category %> ! <% depth_check = category.depth %> ! <% elsif category.depth < depth_check %> ! </ul><li><div id="cat<%=category.id%>"> ! <%= render :partial => 'category', :object => category %> ! <% depth_check = category.depth %> ! <% end %> <% end %> </ul> --- 4,12 ---- <h4><%= "Browse Categories".t %></h4> <ul class="nobulletlist"> ! <% if !@categories.nil? %> ! <% categories = @categories.children %> ! <% for category in categories %> ! <li><%= link_to h(category.title), :controller => 'channels', :action => 'show_category', :id => category.id %></li> ! <% end %> <% end %> </ul> |