diff --git a/app/views/debates/_debate.html.erb b/app/views/debates/_debate.html.erb index ed5b0df94..905c3ec79 100644 --- a/app/views/debates/_debate.html.erb +++ b/app/views/debates/_debate.html.erb @@ -7,12 +7,12 @@
+ <%= l debate.created_at.to_date %> + • <%= render Shared::CommentsCountComponent.new( debate.comments_count, url: debate_path(debate, anchor: "comments") ) %> - • - <%= l debate.created_at.to_date %> <% if debate.author.hidden? || debate.author.erased? %> • diff --git a/app/views/legislation/proposals/_proposal.html.erb b/app/views/legislation/proposals/_proposal.html.erb index 11a3104f1..3df7e5c1b 100644 --- a/app/views/legislation/proposals/_proposal.html.erb +++ b/app/views/legislation/proposals/_proposal.html.erb @@ -19,6 +19,8 @@ <% cache [locale_and_user_status(proposal), "index", proposal, proposal.author] do %>
+ <%= l proposal.created_at.to_date %> + • <%= render Shared::CommentsCountComponent.new( proposal.comments_count, url: legislation_process_proposal_path( @@ -26,8 +28,6 @@ proposal, anchor: "comments") ) %> - • - <%= l proposal.created_at.to_date %> <% if proposal.author.hidden? || proposal.author.erased? %> • diff --git a/app/views/proposals/_proposal.html.erb b/app/views/proposals/_proposal.html.erb index 76e3e4acc..934baced9 100644 --- a/app/views/proposals/_proposal.html.erb +++ b/app/views/proposals/_proposal.html.erb @@ -21,12 +21,12 @@ <% cache [locale_and_user_status(proposal), "index", proposal, proposal.author] do %>
+ <%= l proposal.created_at.to_date %> + • <%= render Shared::CommentsCountComponent.new( proposal.comments_count, url: namespaced_proposal_path(proposal, anchor: "comments") ) %> - • - <%= l proposal.created_at.to_date %> <% if proposal.author.hidden? || proposal.author.erased? %> • diff --git a/app/views/topics/_topic.html.erb b/app/views/topics/_topic.html.erb index ddd6ce6d8..cb18551d2 100644 --- a/app/views/topics/_topic.html.erb +++ b/app/views/topics/_topic.html.erb @@ -5,13 +5,13 @@
+ <%= I18n.l topic.created_at.to_date %> + • <%= render Shared::CommentsCountComponent.new( topic.comments_count, url: community_topic_path(@community, topic, anchor: "comments") ) %> • - <%= I18n.l topic.created_at.to_date %> - • <%= topic.author.name %>