Sha256: 043e6d5fe55d93f790c63494d170647fa5844b5b1445ef74a1f263d67dda2b83

Contents?: true

Size: 1.16 KB

Versions: 6

Compression:

Stored size: 1.16 KB

Contents

<!-- Side menu -->
<div class="sidebar-nav nav-collapse collapse" id="sidebar-navigation">
  <div class="user_side clearfix">
    <h5>
      <%= current_user.name.humanize %>
    </h5>
    <%=
    link_to(
      "#{current_user.rol.name}",
      "#"
    )
    %>
  </div>
  <div class="accordion">
    <% Adminpanel.displayable_resources.each do |resource| %>
      <% resource_class = symbol_class(resource) %>
      <% if can?(:read, resource_class) || can?( :publish, resource_class) %>
        <div class="accordion-group">
          <div class="accordion-heading">
            <%=
            link_to(
              content_tag(
                :i,
                nil,
                class:"fa fa-#{resource_class.icon}"
              ) + content_tag(:span," " + resource_class.display_name.pluralize(I18n.default_locale)
              ),
              [route_symbol(resource.to_s)],
              data: { no_transition_cache: true },
              class: "accordion-toggle b_99FFCC #{is_current_section?(resource_class.display_name)} spinner-link"
            )
            %>
          </div>
        </div>
      <% end %>
    <% end %>

  </div>
</div>
<!-- /Side menu -->

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
adminpanel-2.2.5 app/views/layouts/_side_menu.html.erb
adminpanel-2.2.4 app/views/layouts/_side_menu.html.erb
adminpanel-2.2.3 app/views/layouts/_side_menu.html.erb
adminpanel-2.2.2 app/views/layouts/_side_menu.html.erb
adminpanel-2.2.1 app/views/layouts/_side_menu.html.erb
adminpanel-2.2.0 app/views/layouts/_side_menu.html.erb