Fixes #171
Button that redirects to proposal in the proposals dashboard now: * opens the proposal in a different tab. * Text shown will be 'preview proposal' for proposals in draft state.
This commit is contained in:
@@ -40,7 +40,11 @@
|
||||
</div>
|
||||
|
||||
<div class="proposal-link">
|
||||
<%= link_to t('.show_proposal'), proposal_path(proposal), class: 'button success expanded' %>
|
||||
<% if proposal.draft? %>
|
||||
<%= link_to t('.preview_proposal'), proposal_path(proposal), class: 'button success expanded', target: '_blank' %>
|
||||
<% else %>
|
||||
<%= link_to t('.show_proposal'), proposal_path(proposal), class: 'button success expanded', target: '_blank' %>
|
||||
<% end %>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -212,6 +212,7 @@ en:
|
||||
active_resources: Active resources
|
||||
community: Community
|
||||
show_proposal: Show proposal
|
||||
preview_proposal: Preview proposal
|
||||
current_goal: Current goal
|
||||
support_count:
|
||||
one: "%{count} support"
|
||||
|
||||
@@ -212,6 +212,7 @@ es:
|
||||
active_resources: Recursos activos
|
||||
community: Comunidad
|
||||
show_proposal: Ver propuesta
|
||||
preview_proposal: Previsualizar propuesta
|
||||
current_goal: Meta actual
|
||||
support_count:
|
||||
one: "%{count} apoyo"
|
||||
|
||||
Reference in New Issue
Block a user