2017-07-07 06:51:03 -04:00
|
|
|
- @hide_top_links = true
|
2017-06-23 06:45:08 -04:00
|
|
|
- @content_class = "limit-container-width limited-inner-width-container" unless fluid_layout
|
2018-11-26 09:29:40 -05:00
|
|
|
- add_to_breadcrumbs _("Snippets"), dashboard_snippets_path
|
2017-08-17 05:42:04 -04:00
|
|
|
- breadcrumb_title @snippet.to_reference
|
2018-11-26 09:29:40 -05:00
|
|
|
- page_title "#{@snippet.title} (#{@snippet.to_reference})", _("Snippets")
|
2013-07-18 06:08:48 -04:00
|
|
|
|
2019-12-05 22:08:02 -05:00
|
|
|
- if Feature.enabled?(:snippets_vue)
|
2019-12-13 13:08:06 -05:00
|
|
|
#js-snippet-view{ data: {'qa-selector': 'snippet_view', 'snippet-gid': @snippet.to_global_id} }
|
2019-12-05 22:08:02 -05:00
|
|
|
- else
|
|
|
|
= render 'shared/snippets/header'
|
2015-10-18 06:54:02 -04:00
|
|
|
|
2019-12-05 22:08:02 -05:00
|
|
|
.personal-snippets
|
2020-02-25 04:09:10 -05:00
|
|
|
= render 'shared/snippets/blob', blob: @blob
|
2016-09-04 04:51:12 -04:00
|
|
|
|
2020-02-14 13:08:45 -05:00
|
|
|
.row-content-block.top-block.content-component-block
|
|
|
|
= render 'award_emoji/awards_block', awardable: @snippet, inline: true
|
2017-04-27 06:41:26 -04:00
|
|
|
|
2020-02-14 13:08:45 -05:00
|
|
|
#notes.limited-width-notes= render "shared/notes/notes_with_form", :autocomplete => false
|