diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-09-17 13:16:24 +0300 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-09-17 13:16:24 +0300 |
commit | d89ae7df2cf02198570dddd80dfef60796b017b5 (patch) | |
tree | 1028ad42df5de354e9ab3e8472a17d379f10fd53 /app/views/projects/blob | |
parent | f4816372457c3b513f8707efd87ce34c9922177c (diff) |
Move project header title definition to view in question.
Diffstat (limited to 'app/views/projects/blob')
-rw-r--r-- | app/views/projects/blob/_header_title.html.haml | 1 | ||||
-rw-r--r-- | app/views/projects/blob/edit.html.haml | 2 | ||||
-rw-r--r-- | app/views/projects/blob/new.html.haml | 3 | ||||
-rw-r--r-- | app/views/projects/blob/show.html.haml | 1 |
4 files changed, 7 insertions, 0 deletions
diff --git a/app/views/projects/blob/_header_title.html.haml b/app/views/projects/blob/_header_title.html.haml new file mode 100644 index 00000000000..78c5ef20a5f --- /dev/null +++ b/app/views/projects/blob/_header_title.html.haml @@ -0,0 +1 @@ +- header_title project_title(@project, "Files", project_files_path(@project)) diff --git a/app/views/projects/blob/edit.html.haml b/app/views/projects/blob/edit.html.haml index 648f15418e0..a811adc5094 100644 --- a/app/views/projects/blob/edit.html.haml +++ b/app/views/projects/blob/edit.html.haml @@ -1,4 +1,6 @@ - page_title "Edit", @blob.path, @ref += render "header_title" + .file-editor %ul.center-top-menu.no-bottom.js-edit-mode %li.active diff --git a/app/views/projects/blob/new.html.haml b/app/views/projects/blob/new.html.haml index 68c9ec7f802..126e21d7b4d 100644 --- a/app/views/projects/blob/new.html.haml +++ b/app/views/projects/blob/new.html.haml @@ -1,3 +1,6 @@ +- page_title "New File", @path.presence, @ref += render "header_title" + .gray-content-block.top-block Create a new file or = link_to 'upload', '#modal-upload-blob', diff --git a/app/views/projects/blob/show.html.haml b/app/views/projects/blob/show.html.haml index 4e66a43bbd5..1f7859198d8 100644 --- a/app/views/projects/blob/show.html.haml +++ b/app/views/projects/blob/show.html.haml @@ -1,4 +1,5 @@ - page_title @blob.path, @ref += render "header_title" = render 'projects/last_push' |