From 51d74ed7ab0aaa765f323eec50a845806ea109ff Mon Sep 17 00:00:00 2001 From: decabeza Date: Thu, 21 Feb 2019 17:31:46 +0100 Subject: [PATCH 1/4] Replace poll name link in admin polls booth assignments --- app/views/admin/poll/polls/booth_assignments.html.erb | 2 +- spec/features/admin/poll/booth_assigments_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/admin/poll/polls/booth_assignments.html.erb b/app/views/admin/poll/polls/booth_assignments.html.erb index ad5dc6211..66814cefc 100644 --- a/app/views/admin/poll/polls/booth_assignments.html.erb +++ b/app/views/admin/poll/polls/booth_assignments.html.erb @@ -11,7 +11,7 @@ <% @polls.each do |poll| %> - <%= link_to poll.name, admin_poll_path(poll) %> + <%= link_to poll.name, manage_admin_poll_booth_assignments_path(poll) %> <%= l poll.starts_at.to_date %> - <%= l poll.ends_at.to_date %> diff --git a/spec/features/admin/poll/booth_assigments_spec.rb b/spec/features/admin/poll/booth_assigments_spec.rb index 19e109f0b..29c447c31 100644 --- a/spec/features/admin/poll/booth_assigments_spec.rb +++ b/spec/features/admin/poll/booth_assigments_spec.rb @@ -18,7 +18,7 @@ feature "Admin booths assignments" do visit booth_assignments_admin_polls_path - expect(page).to have_content(poll.name) + expect(page).to have_link(poll.name, href: manage_admin_poll_booth_assignments_path(poll)) expect(page).to have_content(second_poll.name) within("#poll_#{second_poll.id}") do From 9bad103166ca60ac1b6348ffe98a1901a77297c3 Mon Sep 17 00:00:00 2001 From: decabeza Date: Thu, 21 Feb 2019 17:32:16 +0100 Subject: [PATCH 2/4] Remove budget name link on admin budgets index --- app/views/admin/budgets/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/budgets/index.html.erb b/app/views/admin/budgets/index.html.erb index a7d44fdcb..02660c263 100644 --- a/app/views/admin/budgets/index.html.erb +++ b/app/views/admin/budgets/index.html.erb @@ -23,7 +23,7 @@ <% @budgets.each do |budget| %> - <%= link_to budget.name, admin_budget_path(budget) %> + <%= budget.name %> <%= t("budgets.phase.#{budget.phase}") %> From 0b61fd7827f7290ac19e2728795089a897d99a1f Mon Sep 17 00:00:00 2001 From: decabeza Date: Thu, 21 Feb 2019 17:32:30 +0100 Subject: [PATCH 3/4] Reorder admin menu links --- app/views/admin/_menu.html.erb | 74 +++++++++++++++++----------------- 1 file changed, 38 insertions(+), 36 deletions(-) diff --git a/app/views/admin/_menu.html.erb b/app/views/admin/_menu.html.erb index ca3f0cdef..1dd0e6a28 100644 --- a/app/views/admin/_menu.html.erb +++ b/app/views/admin/_menu.html.erb @@ -1,5 +1,14 @@