Sha256: 27da648533d3e1a7ef3425c8b27e02189076971c54f83b9cef240f7458e21e19
Contents?: true
Size: 1.46 KB
Versions: 4
Compression:
Stored size: 1.46 KB
Contents
<%- model_class = Issue -%> <table class="table table-striped"> <thead> <tr> <th><%= model_class.human_attribute_name(:project_id) %></th> <th><%= model_class.human_attribute_name(:title) %></th> <th><%= model_class.human_attribute_name(:status) %></th> <th><%= model_class.human_attribute_name(:creator_id) %></th> <th><%= model_class.human_attribute_name(:assignee_id) %></th> <th><%= model_class.human_attribute_name(:created_at) %></th> <th><%=t '.actions', :default => t("helpers.actions") %></th> </tr> </thead> <tbody> <% @issues.each do |issue| %> <tr> <td><%= issue.project.name %></td> <td><%= link_to issue.title, issue_path(issue) %></td> <td><%= issue.status_text %></td> <td><%= issue.creator.email %></td> <td><%= issue.assignee.try(:email) %></td> <td><%=l issue.created_at %></td> <td> <%= link_to t('.edit', :default => t("helpers.links.edit")), edit_issue_path(issue), :class => 'btn btn-default btn-xs' %> <%= link_to t('.destroy', :default => t("helpers.links.destroy")), issue_path(issue), :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
4 entries across 4 versions & 1 rubygems