Sha256: 294f59ae3621a27432c621cd72a18264ab1f332c442c6beaf3c090060e0d5245
Contents?: true
Size: 1.41 KB
Versions: 14
Compression:
Stored size: 1.41 KB
Contents
<%- if ! nav_items.blank? -%> <p>To reorder a link, drag it using the drag icon on the far right.</p> <table class="standard"> <thead> <tr> <th>Link Text</th> <th>Link Title</th> <th>URL</th> <th> </th> <th><%= image_tag '/images/icons/move_white.png' -%></th> </tr> </thead> <tbody id="content_list_<%= navitem_type -%>"> <%- nav_items.sort{|a,b| a.position.to_i <=> b.position.to_i}.each do |nav_item| -%> <tr class="<%= cycle('odd', 'even') -%>" id="content_<%= nav_item.id -%>"> <td><%= link_to nav_item.link_text, admin_site_nav_item_path(@site, nav_item) -%></td> <td><%= nav_item.link_title -%></td> <td><%= nav_item.decoded_url -%></td> <td class="crud_links"> <%= link_to image_tag('/images/icons/delete.png'), admin_site_nav_item_path(@site, nav_item), :method => :delete, :confirm => 'Are you sure? This action cannot be undone.' -%> </td> <td style="width: 19px; cursor: move"> <img src="/images/icons/drag.png" alt="Move" width="19" height="19" class="move_icon" /> </td> </tr> <%- end -%> </tbody> </table> <%= sortable_element "content_list_#{navitem_type}", :update => nil, :url => admin_site_reorder_nav_items_path(@site, :kind => navitem_type), :method => :put, :tag => 'tr' unless Rails.env.test? -%> <%- else -%> <p><em>No <%= navitem_type -%> navigation items have been created yet.</em></p> <%- end -%>
Version data entries
14 entries across 14 versions & 1 rubygems