<% dashboard = 'active' if params[:controller].include?('dashboard') %>
- <%= link_to Typus::I18n.t("Dashboard"), admin_dashboard_path, :class => dashboard %>
<% admin_user.applications.each do |application| %>
<%
apps = admin_user.application(application)
klass = 'active' if (@resource && apps.include?(@resource.model_name))
%>
- <%= link_to Typus::I18n.t(application), { :controller => "/admin/#{apps.first.tableize}" }, { :class => klass } %>
<% end %>