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