Sha256: c8e6c68b1f79165a0340a5b871eb375e3119e5598d4453a7a087b8737dd4c225

Contents?: true

Size: 1.34 KB

Versions: 4

Compression:

Stored size: 1.34 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(: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><%=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

Version Path
model_base_generators-0.2.3 example/app/views/issues/_table.html.erb
model_base_generators-0.2.2 example/app/views/issues/_table.html.erb
model_base_generators-0.2.1 example/app/views/issues/_table.html.erb
model_base_generators-0.2.0 example/app/views/issues/_table.html.erb