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

Version Path
typus-3.1.0.rc18 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.0.rc17 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.0.rc16 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.0.rc15 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.0.rc14 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.0.rc13 app/themes/default/views/helpers/admin/base/_apps.html.erb
typus-3.1.0.rc12 app/themes/default/views/helpers/admin/base/_apps.html.erb
typus-3.1.0.rc11 app/themes/default/views/helpers/admin/base/_apps.html.erb
typus-3.1.0.rc10 app/themes/default/views/helpers/admin/base/_apps.html.erb
typus-3.1.0.rc9 app/themes/default/views/helpers/admin/base/_apps.html.erb
typus-3.1.0.rc8 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.0.rc7 app/views/helpers/admin/base/_apps.html.erb
typus-3.1.0.rc6 app/views/admin/helpers/base/_apps.html.erb
typus-3.1.0.rc5 app/views/admin/helpers/base/_apps.html.erb
typus-3.1.0.rc4 app/views/admin/helpers/base/_apps.html.erb
typus-3.1.0.rc3 app/views/admin/helpers/base/_apps.html.erb
typus-3.1.0.rc2 app/views/admin/helpers/base/_apps.html.erb
typus-3.1.0.rc1 app/views/admin/helpers/base/_apps.html.erb