1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-02-28 16:53:23 -05:00
BikeShed-1/app/views/bike_models/index.html.haml
2012-12-08 16:56:50 -05:00

18 lines
682 B
Plaintext

- model_class = BikeModel.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(:model)
%th= model_class.human_attribute_name(:bike_brand_id)
%tbody
- bike_models.each do |bike_model|
%tr
%td= link_to bike_model.id, bike_model_path(bike_model)
%td= bike_model.model
%td= link_to bike_model.brand, bike_brand_path(bike_model.brand)
= will_paginate bike_models
= link_to t('.new', :default => t("helpers.links.new")), new_bike_model_path, :class => 'btn btn-primary'