[Opda-develop] OPDA/components/sidebar/sidetags category_list.rhtml, 1.3, 1.4
Brought to you by:
digitalpodcast
|
From: Alex N. <dig...@us...> - 2006-07-22 22:56:17
|
Update of /cvsroot/opda/OPDA/components/sidebar/sidetags In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv30733/components/sidebar/sidetags Modified Files: category_list.rhtml Log Message: made tree node icons conditionl plus and minus and fixed spacing. every level of tree should work now Index: category_list.rhtml =================================================================== RCS file: /cvsroot/opda/OPDA/components/sidebar/sidetags/category_list.rhtml,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** category_list.rhtml 21 Jul 2006 16:10:57 -0000 1.3 --- category_list.rhtml 22 Jul 2006 22:56:14 -0000 1.4 *************** *** 1,7 **** - <!--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"> --- 1,5 ---- ! ! <div id="categorylist"> <h4>Browse Categories</h4> <ul class="nobulletlist"> *************** *** 9,19 **** <% 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 %> --- 7,21 ---- <% 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 %> |