1
0
mirror of https://github.com/fspc/BikeShed-1.git synced 2025-03-01 01:03:23 -05:00
Jason Denney a27c898ddb Add acts_as_loggable/bike_actions resources, controller, and views
-Note that updating doesn't work due to expose gem perhaps?  Need to fix
2012-12-09 16:27:38 -05:00

22 lines
1.1 KiB
Plaintext

- model_class = ActsAsLoggable::BikeAction.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(:action)
%th= model_class.human_attribute_name(:created_at)
%th=t '.actions', :default => t("helpers.actions")
%tbody
- bike_actions.each do |bike_action|
%tr
%td= link_to bike_action.id, acts_as_loggable_bike_action_path(bike_action)
%td= bike_action.action
%td=l bike_action.created_at
%td
= link_to t('.edit', :default => t("helpers.links.edit")), edit_acts_as_loggable_bike_action_path(bike_action), :class => 'btn btn-mini'
= link_to t('.destroy', :default => t("helpers.links.destroy")), acts_as_loggable_bike_action_path(bike_action), :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_acts_as_loggable_bike_action_path, :class => 'btn btn-primary'