2021-01-29 00:20:46 +05:30
|
|
|
- add_page_startup_graphql_call('snippet/snippet', { ids: [@snippet.to_global_id.uri] })
|
|
|
|
- add_page_startup_graphql_call('snippet/snippet_blob_content', { ids: [@snippet.to_global_id.uri], rich: false, paths: [@snippet.file_name] })
|
|
|
|
- if @snippet.project_id?
|
|
|
|
- add_page_startup_graphql_call('snippet/project_permissions', { fullPath: @snippet.project_id })
|
|
|
|
- else
|
|
|
|
- add_page_startup_graphql_call('snippet/user_permissions')
|
2017-09-10 17:25:29 +05:30
|
|
|
- @hide_top_links = true
|
|
|
|
- @content_class = "limit-container-width limited-inner-width-container" unless fluid_layout
|
2019-02-15 15:39:39 +05:30
|
|
|
- add_to_breadcrumbs _("Snippets"), dashboard_snippets_path
|
2018-03-17 18:26:18 +05:30
|
|
|
- breadcrumb_title @snippet.to_reference
|
2019-02-15 15:39:39 +05:30
|
|
|
- page_title "#{@snippet.title} (#{@snippet.to_reference})", _("Snippets")
|
2014-09-02 18:07:02 +05:30
|
|
|
|
2021-01-03 14:25:43 +05:30
|
|
|
#js-snippet-view{ data: {'qa-selector': 'snippet_view', 'snippet-gid': @snippet.to_global_id} }
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2020-03-09 13:42:32 +05:30
|
|
|
.row-content-block.top-block.content-component-block
|
|
|
|
= render 'award_emoji/awards_block', awardable: @snippet, inline: true
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2020-03-09 13:42:32 +05:30
|
|
|
#notes.limited-width-notes= render "shared/notes/notes_with_form", :autocomplete => false
|