Sha256: d4a84638c0c5e464bfb2f4bfeeb1e2c17448bb60ad2b5160f86e66085489396c

Contents?: true

Size: 1.73 KB

Versions: 7

Compression:

Stored size: 1.73 KB

Contents

<div class="sidebar-nav nav-collapse collapse" id="sidebar-navigation">
  <% cache ["name", current_user] do %>
    <div class="user_side clearfix">
      <h5>
        <%= current_user.name.humanize %>
      </h5>
      <%= link_to(
        current_user.role.name,
        "#"
      ) %>
    </div>
  <% end %>
  <div class="accordion" id="search-modules">

    <div class="accordion-group" data-no-filter="true">
      <div class="accordion-heading">
        <%= text_field_tag :text,
                            '',
                            class: 'search-input',
                            id: 'search-input',
                            placeholder: I18n.t('search.placeholder'),
                            autocomplete: :off,
                            autofocus: true
        %>
      </div>
    </div>

    <% Adminpanel.displayable_resources.each do |resource| %>
      <% resource_class = symbol_class(resource) %>
      <% if resource_class.has_route?(:index) && (can?(:read, resource_class) || can?( :publish, resource_class)) %>

        <div class="accordion-group" data-filter="<%= resource_class.collection_name -%>">
          <div class="accordion-heading">
            <%= link_to(
              [route_symbol(resource.to_s)],
              data: {
                no_transition_cache: true
              },
              class: "accordion-toggle accordion-navigation #{is_current_section?(resource_class.display_name)} spinner-link"
            ) do %>
              <%= content_tag(
                :i,
                nil,
                class: "fa fa-#{resource_class.icon}"
              ) %>
              <%= resource_class.collection_name %>
            <% end %>
          </div>
        </div>
      <% end %>
    <% end %>
  </div>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
adminpanel-3.3.4 app/views/layouts/adminpanel/_side_menu.html.erb
adminpanel-3.3.3 app/views/layouts/adminpanel/_side_menu.html.erb
adminpanel-3.3.0 app/views/layouts/adminpanel/_side_menu.html.erb
adminpanel-3.2.1 app/views/layouts/adminpanel/_side_menu.html.erb
adminpanel-3.2.0 app/views/layouts/adminpanel/_side_menu.html.erb
adminpanel-3.1.0 app/views/layouts/adminpanel/_side_menu.html.erb
adminpanel-3.0.0 app/views/layouts/adminpanel/_side_menu.html.erb