debian-mirror-gitlab/app/views/projects/blob/show.html.haml
2015-12-23 02:04:40 +05:30

13 lines
439 B
Text

- page_title @blob.path, @ref
= render "header_title"
= render 'projects/last_push'
%div#tree-holder.tree-holder
= render 'blob', blob: @blob
- if blob_editable?(@blob)
= render 'projects/blob/remove'
- title = "Replace #{@blob.name}"
= render 'projects/blob/upload', title: title, placeholder: title, button_title: 'Replace file', form_path: namespace_project_update_blob_path(@project.namespace, @project, @id), method: :put