<% applications = admin_user.applications if params[:application] applications.reject! { |a| a.parameterize != params[:application] } end %>

<%= Typus::I18n.t("Dashboard") %>

<% if applications.any? %> <% applications.each do |app| %> <% admin_user.application(app).map(&:constantize).each do |klass| %> <% unless klass.typus_options_for(:hide_from_dashboard) %> <% end %> <% end %>
<%= Typus::I18n.t(app) %>
<%= link_to klass.model_name.human(count: 2), :controller => "/admin/#{klass.to_resource}" %>
<% end %> <% else %>
<%= Typus::I18n.t("No applications detected.") %>
<% end %>