From f09aaf63e1b244dfc361d34788f63159f67123b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20M=C3=BCrell?= Date: Tue, 19 Sep 2023 12:25:30 +0200 Subject: [PATCH] Some more fixes --- app/assets/stylesheets/application.scss | 11 ++++++++--- app/helpers/tickets_helper.rb | 2 +- app/helpers/users_helper.rb | 6 +++--- app/views/tickets/index.html.erb | 4 ++-- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index f123664..c4f5bba 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -43,7 +43,9 @@ footer { } .copy-to-clipboard { - cursor: pointer; + cursor: pointer; + font-size: 60%; + padding-left: 5px; } .kanban-board { @@ -72,6 +74,7 @@ footer { .sla-warning { border-left: 3px solid orange; + .card-body { background-color: #ffeecf; } @@ -79,6 +82,7 @@ footer { .sla-error { border-left: 3px solid red; + .card-body { background-color: #fcd8d8; } @@ -100,8 +104,8 @@ p.login-links { } .badge a { - color: white; - text-decoration: none; + color: white; + text-decoration: none; } .ticket-flag { @@ -120,6 +124,7 @@ p.login-links { h5::after { content: "+"; } + ul { display: none; } diff --git a/app/helpers/tickets_helper.rb b/app/helpers/tickets_helper.rb index c3db1fd..a9f4cba 100644 --- a/app/helpers/tickets_helper.rb +++ b/app/helpers/tickets_helper.rb @@ -27,7 +27,7 @@ def linked_ticket_identifier(ticket) content_tag :span, ticket.identifier, 'data-ticket-identifier': ticket.identifier do link_to(ticket.identifier, ticket) + content_tag(:span, - '📋', + '🔗', title: 'Copy to clipboard', class: 'copy-to-clipboard', data: { controller: 'tickets', diff --git a/app/helpers/users_helper.rb b/app/helpers/users_helper.rb index 5998aed..49193d4 100644 --- a/app/helpers/users_helper.rb +++ b/app/helpers/users_helper.rb @@ -1,5 +1,5 @@ module UsersHelper - def gravatar_icon(user, additional_classes = []) - image_tag user.gravatar_url(secure: true, rating: 'R', size: 26, default: 'identicon'), class: ['clipped-circle'] + additional_classes, alt: user.name, title: user.name + def gravatar_icon(user, additional_classes = [], size = 26) + image_tag user.gravatar_url(secure: true, rating: 'R', size: size, default: 'identicon'), class: ['clipped-circle'] + additional_classes, alt: user.name, title: user.name end -end \ No newline at end of file +end diff --git a/app/views/tickets/index.html.erb b/app/views/tickets/index.html.erb index 4414eb5..c760144 100644 --- a/app/views/tickets/index.html.erb +++ b/app/views/tickets/index.html.erb @@ -5,7 +5,7 @@ <%= Ticket.human_attribute_name(:id) %> <%= Ticket.human_attribute_name(:title) %> - <%= Ticket.human_attribute_name(:status) %> + <%= Ticket.human_attribute_name(:status) %> <%= Ticket.human_attribute_name(:assignee) %> <%= Ticket.human_attribute_name(:tags) %> @@ -25,7 +25,7 @@ <% if ticket.assignee.present? %> - <%= gravatar_icon ticket.assignee %> + <%= gravatar_icon ticket.assignee, [], 20 %> <%= ticket.assignee.name %> <% else %> ---