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

16 lines
516 B
Text
Raw Normal View History

2016-06-23 18:25:14 -04:00
- @no_container = true
2015-04-30 13:06:18 -04:00
- page_title @blob.path, @ref
2016-06-23 18:25:14 -04:00
= render "projects/commits/head"
2016-06-30 09:01:26 -04:00
%div{ class: container_class }
2016-06-23 18:25:14 -04:00
= render 'projects/last_push'
2016-06-23 18:25:14 -04:00
%div#tree-holder.tree-holder
= render 'blob', blob: @blob
2016-06-23 18:25:14 -04:00
- if can_edit_blob?(@blob)
= render 'projects/blob/remove'
2015-09-17 02:34:30 -04:00
2016-06-23 18:25:14 -04:00
- 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