Remove   after icon-comments

At some other time we will try to remove all the  

For now we start with what we added after the comments icon.
This commit is contained in:
taitus
2022-07-21 18:28:30 +02:00
parent 52e65ba031
commit a32e249919
12 changed files with 55 additions and 26 deletions

View File

@@ -2047,6 +2047,21 @@ table {
width: 100%;
}
.budget-investment-info,
.debate-info,
.investment-project-info,
.proposal-info,
.topic-info {
.comments-count {
@include has-fa-icon(comments, regular);
&::before {
margin-right: 0.3rem;
}
}
}
// 16. Flags
// ---------

View File

@@ -2,9 +2,10 @@
<%= l investment.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="icon-comments"></span>&nbsp;
<%= link_to t("shared.comments", count: investment.comments_count),
budget_investment_path(investment.budget, investment, anchor: "comments") %>
<span class="comments-count">
<%= link_to t("shared.comments", count: investment.comments_count),
budget_investment_path(investment.budget, investment, anchor: "comments") %>
</span>
<% if investment.author.hidden? || investment.author.erased? %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>

View File

@@ -17,8 +17,9 @@
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l @debate.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="icon-comments"></span>&nbsp;
<%= link_to t("debates.show.comments", count: @debate.comments_count), debate_path(@debate, anchor: "comments") %>
<span class="comments-count">
<%= link_to t("debates.show.comments", count: @debate.comments_count), debate_path(@debate, anchor: "comments") %>
</span>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="js-flag-actions">
<%= render "shared/flag_actions", flaggable: @debate %>

View File

@@ -5,8 +5,9 @@
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l investment.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="icon-comments"></span>&nbsp;
<%= link_to t("shared.comments", count: investment.comments_count), "#comments" %>
<span class="comments-count">
<%= link_to t("shared.comments", count: investment.comments_count), "#comments" %>
</span>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= investment.heading.name %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>

View File

@@ -7,8 +7,10 @@
<div class="debate-content">
<h3><%= link_to debate.title, debate %></h3>
<p class="debate-info">
<span class="icon-comments"></span>&nbsp;
<%= link_to t("debates.debate.comments", count: debate.comments_count), debate_path(debate, anchor: "comments") %>
<span class="comments-count">
<%= link_to t("debates.debate.comments", count: debate.comments_count),
debate_path(debate, anchor: "comments") %>
</span>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l debate.created_at.to_date %>

View File

@@ -26,8 +26,9 @@
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l @debate.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="icon-comments"></span>&nbsp;
<%= link_to t("debates.show.comments", count: @debate.comments_count), "#comments" %>
<span class="comments-count">
<%= link_to t("debates.show.comments", count: @debate.comments_count), "#comments" %>
</span>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="js-flag-actions">
<%= render "shared/flag_actions", flaggable: @debate %>

View File

@@ -19,9 +19,11 @@
<% cache [locale_and_user_status(proposal), "index", proposal, proposal.author] do %>
<h3><%= link_to proposal.title, legislation_process_proposal_path(proposal.legislation_process_id, proposal) %></h3>
<p class="proposal-info">
<span class="icon-comments"></span>&nbsp;
<%= link_to t("proposals.proposal.comments", count: proposal.comments_count), legislation_process_proposal_path(proposal.legislation_process_id, proposal, anchor: "comments") %>
<span class="comments-count">
<%= link_to t("proposals.proposal.comments", count: proposal.comments_count),
legislation_process_proposal_path(proposal.legislation_process_id, proposal,
anchor: "comments") %>
</span>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l proposal.created_at.to_date %>

View File

@@ -44,8 +44,9 @@
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l @proposal.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="icon-comments"></span>&nbsp;
<%= link_to t("proposals.show.comments", count: @proposal.comments_count), "#comments" %>
<span class="comments-count">
<%= link_to t("proposals.show.comments", count: @proposal.comments_count), "#comments" %>
</span>
<% if current_user %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>

View File

@@ -6,8 +6,9 @@
<% unless @proposal.selected? %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="icon-comments"></span>&nbsp;
<%= link_to t("proposals.show.comments", count: @proposal.comments_count), "#comments" %>
<span class="comments-count">
<%= link_to t("proposals.show.comments", count: @proposal.comments_count), "#comments" %>
</span>
<% end %>
<% if current_user %>

View File

@@ -21,9 +21,10 @@
<% cache [locale_and_user_status(proposal), "index", proposal, proposal.author] do %>
<h3><%= link_to proposal.title, namespaced_proposal_path(proposal) %></h3>
<p class="proposal-info">
<span class="icon-comments"></span>&nbsp;
<%= link_to t("proposals.proposal.comments", count: proposal.comments_count),
namespaced_proposal_path(proposal, anchor: "comments") %>
<span class="comments-count">
<%= link_to t("proposals.proposal.comments", count: proposal.comments_count),
namespaced_proposal_path(proposal, anchor: "comments") %>
</span>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l proposal.created_at.to_date %>

View File

@@ -5,8 +5,10 @@
<h3><%= link_to topic.title, community_topic_path(@community, topic) %></h3>
<p class="topic-info">
<span class="icon-comments"></span>&nbsp;
<%= link_to t("community.show.topic.comments", count: topic.comments_count), community_topic_path(@community, topic, anchor: "comments") %>
<span class="comments-count">
<%= link_to t("community.show.topic.comments", count: topic.comments_count),
community_topic_path(@community, topic, anchor: "comments") %>
</span>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= I18n.l topic.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>

View File

@@ -14,9 +14,10 @@
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l(@topic.created_at.to_date) %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<span class="icon-comments"></span>&nbsp;
<%= link_to t("community.show.topic.comments", count: @topic.comments_count),
community_topic_path(@community, @topic, anchor: "comments") %>
<span class="comments-count">
<%= link_to t("community.show.topic.comments", count: @topic.comments_count),
community_topic_path(@community, @topic, anchor: "comments") %>
</span>
</div>
<br>
<p><%= @topic.description %></p>