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.
This commit is contained in:
taitus
2022-07-22 11:59:03 +02:00
parent 3deba3b189
commit 0ca17c6fae
3 changed files with 3 additions and 6 deletions

View File

@@ -2049,6 +2049,7 @@ table {
.budget-investment-info, .budget-investment-info,
.debate-info, .debate-info,
.debate-meta,
.investment-project-info, .investment-project-info,
.legislation-comments, .legislation-comments,
.proposal-info, .proposal-info,

View File

@@ -153,10 +153,6 @@
.debate-meta a { .debate-meta a {
font-size: $small-font-size; font-size: $small-font-size;
color: #6d6d6d; color: #6d6d6d;
.icon-comments {
margin-right: rem-calc(3);
}
} }
.debate-info { .debate-info {

View File

@@ -6,9 +6,9 @@
<h4><%= link_to question.title, legislation_process_question_path(question.process, question) %></h4> <h4><%= link_to question.title, legislation_process_question_path(question.process, question) %></h4>
</div> </div>
<div class="debate-meta"> <div class="debate-meta">
<span class="icon-comments" aria-hidden="true"></span> <span class="debate-comments"> <span class="comments-count">
<%= link_to t("legislation.questions.question.comments", count: question.comments.count), <%= link_to t("legislation.questions.question.comments", count: question.comments.count),
legislation_process_question_path(question.process, question) %> legislation_process_question_path(question.process, question) %>
</span> · <span class="debate-date"><%= format_date question.created_at %></span> </span> · <span class="debate-date"><%= l question.created_at.to_date %></span>
</div> </div>
</div> </div>