19 lines
599 B
Plaintext
19 lines
599 B
Plaintext
- model_class = List
|
|
.page-header= title :show, @list
|
|
|
|
dl.dl-horizontal.show-list
|
|
dt= model_class.human_attribute_name(:state)
|
|
dd= @list.state
|
|
dt= model_class.human_attribute_name(:closed_at)
|
|
dd= @list.closed_at
|
|
- if @list.table.present?
|
|
dt= Table.model_name.human
|
|
dd= link_to @list.table.number, @list.table
|
|
|
|
.form-actions
|
|
= link_to t("helpers.links.back"), lists_path, class: 'btn'
|
|
'
|
|
= link_to t('helpers.links.edit'), [:edit, @list], class: 'btn'
|
|
'
|
|
= link_to t("helpers.links.destroy"), @list, method: :delete, data: {confirm: are_you_sure? }, class: 'btn btn-danger'
|