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:
@@ -7,12 +7,12 @@
|
|||||||
<div class="debate-content">
|
<div class="debate-content">
|
||||||
<h3><%= link_to debate.title, debate %></h3>
|
<h3><%= link_to debate.title, debate %></h3>
|
||||||
<p class="debate-info">
|
<p class="debate-info">
|
||||||
|
<%= l debate.created_at.to_date %>
|
||||||
|
<span class="bullet"> • </span>
|
||||||
<%= render Shared::CommentsCountComponent.new(
|
<%= render Shared::CommentsCountComponent.new(
|
||||||
debate.comments_count,
|
debate.comments_count,
|
||||||
url: debate_path(debate, anchor: "comments")
|
url: debate_path(debate, anchor: "comments")
|
||||||
) %>
|
) %>
|
||||||
<span class="bullet"> • </span>
|
|
||||||
<%= l debate.created_at.to_date %>
|
|
||||||
|
|
||||||
<% if debate.author.hidden? || debate.author.erased? %>
|
<% if debate.author.hidden? || debate.author.erased? %>
|
||||||
<span class="bullet"> • </span>
|
<span class="bullet"> • </span>
|
||||||
|
|||||||
@@ -19,6 +19,8 @@
|
|||||||
<% cache [locale_and_user_status(proposal), "index", proposal, proposal.author] do %>
|
<% 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>
|
<h3><%= link_to proposal.title, legislation_process_proposal_path(proposal.legislation_process_id, proposal) %></h3>
|
||||||
<p class="proposal-info">
|
<p class="proposal-info">
|
||||||
|
<%= l proposal.created_at.to_date %>
|
||||||
|
<span class="bullet"> • </span>
|
||||||
<%= render Shared::CommentsCountComponent.new(
|
<%= render Shared::CommentsCountComponent.new(
|
||||||
proposal.comments_count,
|
proposal.comments_count,
|
||||||
url: legislation_process_proposal_path(
|
url: legislation_process_proposal_path(
|
||||||
@@ -26,8 +28,6 @@
|
|||||||
proposal,
|
proposal,
|
||||||
anchor: "comments")
|
anchor: "comments")
|
||||||
) %>
|
) %>
|
||||||
<span class="bullet"> • </span>
|
|
||||||
<%= l proposal.created_at.to_date %>
|
|
||||||
|
|
||||||
<% if proposal.author.hidden? || proposal.author.erased? %>
|
<% if proposal.author.hidden? || proposal.author.erased? %>
|
||||||
<span class="bullet"> • </span>
|
<span class="bullet"> • </span>
|
||||||
|
|||||||
@@ -21,12 +21,12 @@
|
|||||||
<% cache [locale_and_user_status(proposal), "index", proposal, proposal.author] do %>
|
<% cache [locale_and_user_status(proposal), "index", proposal, proposal.author] do %>
|
||||||
<h3><%= link_to proposal.title, namespaced_proposal_path(proposal) %></h3>
|
<h3><%= link_to proposal.title, namespaced_proposal_path(proposal) %></h3>
|
||||||
<p class="proposal-info">
|
<p class="proposal-info">
|
||||||
|
<%= l proposal.created_at.to_date %>
|
||||||
|
<span class="bullet"> • </span>
|
||||||
<%= render Shared::CommentsCountComponent.new(
|
<%= render Shared::CommentsCountComponent.new(
|
||||||
proposal.comments_count,
|
proposal.comments_count,
|
||||||
url: namespaced_proposal_path(proposal, anchor: "comments")
|
url: namespaced_proposal_path(proposal, anchor: "comments")
|
||||||
) %>
|
) %>
|
||||||
<span class="bullet"> • </span>
|
|
||||||
<%= l proposal.created_at.to_date %>
|
|
||||||
|
|
||||||
<% if proposal.author.hidden? || proposal.author.erased? %>
|
<% if proposal.author.hidden? || proposal.author.erased? %>
|
||||||
<span class="bullet"> • </span>
|
<span class="bullet"> • </span>
|
||||||
|
|||||||
@@ -5,13 +5,13 @@
|
|||||||
<h3><%= link_to topic.title, community_topic_path(@community, topic) %></h3>
|
<h3><%= link_to topic.title, community_topic_path(@community, topic) %></h3>
|
||||||
|
|
||||||
<p class="topic-info">
|
<p class="topic-info">
|
||||||
|
<%= I18n.l topic.created_at.to_date %>
|
||||||
|
<span class="bullet"> • </span>
|
||||||
<%= render Shared::CommentsCountComponent.new(
|
<%= render Shared::CommentsCountComponent.new(
|
||||||
topic.comments_count,
|
topic.comments_count,
|
||||||
url: community_topic_path(@community, topic, anchor: "comments")
|
url: community_topic_path(@community, topic, anchor: "comments")
|
||||||
) %>
|
) %>
|
||||||
<span class="bullet"> • </span>
|
<span class="bullet"> • </span>
|
||||||
<%= I18n.l topic.created_at.to_date %>
|
|
||||||
<span class="bullet"> • </span>
|
|
||||||
<%= topic.author.name %>
|
<%= topic.author.name %>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user