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.
62 lines
2.3 KiB
Plaintext
62 lines
2.3 KiB
Plaintext
<div class="dashboard-proposals-stats">
|
|
<div class="row expanded">
|
|
<div class="small-12 medium-6 large-2 column">
|
|
<div class="counter">
|
|
<div class="counter-value">
|
|
<%= active_resources_for(proposal) %>
|
|
/
|
|
<%= active_resources_count(proposal) %>
|
|
</div>
|
|
<span class="counter-label"><%= t("layouts.dashboard.proposal_totals.active_resources") %></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="small-12 medium-6 large-2 column counter-divider">
|
|
<div class="counter">
|
|
<div class="counter-value"><%= number_with_delimiter(community_members_count, delimiter: ".") %></div>
|
|
<span class="counter-label"><%= t("layouts.dashboard.proposal_totals.community") %></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="change-behaviour">
|
|
<div class="small-12 medium-6 large-4 column supports">
|
|
<div class="counter">
|
|
<div class="counter-value">
|
|
<%= number_with_delimiter(proposal.votes_for.size, delimiter: ".") %>
|
|
/
|
|
<%= number_with_delimiter(next_goal_supports, delimiter: ".") %>
|
|
</div>
|
|
<div class="counter-label">
|
|
<%= t("layouts.dashboard.proposal_totals.supports", count: proposal.votes_for.size) %>
|
|
<br>
|
|
<%= t("layouts.dashboard.proposal_totals.current_goal") %>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="next-goal-progress">
|
|
<%= next_goal_progress %>%
|
|
</div>
|
|
<div class="progress" role="progressbar" tabindex="0" aria-valuenow="0" aria-valuemin="0"
|
|
aria-valuetext="<%= "#{next_goal_progress}%" %>" aria-valuemax="100">
|
|
<div class="progress-meter" style="width: <%= next_goal_progress %>%"></div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="small-12 medium-6 large-4 column">
|
|
<div class="row">
|
|
<div class="small-12 column">
|
|
<div class="proposal-link">
|
|
<% if proposal.draft? %>
|
|
<%= link_to t("layouts.dashboard.proposal_totals.preview_proposal"), proposal_path(proposal), class: "button success expanded" %>
|
|
<% else %>
|
|
<%= link_to t("layouts.dashboard.proposal_totals.show_proposal"), proposal_path(proposal), class: "button success expanded" %>
|
|
<% end %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|