Sha256: 7d1b546101437b183e2c81e89f2f457cb6ef38fc81813cc516cae00e7292fff9

Contents?: true

Size: 1.13 KB

Versions: 6

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

6 entries across 6 versions & 1 rubygems

Version Path
model_base_generators-0.3.2 example/app/views/projects/_table.html.erb
model_base_generators-0.3.1 example/app/views/projects/_table.html.erb
model_base_generators-0.3.0 example/app/views/projects/_table.html.erb
model_base_generators-0.2.4 example/app/views/projects/_table.html.erb
model_base_generators-0.2.3 example/app/views/projects/_table.html.erb
model_base_generators-0.2.2 example/app/views/projects/_table.html.erb