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.
22 lines
547 B
Plaintext
22 lines
547 B
Plaintext
<h3 class="proposal-title">
|
|
<%= link_to proposal.title, proposal %>
|
|
</h3>
|
|
|
|
<% if proposal.retired? %>
|
|
<div class="label alert">
|
|
<%= t("layouts.dashboard.proposal_header.retired") %>
|
|
</div>
|
|
<% elsif proposal.published? %>
|
|
<div class="label success">
|
|
<%= t("layouts.dashboard.proposal_header.published") %>
|
|
</div>
|
|
<% else %>
|
|
<div class="label primary">
|
|
<%= t("layouts.dashboard.proposal_header.draft") %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<% if content_for?(:action_title) %>
|
|
<h3 class="title"><%= yield(:action_title) %></h3>
|
|
<% end %>
|