<%- model_class = Plan -%> <div class="page-header"> <h1><%=t '.title', :default => model_class.model_name.human.pluralize.titleize %></h1> </div> <table class="table table-striped"> <thead> <tr> <th><%= model_class.human_attribute_name(:id) %></th> <th><%= model_class.human_attribute_name(:locked) %></th> <th><%= model_class.human_attribute_name(:project_id) %></th> <th><%= model_class.human_attribute_name(:version_id) %></th> <th><%= model_class.human_attribute_name(:slug) %></th> <th><%= model_class.human_attribute_name(:created_at) %></th> <th><%=t '.actions', :default => t("helpers.actions") %></th> </tr> </thead> <tbody> <% @plans.each do |plan| %> <tr> <td><%= link_to plan.id, plan_path(plan) %></td> <td><%= plan.locked %></td> <td><%= plan.project_id %></td> <td><%= plan.version_id %></td> <td><%= plan.slug %></td> <td><%=l plan.created_at %></td> <td> <%= link_to t('.edit', :default => t("helpers.links.edit")), edit_project_plan_path(plan), :class => 'btn btn-mini' %> <%= link_to t('.destroy', :default => t("helpers.links.destroy")), plan_path(plan), :method => :delete, :data => { :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')) }, :class => 'btn btn-mini btn-danger' %> </td> </tr> <% end %> </tbody> </table> <%= link_to t('.new', :default => t("helpers.links.new")), new_plan_path, :class => 'btn btn-primary' %>