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.
55 lines
1.8 KiB
Plaintext
55 lines
1.8 KiB
Plaintext
<% content_for :action_title, t("dashboard.menu.community") %>
|
|
|
|
<div class="row expanded dashboard-community">
|
|
<div class="small-12 medium-9 column">
|
|
<%= link_to t("dashboard.community.access_community"),
|
|
community_path(proposal.community),
|
|
class: "button hollow" %>
|
|
<% if proposal.community.latest_activity.present? %>
|
|
<p class="help-text">
|
|
<%= t("dashboard.community.latest_activity",
|
|
at: l(proposal.community.latest_activity.to_date)) %>
|
|
</p>
|
|
<% end %>
|
|
</div>
|
|
|
|
<div class="small-12 medium-1 column community-totals">
|
|
<span class="icon-organizations"></span>
|
|
<span class="community-number">
|
|
<%= number_with_delimiter(proposal.community.participants_count, delimiter: ".") %>
|
|
</span>
|
|
<p class="community-info">
|
|
<%= t("dashboard.community.participants") %>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="small-12 large-1 column community-totals">
|
|
<span class="icon-debates"></span>
|
|
<span class="community-number">
|
|
<%= number_with_delimiter(proposal.community.debates_count, delimiter: ".") %>
|
|
</span>
|
|
<p class="community-info">
|
|
<%= t("dashboard.community.debates") %>
|
|
</p>
|
|
</div>
|
|
|
|
<div class="small-12 large-1 column community-totals">
|
|
<span class="icon-comments"></span>
|
|
<span class="community-number">
|
|
<%= number_with_delimiter(proposal.community.comments_count, delimiter: ".") %>
|
|
</span>
|
|
<p class="community-info">
|
|
<%= t("dashboard.community.comments") %>
|
|
</p>
|
|
</div>
|
|
</div>
|
|
|
|
<% if proposal.community.comments.any? %>
|
|
<h4 class="title"><%= t("dashboard.community.latest_comments") %></h5>
|
|
|
|
<ul class="topic-show">
|
|
<%= render partial: "comment",
|
|
collection: proposal.community.comments.sort_by_newest.limit(5) %>
|
|
</ul>
|
|
<% end %>
|