Sha256: b392349bedd1068bb8839c6808d81179da97bead937c23b69118c3dfcc46011a
Contents?: true
Size: 1.06 KB
Versions: 13
Compression:
Stored size: 1.06 KB
Contents
<% applications = admin_user.applications if params[:application] applications.reject! { |a| a.parameterize != params[:application] } end %> <h2><%= Typus::I18n.t("Dashboard") %></h2> <div class="row"> <% if applications.any? %> <% applications.each do |app| %> <div class="span3"> <div class="well"> <table class="table"> <thead> <tr> <th><%= Typus::I18n.t(app) %></th> </tr> </thead> <% admin_user.application(app).map(&:constantize).each do |klass| %> <% unless klass.typus_options_for(:hide_from_dashboard) %> <tr> <td> <%= link_to klass.model_name.human.pluralize, :controller => "/admin/#{klass.to_resource}" %> </td> </tr> <% end %> <% end %> </table> </div> </div> <% end %> <% else %> <div class="notice"> <%= Typus::I18n.t("No applications detected.") %> </div> <% end %> </div>
Version data entries
13 entries across 13 versions & 1 rubygems