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:
Diffstat (limited to 'app/views/projects/blob/_blob.html.haml')
-rw-r--r--app/views/projects/blob/_blob.html.haml11
1 files changed, 8 insertions, 3 deletions
diff --git a/app/views/projects/blob/_blob.html.haml b/app/views/projects/blob/_blob.html.haml
index a0f644717ad..84f2d352bc9 100644
--- a/app/views/projects/blob/_blob.html.haml
+++ b/app/views/projects/blob/_blob.html.haml
@@ -11,6 +11,11 @@
#blob-content-holder.blob-content-holder
- if @code_navigation_path
#js-code-navigation{ data: { code_navigation_path: @code_navigation_path, blob_path: blob.path, definition_path_prefix: project_blob_path(@project, @ref) } }
- %article.file-holder
- = render 'projects/blob/header', blob: blob
- = render 'projects/blob/content', blob: blob
+ - if Feature.enabled?(:refactor_blob_viewer, @project, default_enabled: :yaml)
+ #js-view-blob-app{ data: { blob_path: blob.path } }
+ .gl-spinner-container
+ = loading_icon(size: 'md')
+ - else
+ %article.file-holder
+ = render 'projects/blob/header', blob: blob
+ = render 'projects/blob/content', blob: blob