Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-14 15:10:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-14 15:10:58 +0300
commit793d974d7c4bd8c9cbd437a9e35087092f4e8bea (patch)
treea88b391ab97bc58f1d1eb665eec7cf64ce072716 /app/views/snippets
parentc19bb4adbf354562715ba019892f464080eba850 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/views/snippets')
-rw-r--r--app/views/snippets/edit.html.haml2
-rw-r--r--app/views/snippets/show.html.haml2
2 files changed, 4 insertions, 0 deletions
diff --git a/app/views/snippets/edit.html.haml b/app/views/snippets/edit.html.haml
index 66f5e8148e1..6e0126fd2fd 100644
--- a/app/views/snippets/edit.html.haml
+++ b/app/views/snippets/edit.html.haml
@@ -1,5 +1,7 @@
- page_title _("Edit"), "#{@snippet.title} (#{@snippet.to_reference})", _("Snippets")
- @content_class = "limit-container-width" unless fluid_layout
+- content_for :monaco_tag do
+ - webpack_preload_asset_tag('monaco')
%h3.page-title
= _("Edit Snippet")
diff --git a/app/views/snippets/show.html.haml b/app/views/snippets/show.html.haml
index beb4cf4a6aa..534bbbef437 100644
--- a/app/views/snippets/show.html.haml
+++ b/app/views/snippets/show.html.haml
@@ -9,6 +9,8 @@
- add_to_breadcrumbs _("Snippets"), dashboard_snippets_path
- breadcrumb_title @snippet.to_reference
- page_title "#{@snippet.title} (#{@snippet.to_reference})", _("Snippets")
+- content_for :monaco_tag do
+ - webpack_preload_asset_tag('monaco', prefetch: true)
#js-snippet-view{ data: {'qa-selector': 'snippet_view', 'snippet-gid': @snippet.to_global_id} }