Files
dunlop-core/app/views/dunlop/source_files/show.html.slim
T
2018-01-20 13:02:44 -03:00

41 lines
1.5 KiB
Plaintext

- if defined?(Foundation)
= page_title :show, @source_file, back: dunlop.source_files_path
.display-row
.display-label= at :state
.display-field.state= @source_file.human_state_name
.display-row
.display-label= at :name
.display-field.state= @source_file.original_file.file.try :identifier
.display-row
.display-label= at :created_at
.display-field data-time=@source_file.created_at.iso8601 data-format="LLL"
.display-row
.display-label= at :current_at_day
.display-field data-date=@source_file.current_at_day.try(:iso8601)
= render 'dunlop/log_entries', loggable: @source_file
- if can? :download, @source_file
.page-actions
= link_to "Download", dunlop.download_source_file_path(@source_file), class: 'export-button'
- else
.ui.container
= page_title :show, @source_file, back: dunlop.source_files_path
table.ui.top.attached.compact.definition.table
tr
td= at :state
td= @source_file.human_state_name
tr
td= at :name
td.state= @source_file.original_file.file.try :identifier
tr
td= at :created_at
td: span data-time=@source_file.created_at.iso8601 data-format="LLL"
tr
td= at :current_at_day
td: span data-date=@source_file.current_at_day.try(:iso8601)
- if can? :download, @source_file
.ui.bottom.attached.segment.page-actions
= link_to "Download", dunlop.download_source_file_path(@source_file), class: 'export-button ui violet button'
= render 'dunlop/log_entries', loggable: @source_file