Sha256: 0d0ba78a00249d4282f0656a4a36aaf2a8a6ae4e21e39625733e9113747eabec

Contents?: true

Size: 639 Bytes

Versions: 11

Compression:

Stored size: 639 Bytes

Contents

<ul>

  <%
    if !params[:application] && params[:controller].include?('dashboard')
      dashboard = 'active'
    end
  %>

  <li><%= link_to Typus::I18n.t("Dashboard"), admin_dashboard_index_path, :class => dashboard %></li>

  <% admin_user.applications.each do |application| %>

    <%
      app_id, apps = application.parameterize, admin_user.application(application)
      if (params[:application] == app_id) || (@resource && apps.include?(@resource.model_name))
        klass = 'active'
      end
    %>

    <li><%= link_to Typus::I18n.t(application), admin_dashboard_path(app_id), { :class => klass } %></li>

  <% end %>

</ul>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
typus-3.1.10 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.9 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.8 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.7 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.6 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.5 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.4 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.3 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.2 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.1 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.0 app/views/helpers/admin/base/_apps.html.erb