From aa77ff5aec2f843c488f589c1779c745dbd9dabd Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 10 Nov 2021 15:06:54 +0000 Subject: [PATCH] Use flex grid for issue reports and comments --- app/views/issues/_comments.html.erb | 18 ++++++++++-------- app/views/issues/_reports.html.erb | 20 +++++++++++--------- 2 files changed, 21 insertions(+), 17 deletions(-) diff --git a/app/views/issues/_comments.html.erb b/app/views/issues/_comments.html.erb index 6a90dbbff..046e80163 100644 --- a/app/views/issues/_comments.html.erb +++ b/app/views/issues/_comments.html.erb @@ -1,14 +1,16 @@
<% comments.each do |comment| %> -
-
- <%= link_to user_thumbnail(comment.user), user_path(comment.user) %> +
+
+ <%= link_to user_thumbnail(comment.user, :class => "user_image_no_margins"), user_path(comment.user) %> +
+
+

+ <%= t ".comment_from_html", :user_link => link_to(comment.user.display_name, user_path(comment.user)), + :comment_created_at => l(comment.created_at.to_datetime, :format => :friendly) %> +

+

<%= comment.body %>

-

- <%= t ".comment_from_html", :user_link => link_to(comment.user.display_name, user_path(comment.user)), - :comment_created_at => l(comment.created_at.to_datetime, :format => :friendly) %> -

-

<%= comment.body %>


<% end %> diff --git a/app/views/issues/_reports.html.erb b/app/views/issues/_reports.html.erb index 143f2d887..6a00bfe23 100644 --- a/app/views/issues/_reports.html.erb +++ b/app/views/issues/_reports.html.erb @@ -1,14 +1,16 @@ <% reports.each do |report| %> -
-
- <%= link_to user_thumbnail(report.user), user_path(report.user) %> +
+
+ <%= link_to user_thumbnail(report.user, :class => "user_thumbnail_no_margins"), user_path(report.user) %> +
+
+

+ <%= t ".reported_by_html", :category => report.category, + :user => link_to(report.user.display_name, user_path(report.user)), + :updated_at => l(report.updated_at.to_datetime, :format => :friendly) %> +

+

<%= report.details %>

-

- <%= t ".reported_by_html", :category => report.category, - :user => link_to(report.user.display_name, user_path(report.user)), - :updated_at => l(report.updated_at.to_datetime, :format => :friendly) %> -

-

<%= report.details %>


<% end %> -- 2.43.2