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

28 lines
855 B
Text
Raw Normal View History

2017-09-10 17:25:29 +05:30
- breadcrumb_title "Repository"
2016-08-24 12:49:21 +05:30
- @no_container = true
2017-09-10 17:25:29 +05:30
2015-09-11 14:41:01 +05:30
- page_title @blob.path, @ref
2016-08-24 12:49:21 +05:30
= render "projects/commits/head"
2015-09-11 14:41:01 +05:30
2017-08-17 22:00:37 +05:30
- content_for :page_specific_javascripts do
2017-09-10 17:25:29 +05:30
= webpack_bundle_tag 'blob'
2017-08-17 22:00:37 +05:30
2017-09-10 17:25:29 +05:30
- if show_new_repo?
= webpack_bundle_tag 'common_vue'
= webpack_bundle_tag 'repo'
2015-09-11 14:41:01 +05:30
2017-09-10 17:25:29 +05:30
= render 'projects/last_push'
%div{ class: container_class }
- 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
2014-09-02 18:07:02 +05:30
2017-09-10 17:25:29 +05:30
- if can_modify_blob?(@blob)
= render 'projects/blob/remove'
2015-09-25 12:07:36 +05:30
2017-09-10 17:25:29 +05:30
- 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