1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-04-04 05:33:22 -04:00
BikeShed-1/app/views/bike_brands/show.html.haml
2012-12-08 16:56:30 -05:00

23 lines
639 B
Plaintext

- model_class = bike_brand.class
.page-header
%h1=t '.title', :default => model_class.model_name.human
%p
%strong= model_class.human_attribute_name(:brand) + ':'
%br
= bike_brand.brand
%table.table.table-striped
%thead
%tr
%th= model_class.human_attribute_name(:id)
%th= model_class.human_attribute_name(:model)
%tbody
- bike_brand.models.each do |bike_model|
%tr
%td= link_to bike_model.id, bike_model_path(bike_model)
%td= link_to bike_model, bike_model_path(bike_model)
.form-actions
= link_to t('.back', :default => t("helpers.links.back")), bike_brands_path, :class => 'btn'