16 lines
792 B
Plaintext
16 lines
792 B
Plaintext
- content_for :head do
|
|
// Force a full page reload, see https://github.com/turbolinks/turbolinks/issues/326.
|
|
Otherwise, code might not be highlighted correctly (race condition)
|
|
meta name='turbolinks-visit-control' content='reload'
|
|
- append_javascript_pack_tag('highlight')
|
|
- append_stylesheet_pack_tag('highlight')
|
|
|
|
h1
|
|
= @tip.to_s
|
|
= render('shared/edit_button', object: @tip)
|
|
|
|
= row(label: 'tip.title', value: @tip.title)
|
|
= row(label: 'tip.description', value: render_markdown(@tip.description), class: 'm-0')
|
|
= row(label: 'file.file_type', value: @tip.file_type_id? ? link_to_if(policy(@tip.file_type).show?, @tip.file_type.name, @tip.file_type) : '')
|
|
= row(label: 'tip.example', value: @tip.file_type_id? ? code_tag(@tip.example, @tip.file_type.programming_language) : '')
|