From 2ca9a38915424254429571c40668c9e13c8e9145 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Salvador=20P=C3=A9rez=20Garc=C3=ADa?= Date: Fri, 14 Sep 2018 16:45:02 +0200 Subject: [PATCH] Dashboard navigation enhancements Dashboard links that bring the user outside the dashboard will be open in a separate tab --- app/views/dashboard/community.html.erb | 2 +- app/views/dashboard/polls/_poll.html.erb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/dashboard/community.html.erb b/app/views/dashboard/community.html.erb index 3335b7005..0d60e91a2 100644 --- a/app/views/dashboard/community.html.erb +++ b/app/views/dashboard/community.html.erb @@ -2,7 +2,7 @@
- <%= link_to t("dashboard.community.access_community"), community_path(proposal.community), class: 'button hollow' %> + <%= link_to t("dashboard.community.access_community"), community_path(proposal.community), class: 'button hollow', target: '_blank' %> <% unless proposal.community.latest_activity.nil? %>

<%= t("dashboard.community.latest_activity", at: l(proposal.community.latest_activity.to_date)) %>

<% end %> diff --git a/app/views/dashboard/polls/_poll.html.erb b/app/views/dashboard/polls/_poll.html.erb index 1519eff18..dd76468c1 100644 --- a/app/views/dashboard/polls/_poll.html.erb +++ b/app/views/dashboard/polls/_poll.html.erb @@ -6,7 +6,7 @@ <%= t("dashboard.polls.poll.copy_link") %>

-

<%= link_to poll.title, poll %>

+

<%= link_to poll.title, poll, target: '_blank' %>

<%= l(poll.starts_at.to_date) %> - <%= l(poll.ends_at.to_date) %>