Sha256: 351ef31e2954fb3822e8665a46f449689109494f4f0760cd10d6d0d0bdb8a967
Contents?: true
Size: 578 Bytes
Versions: 13
Compression:
Stored size: 578 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> <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"), :controller => "/admin/#{klass.to_resource}", :action => 'new' %> </td> </tr> <% end %> </table>
Version data entries
13 entries across 13 versions & 1 rubygems