From af00dd94db040420dd77a109a90b63dbca68c7a7 Mon Sep 17 00:00:00 2001 From: taitus Date: Tue, 16 Aug 2022 12:55:02 +0200 Subject: [PATCH] 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. --- app/views/debates/_debate.html.erb | 4 ++-- app/views/legislation/proposals/_proposal.html.erb | 4 ++-- app/views/proposals/_proposal.html.erb | 4 ++-- app/views/topics/_topic.html.erb | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) 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 @@

<%= link_to debate.title, debate %>

+ <%= 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 %>

<%= link_to proposal.title, legislation_process_proposal_path(proposal.legislation_process_id, proposal) %>

+ <%= 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 %>

<%= link_to proposal.title, namespaced_proposal_path(proposal) %>

+ <%= 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 @@

<%= link_to topic.title, community_topic_path(@community, topic) %>

+ <%= 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 %>