Commit 08bcf639a015628f5ddfc34236bc6b84a977957f

Authored by Dmitriy Zaporozhets
1 parent f90c5655

Add titles for blame view and Edit mode

app/assets/stylesheets/gitlab_bootstrap/blocks.scss
... ... @@ -70,10 +70,6 @@
70 70 border-top: 1px solid #eee;
71 71 }
72 72  
73   - &.white {
74   - background: #fff;
75   - }
76   -
77 73 ul {
78 74 margin: 0;
79 75 }
... ...
app/views/projects/blame/_head.html.haml
... ... @@ -1,2 +0,0 @@
1   -%div.tree-ref-holder
2   - = render 'shared/ref_switcher', destination: 'tree', path: params[:path]
app/views/projects/blame/show.html.haml
1   -= render "head"
  1 +%h3.page-title Blame view
2 2  
3 3 #tree-holder.tree-holder
4   - %ul.breadcrumb
5   - %li
6   - %i.icon-angle-right
7   - = link_to project_tree_path(@project, @ref) do
8   - = @project.name
9   - - tree_breadcrumbs(@tree, 6) do |link|
10   - \/
11   - %li= link
12   - .clear
13   -
14 4 .file-holder
15 5 .file-title
16 6 %i.icon-file
17 7 %span.file_name
18   - = @blob.name
  8 + = @path
19 9 %small= number_to_human_size @blob.size
20 10 %span.options= render "projects/blob/actions"
21 11 .file-content.blame
... ...
app/views/projects/edit_tree/show.html.haml
  1 +%h3.page-title Edit mode
1 2 .file-editor
2 3 = form_tag(project_edit_tree_path(@project, @id), method: :put, class: "form-horizontal") do
3 4 .file-holder
... ...