summaryrefslogtreecommitdiff
path: root/app/views/snippets/show.html.haml
blob: 819f02b78febbd92e229d58fdb954145a71fb94d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
- @hide_top_links = true
- @content_class = "limit-container-width limited-inner-width-container" unless fluid_layout
- add_to_breadcrumbs _("Snippets"), dashboard_snippets_path
- breadcrumb_title @snippet.to_reference
- page_title "#{@snippet.title} (#{@snippet.to_reference})", _("Snippets")

- if Feature.enabled?(:snippets_vue, default_enabled: true)
  #js-snippet-view{ data: {'qa-selector': 'snippet_view', 'snippet-gid': @snippet.to_global_id} }
- else
  = render 'shared/snippets/header'

  .personal-snippets
    = render 'shared/snippets/blob', blob: @blob

.row-content-block.top-block.content-component-block
  = render 'award_emoji/awards_block', awardable: @snippet, inline: true

#notes.limited-width-notes= render "shared/notes/notes_with_form", :autocomplete => false