Sha256: 69c90ce29d7fc4e23b1c4c955e5dcb1ba745bf4e0ec769c6259512c53d944f1e
Contents?: true
Size: 1.7 KB
Versions: 2
Compression:
Stored size: 1.7 KB
Contents
<div class="row"> <div class="small-12 columns"> <h1>Navigation Items<% if @navigation %> <span class="sub_title">for <%= @navigation.title %></span><% end %></h1> <%= link_to 'New', (@navigation.nil? ? new_navigation_item_path : new_navigation_navigation_item_path(@navigation)), class: 'button' %> <%= link_to 'Back', navigations_path, class: 'hollow button secondary' %> </div> </div> <% if notice %> <div class="row"> <div class="small-12 columns"> <div class="callout success notice"> <p><%= notice %></p> </div> </div> </div> <% end %> <div class="row"> <div class="small-12 columns"> <% if @navigation_items.size > 0 %> <table> <tbody class="sortable" data-url="<%= reorder_navigation_path @navigation %>"> <% @navigation_items.each do |navigation_item| %> <tr class="item" data-id="<%= navigation_item.id %>"> <td><i class="handle fa fa-reorder"></i> <%= navigation_item.title %></td> <td> <small> to: <%= navigation_item.custom? ? 'Custom' : navigation_item.navigatable.navigatable_format %> <%= "(#{navigation_item.custom})" if navigation_item.custom? %> </small> </td> <td class="action_links"> <%= link_to 'Edit', edit_navigation_navigation_item_path(navigation_item.navigation, navigation_item) %> <%= link_to_destroy 'Destroy', navigation_navigation_item_path(navigation_item.navigation, navigation_item) %> </td> </tr> <% end %> </tbody> </table> <% else %> <p>No navigation items have been added.</p> <% end %> </div> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
guts-1.3.6 | app/views/guts/navigation_items/index.html.erb |
guts-1.3.5 | app/views/guts/navigation_items/index.html.erb |