From 0ca17c6fae2de9c6c25e7580de5615b437aeadf3 Mon Sep 17 00:00:00 2001 From: taitus Date: Fri, 22 Jul 2022 11:59:03 +0200 Subject: [PATCH] Unify comment icon on legislation questions Remove unnecessary span class "debate-comments". We take advantage of this commit to also unify the format of the date that appears next to the comments with the rest of the application. The format that we removed is being used on the same page in the "Participation phases" tab (I guess that was the reason for putting it the same) but I think it makes more sense to use the date format that is used in this kind section in the rest of the application. --- app/assets/stylesheets/layout.scss | 1 + app/assets/stylesheets/legislation_process.scss | 4 ---- app/views/legislation/questions/_question.html.erb | 4 ++-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/app/assets/stylesheets/layout.scss b/app/assets/stylesheets/layout.scss index 555c19d08..d7198a0b4 100644 --- a/app/assets/stylesheets/layout.scss +++ b/app/assets/stylesheets/layout.scss @@ -2049,6 +2049,7 @@ table { .budget-investment-info, .debate-info, +.debate-meta, .investment-project-info, .legislation-comments, .proposal-info, diff --git a/app/assets/stylesheets/legislation_process.scss b/app/assets/stylesheets/legislation_process.scss index 6fe6a495d..74658a167 100644 --- a/app/assets/stylesheets/legislation_process.scss +++ b/app/assets/stylesheets/legislation_process.scss @@ -153,10 +153,6 @@ .debate-meta a { font-size: $small-font-size; color: #6d6d6d; - - .icon-comments { - margin-right: rem-calc(3); - } } .debate-info { diff --git a/app/views/legislation/questions/_question.html.erb b/app/views/legislation/questions/_question.html.erb index 8ba65f15e..49a92fcba 100644 --- a/app/views/legislation/questions/_question.html.erb +++ b/app/views/legislation/questions/_question.html.erb @@ -6,9 +6,9 @@

<%= link_to question.title, legislation_process_question_path(question.process, question) %>

- + <%= link_to t("legislation.questions.question.comments", count: question.comments.count), legislation_process_question_path(question.process, question) %> - · <%= format_date question.created_at %> + · <%= l question.created_at.to_date %>