From ab12ffe98f555c14111bb9b9d25b6cffed1ae7d9 Mon Sep 17 00:00:00 2001 From: Amaia Castro Date: Fri, 30 Dec 2016 12:03:11 +0100 Subject: [PATCH] Titles for legislation admin pages --- app/views/admin/legislation/draft_versions/edit.html.erb | 4 ++++ app/views/admin/legislation/draft_versions/index.html.erb | 4 ++++ app/views/admin/legislation/draft_versions/new.html.erb | 4 ++++ app/views/admin/legislation/processes/edit.html.erb | 4 ++++ app/views/admin/legislation/processes/index.html.erb | 4 ++++ app/views/admin/legislation/processes/new.html.erb | 4 ++++ app/views/admin/legislation/questions/edit.html.erb | 4 ++++ app/views/admin/legislation/questions/index.html.erb | 4 ++++ app/views/admin/legislation/questions/new.html.erb | 4 ++++ 9 files changed, 36 insertions(+) diff --git a/app/views/admin/legislation/draft_versions/edit.html.erb b/app/views/admin/legislation/draft_versions/edit.html.erb index 9560cb4f1..0a27ccd97 100644 --- a/app/views/admin/legislation/draft_versions/edit.html.erb +++ b/app/views/admin/legislation/draft_versions/edit.html.erb @@ -1,3 +1,7 @@ +<% provide :title do %> + Admin - <%= t("admin.menu.legislation") %> - <%= @process.title %> - <%= t("admin.legislation.draft_versions.index.title") %> - <%= @draft_version.title %> +<% end %> +
<%= link_to admin_legislation_processes_path, class: "back" do %> diff --git a/app/views/admin/legislation/draft_versions/index.html.erb b/app/views/admin/legislation/draft_versions/index.html.erb index affcf3b35..d86b61e26 100644 --- a/app/views/admin/legislation/draft_versions/index.html.erb +++ b/app/views/admin/legislation/draft_versions/index.html.erb @@ -1,3 +1,7 @@ +<% provide :title do %> + Admin - <%= t("admin.menu.legislation") %> - <%= @process.title %> - <%= t("admin.legislation.draft_versions.index.title") %> +<% end %> +
<%= link_to admin_legislation_processes_path, class: "back" do %> diff --git a/app/views/admin/legislation/draft_versions/new.html.erb b/app/views/admin/legislation/draft_versions/new.html.erb index 1ca37b724..e71bab339 100644 --- a/app/views/admin/legislation/draft_versions/new.html.erb +++ b/app/views/admin/legislation/draft_versions/new.html.erb @@ -1,3 +1,7 @@ +<% provide :title do %> + Admin - <%= t("admin.menu.legislation") %> - <%= @process.title %> - <%= t("admin.legislation.draft_versions.index.title") %> - <%= t("admin.legislation.draft_versions.new.title") %> +<% end %> +
<%= link_to admin_legislation_process_path(@process), class: "back" do %> diff --git a/app/views/admin/legislation/processes/edit.html.erb b/app/views/admin/legislation/processes/edit.html.erb index d7fba2126..4bf418d06 100644 --- a/app/views/admin/legislation/processes/edit.html.erb +++ b/app/views/admin/legislation/processes/edit.html.erb @@ -1,3 +1,7 @@ +<% provide :title do %> + Admin - <%= t("admin.menu.legislation") %> - <%= @process.title %> +<% end %> +
diff --git a/app/views/admin/legislation/processes/index.html.erb b/app/views/admin/legislation/processes/index.html.erb index 21f308dc5..7d4bd2996 100644 --- a/app/views/admin/legislation/processes/index.html.erb +++ b/app/views/admin/legislation/processes/index.html.erb @@ -1,3 +1,7 @@ +<% provide :title do %> + Admin - <%= t("admin.menu.legislation") %> - <%= t("admin.legislation.processes.index.filters.#{@current_filter}") %> +<% end %> +
diff --git a/app/views/admin/legislation/processes/new.html.erb b/app/views/admin/legislation/processes/new.html.erb index 974d97044..3fed34799 100644 --- a/app/views/admin/legislation/processes/new.html.erb +++ b/app/views/admin/legislation/processes/new.html.erb @@ -1,3 +1,7 @@ +<% provide :title do %> + Admin - <%= t("admin.menu.legislation") %> - <%= t("admin.legislation.processes.new.title") %> +<% end %> +
diff --git a/app/views/admin/legislation/questions/edit.html.erb b/app/views/admin/legislation/questions/edit.html.erb index 71e80f07a..d3f1f2df8 100644 --- a/app/views/admin/legislation/questions/edit.html.erb +++ b/app/views/admin/legislation/questions/edit.html.erb @@ -1,3 +1,7 @@ +<% provide :title do %> + Admin - <%= t("admin.menu.legislation") %> - <%= @process.title %> - <%= t("admin.legislation.questions.index.title") %> - <%= @question.title %> +<% end %> +
<%= link_to admin_legislation_processes_path, class: "back" do %> diff --git a/app/views/admin/legislation/questions/index.html.erb b/app/views/admin/legislation/questions/index.html.erb index 90d68775b..4e82de910 100644 --- a/app/views/admin/legislation/questions/index.html.erb +++ b/app/views/admin/legislation/questions/index.html.erb @@ -1,3 +1,7 @@ +<% provide :title do %> + Admin - <%= t("admin.menu.legislation") %> - <%= @process.title %> - <%= t("admin.legislation.questions.index.title") %> +<% end %> +
<%= link_to admin_legislation_processes_path, class: "back" do %> diff --git a/app/views/admin/legislation/questions/new.html.erb b/app/views/admin/legislation/questions/new.html.erb index 7a8fe4df9..4c657f92d 100644 --- a/app/views/admin/legislation/questions/new.html.erb +++ b/app/views/admin/legislation/questions/new.html.erb @@ -1,3 +1,7 @@ +<% provide :title do %> + Admin - <%= t("admin.menu.legislation") %> - <%= @process.title %> - <%= t("admin.legislation.questions.index.title") %> - <%= t("admin.legislation.questions.new.title") %> +<% end %> +
<%= link_to admin_legislation_process_path(@process), class: "back" do %>