Unify the order in which we display information

In the rest of the similar sections of the application we show the date first
and then the information of the comments.
This commit is contained in:
taitus
2022-08-16 12:55:02 +02:00
parent 34d9d95cf0
commit af00dd94db
4 changed files with 8 additions and 8 deletions

View File

@@ -7,12 +7,12 @@
<div class="debate-content">
<h3><%= link_to debate.title, debate %></h3>
<p class="debate-info">
<%= l debate.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= render Shared::CommentsCountComponent.new(
debate.comments_count,
url: debate_path(debate, anchor: "comments")
) %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l debate.created_at.to_date %>
<% if debate.author.hidden? || debate.author.erased? %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>

View File

@@ -19,6 +19,8 @@
<% 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">
<%= l proposal.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= render Shared::CommentsCountComponent.new(
proposal.comments_count,
url: legislation_process_proposal_path(
@@ -26,8 +28,6 @@
proposal,
anchor: "comments")
) %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l proposal.created_at.to_date %>
<% if proposal.author.hidden? || proposal.author.erased? %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>

View File

@@ -21,12 +21,12 @@
<% 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">
<%= l proposal.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= render Shared::CommentsCountComponent.new(
proposal.comments_count,
url: namespaced_proposal_path(proposal, anchor: "comments")
) %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= l proposal.created_at.to_date %>
<% if proposal.author.hidden? || proposal.author.erased? %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>

View File

@@ -5,13 +5,13 @@
<h3><%= link_to topic.title, community_topic_path(@community, topic) %></h3>
<p class="topic-info">
<%= I18n.l topic.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= render Shared::CommentsCountComponent.new(
topic.comments_count,
url: community_topic_path(@community, topic, anchor: "comments")
) %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= I18n.l topic.created_at.to_date %>
<span class="bullet">&nbsp;&bull;&nbsp;</span>
<%= topic.author.name %>
</p>