[Opda-develop] OPDA/app/views/subscription_lists list.rhtml, 1.2, 1.3
Brought to you by:
digitalpodcast
|
From: Alex N. <dig...@us...> - 2006-07-24 04:21:53
|
Update of /cvsroot/opda/OPDA/app/views/subscription_lists In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv4454/app/views/subscription_lists Modified Files: list.rhtml Log Message: set up subscription list views. Built browser tree for lists with channels in center div. see subscription_lists/list. Tree still needs some work. should be expanded to next level on entry and ajax toggle on minus sign needs to be fixed - currently set to display - but it is not toggling for some reason Index: list.rhtml =================================================================== RCS file: /cvsroot/opda/OPDA/app/views/subscription_lists/list.rhtml,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** list.rhtml 23 Jul 2006 20:36:54 -0000 1.2 --- list.rhtml 24 Jul 2006 04:21:50 -0000 1.3 *************** *** 1,25 **** ! <h1>Listing subscription_lists</h1> ! <table> ! <tr> ! <% for column in SubscriptionList.content_columns %> ! <th><%= column.human_name %></th> ! <% end %> ! </tr> ! ! <% for subscription_list in @subscription_lists %> ! <tr> ! <% for column in SubscriptionList.content_columns %> ! <td><%=h subscription_list.send(column.name) %></td> ! <% end %> ! <td><%= link_to 'Show', :action => 'show', :id => subscription_list %></td> ! <td><%= link_to 'Edit', :action => 'edit', :id => subscription_list %></td> ! <td><%= link_to 'Destroy', { :action => 'destroy', :id => subscription_list }, :confirm => 'Are you sure?' %></td> ! </tr> ! <% end %> ! </table> <br /> ! <%= link_to 'New subscription_list', :action => 'new' %> \ No newline at end of file --- 1,40 ---- ! <div id="wideleftcontent"> ! <h1>Browse Your Subscription Lists</h1> ! <div id="center" class="widecenter"> ! <ul id="channellist"> ! <li> Expand the tree and click on a list to see your podcast subscriptions</li> ! </ul> ! </div><!--end widecenter --> ! ! <!-- TODO: Tree should be expanded to next level on entry --> ! <!-- TODO: ajax toggle on minus sign needs to be fixed - currently set to display - but it is not toggling for some reason --> ! ! ! <div id="left" class="narrowleft"> ! <ul class="nobulletlist"> ! <% depth_check = 0 %> ! <% for subscription_list in @subscription_lists %> ! <% if subscription_list.depth == depth_check %> ! <li><div id="list<%=subscription_list.id%>"> ! <%= render :partial => 'subscription_list', :object => subscription_list %> ! <% depth_check = subscription_list.depth %> ! <% elsif subscription_list.depth > depth_check %> ! <ul id="sublist<%=subscription_list.parent_id%>" class="subcatlist" style="display:none"> ! <li><div id="list<%=subscription_list.id%>"> ! <%= render :partial => 'subscription_list', :object => subscription_list %> ! <% depth_check = subscription_list.depth %> ! <% elsif subscription_list.depth < depth_check %> ! </ul><li><div id="list<%=subscription_list.id%>"> ! <%= render :partial => 'subscription_list', :object => subscription_list %> ! <% depth_check = subscription_list.depth %> ! <% end %> ! <% end %> ! </ul> <br /> ! <%= link_to 'New subscription_list', :action => 'new' %> ! </div> <!--end narrowleft --> ! </div> \ No newline at end of file |