<%
if !params[:application] && params[:controller].include?('dashboard')
dashboard = 'active'
end
%>
- <%= link_to Typus::I18n.t("Dashboard"), admin_dashboard_index_path, :class => dashboard %>
<% 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
%>
- <%= link_to Typus::I18n.t(application), admin_dashboard_path(app_id), { :class => klass } %>
<% end %>