Sha256: e3a775372f92e504bfa906949313681bce9d705dfa975b2a0b6f0683670aca44
Contents?: true
Size: 1.81 KB
Versions: 5
Compression:
Stored size: 1.81 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') if can? :create, Guts::NavigationItem %> <%= 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)) if can? :update, Guts::NavigationItem %> <%= link_to_destroy('Destroy', navigation_navigation_item_path(navigation_item.navigation, navigation_item)) if can? :delete, Guts::NavigationItem %> </td> </tr> <% end %> </tbody> </table> <% else %> <p>No navigation items have been added.</p> <% end %> </div> </div>
Version data entries
5 entries across 5 versions & 1 rubygems