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

Version Path
typus-3.0.2 app/views/admin/helpers/_apps.html.erb
typus-3.0.1 app/views/admin/helpers/_apps.html.erb
typus-3.0.0 app/views/admin/helpers/_apps.html.erb
typus-1.0.0.pre13 app/views/admin/helpers/_apps.html.erb
typus-1.0.0.pre12 app/views/admin/helpers/_apps.html.erb
typus-1.0.0.pre11 app/views/admin/helpers/_apps.html.erb
typus-1.0.0.pre10 app/views/admin/helpers/_apps.html.erb
typus-1.0.0.pre9 app/views/admin/helpers/_apps.html.erb