Sha256: 0f2ec198a033459800fc07c5e38d5ff567e0dd683e9c1a1e3ca7e92477ac032f

Contents?: true

Size: 618 Bytes

Versions: 8

Compression:

Stored size: 618 Bytes

Contents

<!-- List of all available models -->

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

<table>

  <thead>
    <tr>
      <th><%= Typus::I18n.t("Model name") %></th>
      <th></th>
    </tr>
  </thead>

  <% admin_user.models.map(&:constantize).each do |klass| %>
    <tr class="<%= cycle("even", "odd") %>">
      <td><%= link_to klass.model_name.human.pluralize, :controller => "/admin/#{klass.to_resource}" %></td>
      <td width="80px" align="right">
        <%= link_to Typus::I18n.t("Add New"), :controller => "/admin/#{klass.to_resource}", :action => 'new' %>
      </td>
    </tr>
  <% end %>

</table>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
typus-3.1.10 app/views/admin/dashboard/widgets/_models.html.erb
typus-3.1.9 app/views/admin/dashboard/widgets/_models.html.erb
typus-3.1.8 app/views/admin/dashboard/widgets/_models.html.erb
typus-3.1.7 app/views/admin/dashboard/widgets/_models.html.erb
typus-3.1.6 app/views/admin/dashboard/widgets/_models.html.erb
typus-3.1.5 app/views/admin/dashboard/widgets/_models.html.erb
typus-3.1.4 app/views/admin/dashboard/widgets/_models.html.erb
typus-3.1.3 app/views/admin/dashboard/widgets/_models.html.erb