From 3753c42ab2f177e4864775dbd20c2ac2c3c32625 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sun, 8 Oct 2023 22:12:23 +0200 Subject: [PATCH] Open moderation links in the same window Note that, unlike what we did in the admin section we're opening links to budget investments on the same tab. There are two reasons for it; the first one is that, in this case, there are no filters in the moderation section that are lost after editing an investment, and the second one is that, in this context, administrators usually don't go to the investment in order to edit it, so they can just check something and use the browser's back button to go back. --- app/views/moderation/budgets/investments/index.html.erb | 2 +- app/views/moderation/comments/index.html.erb | 2 +- app/views/moderation/debates/index.html.erb | 2 +- app/views/moderation/proposal_notifications/index.html.erb | 2 +- app/views/moderation/proposals/index.html.erb | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/moderation/budgets/investments/index.html.erb b/app/views/moderation/budgets/investments/index.html.erb index a587c4e52..1caf64927 100644 --- a/app/views/moderation/budgets/investments/index.html.erb +++ b/app/views/moderation/budgets/investments/index.html.erb @@ -14,7 +14,7 @@ <%= link_to investment.title, admin_budget_budget_investment_path( budget_id: investment.budget_id, id: investment.id - ), target: "_blank" %> + ) %>
<%= l investment.updated_at.to_date %>  •  diff --git a/app/views/moderation/comments/index.html.erb b/app/views/moderation/comments/index.html.erb index 03cd66679..3e393ccdc 100644 --- a/app/views/moderation/comments/index.html.erb +++ b/app/views/moderation/comments/index.html.erb @@ -12,7 +12,7 @@ <%= comment.commentable_type.constantize.model_name.human %> - - <%= link_to comment.commentable.title, commentable_path(comment), target: "_blank" %> + <%= link_to comment.commentable.title, commentable_path(comment) %>
<%= l comment.updated_at.to_date %>  •  diff --git a/app/views/moderation/debates/index.html.erb b/app/views/moderation/debates/index.html.erb index fef01f71a..ec8639581 100644 --- a/app/views/moderation/debates/index.html.erb +++ b/app/views/moderation/debates/index.html.erb @@ -11,7 +11,7 @@ <% @debates.each do |debate| %> - <%= link_to debate.title, debate, target: "_blank" %> + <%= link_to debate.title, debate %>
<%= l debate.updated_at.to_date %>  •  diff --git a/app/views/moderation/proposal_notifications/index.html.erb b/app/views/moderation/proposal_notifications/index.html.erb index 5cd563776..fd7821a42 100644 --- a/app/views/moderation/proposal_notifications/index.html.erb +++ b/app/views/moderation/proposal_notifications/index.html.erb @@ -11,7 +11,7 @@ <% @proposal_notifications.each do |proposal_notification| %> - <%= link_to proposal_notification.title, proposal_notification, target: "_blank" %> + <%= link_to proposal_notification.title, proposal_notification %>
<%= l proposal_notification.updated_at.to_date %>
diff --git a/app/views/moderation/proposals/index.html.erb b/app/views/moderation/proposals/index.html.erb index e715a0b91..766d590a3 100644 --- a/app/views/moderation/proposals/index.html.erb +++ b/app/views/moderation/proposals/index.html.erb @@ -11,7 +11,7 @@ <% @proposals.each do |proposal| %> - <%= link_to proposal.title, proposal, target: "_blank" %> + <%= link_to proposal.title, proposal %>
<%= l proposal.updated_at.to_date %>  •