Sha256: 51cff10a8d76004238d6bf5b1f958e4e557b122ba79059e3aeb91c02ced5299c

Contents?: true

Size: 684 Bytes

Versions: 13

Compression:

Stored size: 684 Bytes

Contents

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

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

<table class="table">

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

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

</table>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
brainsome_typus-4.0.0.beta13 app/views/admin/dashboard/widgets/_models_extended.html.erb
brainsome_typus-4.0.0.beta12 app/views/admin/dashboard/widgets/_models_extended.html.erb
brainsome_typus-4.0.0.beta11 app/views/admin/dashboard/widgets/_models_extended.html.erb
brainsome_typus-4.0.0.beta10 app/views/admin/dashboard/widgets/_models_extended.html.erb
brainsome_typus-4.0.0.beta9 app/views/admin/dashboard/widgets/_models_extended.html.erb
brainsome_typus-4.0.0.beta8 app/views/admin/dashboard/widgets/_models_extended.html.erb
brainsome_typus-4.0.0.beta7 app/views/admin/dashboard/widgets/_models_extended.html.erb
brainsome_typus-4.0.0.beta6 app/views/admin/dashboard/widgets/_models_extended.html.erb
brainsome_typus-4.0.0.beta5 app/views/admin/dashboard/widgets/_models_extended.html.erb
brainsome_typus-4.0.0.beta4 app/views/admin/dashboard/widgets/_models_extended.html.erb
brainsome_typus-4.0.0.beta3 app/views/admin/dashboard/widgets/_models_extended.html.erb
brainsome_typus-4.0.0.beta2 app/views/admin/dashboard/widgets/_models_extended.html.erb
brainsome_typus-4.0.0.beta1 app/views/admin/dashboard/widgets/_models_extended.html.erb