[Opda-develop] OPDA/components/sidebar/sidetags category_list.rhtml, 1.2, 1.3
Brought to you by:
digitalpodcast
|
From: Alex N. <dig...@us...> - 2006-07-21 16:11:02
|
Update of /cvsroot/opda/OPDA/components/sidebar/sidetags In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv19437/components/sidebar/sidetags Modified Files: category_list.rhtml Log Message: added ajax to category menu Index: category_list.rhtml =================================================================== RCS file: /cvsroot/opda/OPDA/components/sidebar/sidetags/category_list.rhtml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** category_list.rhtml 17 Jul 2006 05:16:51 -0000 1.2 --- category_list.rhtml 21 Jul 2006 16:10:57 -0000 1.3 *************** *** 1,15 **** <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 %> --- 1,19 ---- + <!--TODO: fix css to change spacing at bottom of tree branch --> + <!--TODO: add ajax to next level of tree --> + <!--TODO: change gifs to be plus and minus --> + <div> <h4>Browse Categories</h4> ! <ul class="nobulletlist"> <% depth_check = 0 %> <% for category in @categories %> <% if category.depth == depth_check %> ! <li><div id="cat<%=category.id%>"><span id="rtbullet<%=category.id%>" class="rtbullet"><%= link_to_remote(theme_image_tag("rtbullet.gif", :border => 0), :url => {:controller => 'sidebar/sidetags', :action => 'show_subcat', :id => category.id})%></span><span id="downbullet<%=category.id%>" class="downbullet" style="display: none;"><%= link_to_remote(theme_image_tag("downbullet.gif", :border => 0), :url => {:controller => 'sidebar/sidetags', :action => 'show_subcat', :id => category.id}) %></span><%= link_to(h(category.title), {:action => 'show_category', :id => category.id}) %></div></li> <% depth_check = category.depth %> <% elsif category.depth > depth_check %> ! <ul id="subcat<%=category.parent_id%>" class="nobulletlist" style="display:none"><li><div id="cat<%=category.id%>"><span id="rtbullet<%=category.id%>" class="rtbullet"><%= theme_image_tag("rtbullet.gif", :border => 0)%></span><span id="downbullet<%=category.id%>" class="downbullet" style="display: none;"><%= theme_image_tag("downbullet.gif", :border => 0)%></span><%= link_to(h(category.title), {:action => 'show_category', :id => category.id}) %></div></li> <% depth_check = category.depth %> <% elsif category.depth < depth_check %> ! </ul><li><div id="cat<%=category.id%>"><span id="rtbullet<%=category.id%>" class="rtbullet"><%= theme_image_tag("rtbullet.gif", :border => 0)%></span><span id="downbullet<%=category.id%>" class="downbullet" style="display: none;"><%= theme_image_tag("downbullet.gif", :border => 0)%></span><%= link_to(h(category.title), {:action => 'show_category', :id => category.id}) %></div></li> <% depth_check = category.depth %> <% end %> |