debian-mirror-gitlab/app/views/projects/blob/_blob.html.haml

29 lines
1.3 KiB
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
= render "projects/blob/breadcrumb", blob: blob
2021-09-04 01:27:46 +05:30
- project = @project.present(current_user: current_user)
- ref = local_assigns[:ref] || @ref
2015-11-26 14:37:03 +05:30
2018-11-08 19:23:39 +05:30
.info-well.d-none.d-sm-block
2017-09-10 17:25:29 +05:30
.well-segment
%ul.blob-commit-info
= render 'projects/commits/commit', commit: @last_commit, project: @project, ref: @ref
2014-09-02 18:07:02 +05:30
2018-11-20 20:47:30 +05:30
= render_if_exists 'projects/blob/owners', blob: blob
2017-09-10 17:25:29 +05:30
= render "projects/blob/auxiliary_viewer", blob: blob
2014-09-02 18:07:02 +05:30
2017-08-17 22:00:37 +05:30
#blob-content-holder.blob-content-holder
2020-04-22 19:07:51 +05:30
- 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) } }
2021-04-29 21:17:54 +05:30
- if Feature.enabled?(:refactor_blob_viewer, @project, default_enabled: :yaml)
2021-09-04 01:27:46 +05:30
-# Data info will be removed once we migrate this to use GraphQL
-# Follow-up issue: https://gitlab.com/gitlab-org/gitlab/-/issues/330406
#js-view-blob-app{ data: { blob_path: blob.path,
project_path: @project.full_path,
target_branch: project.empty_repo? ? ref : @ref,
original_branch: @ref } }
2021-04-29 21:17:54 +05:30
.gl-spinner-container
= loading_icon(size: 'md')
- else
%article.file-holder
= render 'projects/blob/header', blob: blob
= render 'projects/blob/content', blob: blob