Velocipede's User, Sales, and Bike Inventory Web App
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.
 
 
 
 
 
 

36 lines
1.7 KiB

- model_class = ActsAsLoggable::Log.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(:loggable_id)
%th= model_class.human_attribute_name(:loggable_type)
%th= model_class.human_attribute_name(:logger_id)
%th= model_class.human_attribute_name(:logger_type)
%th= model_class.human_attribute_name(:context)
%th= model_class.human_attribute_name(:start_date)
%th= model_class.human_attribute_name(:end_date)
%th= model_class.human_attribute_name(:description)
%th= model_class.human_attribute_name(:action_id)
%th= model_class.human_attribute_name(:created_at)
%th=t '.actions', :default => t("helpers.actions")
%tbody
- @logs.each do |log|
%tr
%td= link_to log.id, acts_as_loggable_log_path(log)
%td= log.loggable_id
%td= log.loggable_type
%td= log.logger_id
%td= log.logger_type
%td= log.context
%td= log.start_date
%td= log.end_date
%td= log.description
%td= log.action
%td=l log.created_at
%td
= link_to t('.edit', :default => t("helpers.links.edit")), edit_acts_as_loggable_log_path(log), :class => 'btn btn-mini'
= link_to t('.destroy', :default => t("helpers.links.destroy")), acts_as_loggable_log_path(log), :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")), "#{@loggable_path}/new", :class => 'btn btn-primary'