Sha256: faaffa2427791a15bafed700da960ab33158b80f6f0b16afcbc7a0c8187522c9

Contents?: true

Size: 1.54 KB

Versions: 10

Compression:

Stored size: 1.54 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>
          <% @navigation_items.each do |navigation_item| %>
            <tr>
              <td><%= 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

10 entries across 10 versions & 1 rubygems

Version Path
guts-1.3.4 app/views/guts/navigation_items/index.html.erb
guts-1.3.3 app/views/guts/navigation_items/index.html.erb
guts-1.3.2 app/views/guts/navigation_items/index.html.erb
guts-1.3.1 app/views/guts/navigation_items/index.html.erb
guts-1.3.0 app/views/guts/navigation_items/index.html.erb
guts-1.2.2 app/views/guts/navigation_items/index.html.erb
guts-1.2.1 app/views/guts/navigation_items/index.html.erb
guts-1.2.0 app/views/guts/navigation_items/index.html.erb
guts-1.1.1 app/views/guts/navigation_items/index.html.erb
guts-1.1.0 app/views/guts/navigation_items/index.html.erb