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"
|
2015-07-08 17:21:35 -04:00
|
|
|
|
2017-04-13 13:05:09 -04:00
|
|
|
- content_for :page_specific_javascripts do
|
|
|
|
= page_specific_javascript_bundle_tag('blob')
|
|
|
|
|
2016-06-30 09:01:26 -04:00
|
|
|
%div{ class: container_class }
|
2016-06-23 18:25:14 -04:00
|
|
|
= render 'projects/last_push'
|
2015-07-08 17:21:35 -04:00
|
|
|
|
2016-12-23 04:37:12 -05:00
|
|
|
#tree-holder.tree-holder
|
2016-06-23 18:25:14 -04:00
|
|
|
= render 'blob', blob: @blob
|
2013-11-19 09:14:48 -05:00
|
|
|
|
2017-04-17 15:03:17 -04:00
|
|
|
- if can_modify_blob?(@blob)
|
2016-06-23 18:25:14 -04:00
|
|
|
= 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
|