Sha256: 76a06adb8fdaa7008ca2a16cb77693f18fb035a90eb5157af5bef5633083f36d
Contents?: true
Size: 522 Bytes
Versions: 18
Compression:
Stored size: 522 Bytes
Contents
<ul> <% dashboard = 'active' if params[:controller].include?('dashboard') %> <li><%= link_to Typus::I18n.t("Dashboard"), admin_dashboard_path, :class => dashboard %></li> <% admin_user.applications.each do |application| %> <% apps = admin_user.application(application) klass = 'active' if (@resource && apps.include?(@resource.model_name)) %> <li><%= link_to Typus::I18n.t(application), { :controller => "/admin/#{apps.first.tableize}" }, { :class => klass } %></li> <% end %> </ul>
Version data entries
18 entries across 18 versions & 1 rubygems