gitlab-org--gitlab-foss/app/views/projects/blob/show.html.haml

27 lines
822 B
Text
Raw Normal View History

- breadcrumb_title "Repository"
2016-06-23 18:25:14 -04:00
- @no_container = true
2015-04-30 13:06:18 -04:00
- page_title @blob.path, @ref
2017-04-13 13:05:09 -04:00
- content_for :page_specific_javascripts do
2017-07-18 05:15:02 -04:00
= webpack_bundle_tag 'blob'
2017-08-03 08:29:35 -04:00
- if show_new_repo?
= webpack_bundle_tag 'common_vue'
= webpack_bundle_tag 'repo'
2017-04-13 13:05:09 -04:00
= render 'projects/last_push'
%div{ class: container_class }
2017-08-03 08:29:35 -04:00
- if show_new_repo?
= render 'projects/files', commit: @last_commit, project: @project, ref: @ref, content_url: project_blob_path(@project, @id)
- else
#tree-holder.tree-holder
= render 'blob', blob: @blob
2017-08-03 08:29:35 -04:00
- if can_modify_blob?(@blob)
= render 'projects/blob/remove'
2015-09-17 02:34:30 -04:00
2017-08-03 08:29:35 -04:00
- title = "Replace #{@blob.name}"
= render 'projects/blob/upload', title: title, placeholder: title, button_title: 'Replace file', form_path: project_update_blob_path(@project, @id), method: :put