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