Sha256: 899c9d06ddc3172adf1c236b34fee8626c04c67fd31e7282df2465345d1406af

Contents?: true

Size: 1.85 KB

Versions: 10

Compression:

Stored size: 1.85 KB

Contents

<div class="row">
  <div class="small-12 columns">
    <h1>Navigations</h1>
    <%= link_to 'New', new_navigation_path, class: 'button' %>
  </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">
  <% if @navigations.size > 0 %>
    <% @navigations.each do |navigation| %>
      <div class="small-12 medium-6 columns nav_block">
        <div class="callout secondary">
          <h5><%= navigation.title %></h5>
          <div class="tiny button-group">
            <%= link_to 'New', new_navigation_navigation_item_path(navigation), { class: 'button' } %>
            <%= link_to 'Edit', edit_navigation_path(navigation), { class: 'warning button' } %>
            <%= link_to_destroy 'Destroy', navigation, { class: 'alert button' } %>
          </div>
          <ul>
            <% if navigation.navigation_items.size > 0 %>
              <% navigation.navigation_items.each do |item| %>
                <li>
                  <%= item.title %>&nbsp;&nbsp;&mdash;&gt;&nbsp;&nbsp;<%= item.custom? ? 'Custom' : item.navigatable.navigatable_format %> <%= "to: #{item.custom}" if item.custom? %>
                  <div class="action_links">
                    <%= link_to 'Edit', edit_navigation_navigation_item_path(navigation, item) %>
                    <%= link_to_destroy 'Destroy', navigation_navigation_item_path(navigation, item) %>
                  </div>
                </li>
              <% end %>
            <% else %>
              <p>No navigational items added to this menu.</p>
            <% end %>
          </ul>
          <div></div>
        </div>
      </div>
    <% end %>
  <% else %>
    <div class="small-12 columns">
      <p>No navigational menus have been added.</p>
    </div>
  <% end %>
</div>

Version data entries

10 entries across 10 versions & 1 rubygems

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