gitlab-org--gitlab-foss/app/views/projects/blob/show.html.haml
2017-07-07 16:04:23 +01:00

20 lines
611 B
Text

- @breadcrumb_title = "Repository"
- @no_container = true
- page_title @blob.path, @ref
= render "projects/commits/head"
- content_for :page_specific_javascripts do
= page_specific_javascript_bundle_tag('blob')
= render 'projects/last_push'
%div{ class: container_class }
#tree-holder.tree-holder
= render 'blob', blob: @blob
- if can_modify_blob?(@blob)
= render 'projects/blob/remove'
- 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