Out of the usability issues I've experienced when using Consul Democracy, the biggest one has arguably been the fact that the link to edit a proposal opens in a new tab. I guess the reasoning behind it is that the page to edit a proposal is not part of the proposals dashboard, but what the hell! Imagine if every link to edit something opened in a new tab... So we're reducing the impact of this nonsense by opening most dashboard links in the same window; for now, we're still opening in a new window links to download files and links that might point to external websites. We'll address those ones in the future.
21 lines
646 B
Plaintext
21 lines
646 B
Plaintext
<% content_for :action_title, t("dashboard.index.title") %>
|
|
|
|
<% if current_editable?(proposal) %>
|
|
<%= link_to t("dashboard.index.edit_proposal_link"),
|
|
edit_proposal_path(proposal),
|
|
class: "button hollow" %>
|
|
<% end %>
|
|
|
|
<% unless proposal.retired? %>
|
|
<%= link_to t("dashboard.index.retire"),
|
|
retire_form_proposal_path(proposal),
|
|
class: "button hollow alert" %>
|
|
<% end %>
|
|
|
|
<% if can?(:publish, proposal) %>
|
|
<%= link_to t("dashboard.index.publish"),
|
|
publish_proposal_dashboard_path(proposal),
|
|
class: "button success",
|
|
method: :patch %>
|
|
<% end %>
|