Sha256: a4324a4458946a5cda3d60c223f3fa641bdf5cac437e90f0b53b2c57e1a9801a

Contents?: true

Size: 1.55 KB

Versions: 4

Compression:

Stored size: 1.55 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.is_custom? ? "Custom" : navigation_item.navigatable.navigatable_format %> <%= "(#{navigation_item.custom})" if navigation_item.is_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

4 entries across 4 versions & 1 rubygems

Version Path
guts-1.0.8 app/views/guts/navigation_items/index.html.erb
guts-1.0.7 app/views/guts/navigation_items/index.html.erb
guts-1.0.5 app/views/guts/navigation_items/index.html.erb
guts-1.0.3 app/views/guts/navigation_items/index.html.erb