Dashboard navigation enhancements

Dashboard links that bring the user outside the dashboard will be open
in a separate tab
This commit is contained in:
Juan Salvador Pérez García
2018-09-14 16:45:02 +02:00
parent c763ca2f99
commit 2ca9a38915
2 changed files with 2 additions and 2 deletions

View File

@@ -2,7 +2,7 @@
<div class="row">
<div class="small-12 large-9 column">
<%= 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? %>
<p class="help-text"><%= t("dashboard.community.latest_activity", at: l(proposal.community.latest_activity.to_date)) %></p>
<% end %>

View File

@@ -6,7 +6,7 @@
<i class="fi-clipboard-notes"></i> <%= t("dashboard.polls.poll.copy_link") %>
</a>
</p>
<h4 class="text-center"><%= link_to poll.title, poll %></h4>
<h4 class="text-center"><%= link_to poll.title, poll, target: '_blank' %></h4>
<p class="text-center">
<%= l(poll.starts_at.to_date) %> - <%= l(poll.ends_at.to_date) %>
</p>