diff options
author | Annabel Dunstone <annabel.dunstone@gmail.com> | 2016-06-24 01:25:14 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2016-06-30 11:03:02 +0300 |
commit | 5987ad256985ffd2b964b4c030babc4102325e2c (patch) | |
tree | 27e71cd86fb99771d9f04af6036109a1abd294bc /app/views/projects/blob | |
parent | b32a6add8fa602eb35648f3f4661df8b98d909cb (diff) |
Add sub nav to file view
Diffstat (limited to 'app/views/projects/blob')
-rw-r--r-- | app/views/projects/blob/show.html.haml | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/app/views/projects/blob/show.html.haml b/app/views/projects/blob/show.html.haml index ed670dae88d..8d77bdbe382 100644 --- a/app/views/projects/blob/show.html.haml +++ b/app/views/projects/blob/show.html.haml @@ -1,12 +1,15 @@ +- @no_container = true - page_title @blob.path, @ref += render "projects/commits/head" -= render 'projects/last_push' +%div{ class: (container_class) } + = render 'projects/last_push' -%div#tree-holder.tree-holder - = render 'blob', blob: @blob + %div#tree-holder.tree-holder + = render 'blob', blob: @blob -- if can_edit_blob?(@blob) - = render 'projects/blob/remove' + - if can_edit_blob?(@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 + - 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 |