Sha256: 6f814785c68d239672b862c25edabaeda63d32ed82934dd849b47ddf7137d9f8
Contents?: true
Size: 1.13 KB
Versions: 9
Compression:
Stored size: 1.13 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><%= model_class.human_attribute_name(:closed) %></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><%= project.closed %></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
9 entries across 8 versions & 1 rubygems