Sha256: 312ff95fa57d89dac3f93e3f5b8186accb381c6846fa1bccd5d9f411987ea257
Contents?: true
Size: 1.03 KB
Versions: 2
Compression:
Stored size: 1.03 KB
Contents
<%- model_class = Project -%> <table class="table table-striped"> <thead> <tr> <th><%= model_class.human_attribute_name(:owner_id) %></th> <th><%= model_class.human_attribute_name(:name) %></th> <th><%=t '.actions', :default => t("helpers.actions") %></th> </tr> </thead> <tbody> <% @projects.each do |project| %> <tr> <td><%= project.owner.email %></td> <td><%= link_to project.name, project_path(project) %></td> <td> <%= link_to t('.edit', :default => t("helpers.links.edit")), edit_project_path(project), :class => 'btn btn-default btn-xs' %> <%= link_to t('.destroy', :default => t("helpers.links.destroy")), project_path(project), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-xs btn-danger' %> </td> </tr> <% end %> </tbody> </table>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
model_base_generators-0.2.1 | example/app/views/projects/_table.html.erb |
model_base_generators-0.2.0 | example/app/views/projects/_table.html.erb |