mirror of https://github.com/fspc/BikeShed-1.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
1.0 KiB
22 lines
1.0 KiB
12 years ago
|
- model_class = BikeStyle.new.class
|
||
|
.page-header
|
||
|
%h1=t '.title', :default => model_class.model_name.human.pluralize
|
||
|
%table.table.table-striped
|
||
|
%thead
|
||
|
%tr
|
||
|
%th= model_class.human_attribute_name(:id)
|
||
|
%th= model_class.human_attribute_name(:style)
|
||
|
%th= model_class.human_attribute_name(:created_at)
|
||
|
%th=t '.actions', :default => t("helpers.actions")
|
||
|
%tbody
|
||
|
- bike_styles.each do |bike_style|
|
||
|
%tr
|
||
|
%td= link_to bike_style.id, bike_style_path(bike_style)
|
||
|
%td= bike_style.style
|
||
|
%td=l bike_style.created_at
|
||
|
%td
|
||
|
= link_to t('.edit', :default => t("helpers.links.edit")), edit_bike_style_path(bike_style), :class => 'btn btn-mini'
|
||
|
= link_to t('.destroy', :default => t("helpers.links.destroy")), bike_style_path(bike_style), :method => :delete, :confirm => t('.confirm', :default => t("helpers.links.confirm", :default => 'Are you sure?')), :class => 'btn btn-mini btn-danger'
|
||
|
|
||
|
= link_to t('.new', :default => t("helpers.links.new")), new_bike_style_path, :class => 'btn btn-primary'
|