Sha256: c53cb6b96f309a63b8e76e6ba6419c7fed9fc44e3c9d60b601797c244fc31ce2
Contents?: true
Size: 522 Bytes
Versions: 8
Compression:
Stored size: 522 Bytes
Contents
<ul> <% dashboard = 'active' if params[:controller].include?('dashboard') %> <li><%= link_to _t("Dashboard"), admin_dashboard_path, :class => dashboard %></li> <% current_user.applications.each do |app| %> <% klass = (@resource && Typus.application(app).include?(@resource.name)) ? 'active' : nil %> <li><%= link_to _t(app), { :controller => Typus.application(app).sort {|a,b| a.constantize.model_name.human <=> b.constantize.model_name.human}.first.tableize }, { :class => klass } %></li> <% end %> </ul>
Version data entries
8 entries across 8 versions & 1 rubygems