Sha256: 1d1796f2fe276e50d411fbfc734b8068e60a535dd9f6d3fdcf2b09d9978aca4a

Contents?: true

Size: 696 Bytes

Versions: 4

Compression:

Stored size: 696 Bytes

Contents

<!-- Applications list with models. -->

<h2><%= Typus::I18n.t("Applications") %></h2>

<% if admin_user.applications.any? %>
  <% admin_user.applications.each do |app| %>

    <table>

      <thead>
        <tr>
          <th><%= Typus::I18n.t(app) %></th>
        </tr>
      </thead>

      <% admin_user.application(app).map { |i| i.constantize }.each do |klass| %>
        <tr class="<%= cycle("even", "odd") %>">
          <td>
            <%= link_to klass.model_name.human.pluralize, :controller => "/admin/#{klass.to_resource}" %>
          </td>
        </tr>
      <% end %>

    </table>

  <% end %>
<% else %>
  <div class="notice">
    No applications detected.
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
typus-3.1.0.rc18 app/views/admin/dashboard/widgets/_applications.html.erb
typus-3.1.0.rc17 app/views/admin/dashboard/widgets/_applications.html.erb
typus-3.1.0.rc16 app/views/admin/dashboard/widgets/_applications.html.erb
typus-3.1.0.rc15 app/views/admin/dashboard/widgets/_applications.html.erb