Sha256: 773002343e5afed0ef7449a029f1a7c4cd0d79a14e7a160b503bc673bd883557
Contents?: true
Size: 976 Bytes
Versions: 1
Compression:
Stored size: 976 Bytes
Contents
- default_page_title ||= nil; on_site_link ||= nil - current_title = default_page_title || model_class.model_name.human.pluralize(:ru) - title current_title .page-header .row .col-md-6 %h1 = current_title = link_to fa_icon(:pencil), edit_current_model_record_path(@record.id), class: 'btn btn-warning btn-xs' = ::Tramway::Admin.additional_buttons(record: @record.model.model_name, view: :show) %hr .row %table.table.table-striped.table-bordered - @record.attributes.each do |attribute_name, value| %tr %td = model_class.human_attribute_name attribute_name %td = value %td - if attribute_name != 'state' && @record.model.class.state_machines.keys.include?(attribute_name.to_sym) = state_events_buttons @record, state_method: attribute_name, model_param_name: :record, route_method: :current_model_record_path, parameters: { redirect: current_model_records_path }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tramway-admin-1.1.6.1 | app/views/tramway/admin/records/show.html.haml |