Sha256: 836d2853bdb427b7700eaaa1757d9636a5503c622086a21b6c6caef652aec184

Contents?: true

Size: 1.62 KB

Versions: 46

Compression:

Stored size: 1.62 KB

Contents

<% javascript 'backend/sortable' %>
<%= render 'backend/breadcrumbs' %>

<% @navigations.each do |n| %>
  <div class="row">
    <div class="col-md-6">
      <h2><%= n.description %></h2>
    </div>
    <div class="col-md-6 text-right">
      <%= link_to t('b.add'), new_backend_navigation_item_path(n), class: 'btn btn-primary btn-sm' %>
    </div>
  </div>

  <% if n.items.any? %>
    <table class="table table-striped table-hover">
      <thead class="thead-inverse">
        <tr>
          <th><%= t 'b.page' %></th>
          <th><%= t 'b.custom_title' %></th>
          <th><%= t 'b.custom_url' %></th>
          <th><%= t 'b.extra' %></th>
          <th>&nbsp;</th>
        </tr>
      </thead>

      <tbody>
        <% n.items.each do |i| %>
          <tr data-update-position="<%= update_position_backend_navigation_item_path(n, i) %>">
            <td>
              <%= i.page ? i.page.description : t('b.none') %>
            </td>
            <td><%= i.translation.label %></td>
            <td><%= i.translation.path %></td>
            <td><%= i.extra %></td>
            <td class="text-right">
              <%= link_to_edit edit_translation_backend_navigation_item_path(n, i, default_app_locale) %>
              <%= link_to_delete backend_navigation_item_path(n, i) %>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>

  <% else %>
    <p><%= t 'b.msg.no_items' %></p>
  <% end %>
<% end %>

<% if @navigations.empty? %>
  <div class="card">
    <div class="card-header">
      <%= t 'b.navigation' %>
    </div>

    <div class="card-block">
      <%= t 'b.msg.no_items' %>
    </div>
  </div>
<% end %>

Version data entries

46 entries across 46 versions & 1 rubygems

Version Path
udongo-7.9.0 app/views/backend/navigations/index.html.erb
udongo-7.8.1 app/views/backend/navigations/index.html.erb
udongo-7.8.0 app/views/backend/navigations/index.html.erb
udongo-7.7.2 app/views/backend/navigations/index.html.erb
udongo-7.7.1 app/views/backend/navigations/index.html.erb
udongo-7.7.0 app/views/backend/navigations/index.html.erb
udongo-7.6.2 app/views/backend/navigations/index.html.erb
udongo-7.6.1 app/views/backend/navigations/index.html.erb
udongo-7.6.0 app/views/backend/navigations/index.html.erb
udongo-7.5.1 app/views/backend/navigations/index.html.erb
udongo-7.5.0 app/views/backend/navigations/index.html.erb
udongo-7.4.2 app/views/backend/navigations/index.html.erb
udongo-7.4.1 app/views/backend/navigations/index.html.erb
udongo-7.4.0 app/views/backend/navigations/index.html.erb
udongo-7.3.5 app/views/backend/navigations/index.html.erb
udongo-7.3.4 app/views/backend/navigations/index.html.erb
udongo-7.3.3 app/views/backend/navigations/index.html.erb
udongo-7.3.2 app/views/backend/navigations/index.html.erb
udongo-7.3.1 app/views/backend/navigations/index.html.erb
udongo-7.2.1 app/views/backend/navigations/index.html.erb