Sha256: e897d6adce378ee691422fb0b92962fcf07572c366ac8c4eb700e94ec230727f

Contents?: true

Size: 650 Bytes

Versions: 1

Compression:

Stored size: 650 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 = application.parameterize %>

    <%
      apps = 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

1 entries across 1 versions & 1 rubygems

Version Path
typus-3.1.0.rc19 app/views/helpers/admin/base/_apps.html.erb