From d89ae7df2cf02198570dddd80dfef60796b017b5 Mon Sep 17 00:00:00 2001 From: Douwe Maan Date: Thu, 17 Sep 2015 12:16:24 +0200 Subject: Move project header title definition to view in question. --- app/views/projects/blob/_header_title.html.haml | 1 + app/views/projects/blob/edit.html.haml | 2 ++ app/views/projects/blob/new.html.haml | 3 +++ app/views/projects/blob/show.html.haml | 1 + 4 files changed, 7 insertions(+) create mode 100644 app/views/projects/blob/_header_title.html.haml (limited to 'app/views/projects/blob') 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' -- cgit v1.2.3