Skip to content

Commit

Permalink
Some more fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
tmuerell committed Sep 19, 2023
1 parent be0d543 commit f09aaf6
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
11 changes: 8 additions & 3 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ footer {
}

.copy-to-clipboard {
cursor: pointer;
cursor: pointer;
font-size: 60%;
padding-left: 5px;
}

.kanban-board {
Expand Down Expand Up @@ -72,13 +74,15 @@ footer {

.sla-warning {
border-left: 3px solid orange;

.card-body {
background-color: #ffeecf;
}
}

.sla-error {
border-left: 3px solid red;

.card-body {
background-color: #fcd8d8;
}
Expand All @@ -100,8 +104,8 @@ p.login-links {
}

.badge a {
color: white;
text-decoration: none;
color: white;
text-decoration: none;
}

.ticket-flag {
Expand All @@ -120,6 +124,7 @@ p.login-links {
h5::after {
content: "+";
}

ul {
display: none;
}
Expand Down
2 changes: 1 addition & 1 deletion app/helpers/tickets_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
6 changes: 3 additions & 3 deletions app/helpers/users_helper.rb
Original file line number Diff line number Diff line change
@@ -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
end
4 changes: 2 additions & 2 deletions app/views/tickets/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<tr>
<th><%= Ticket.human_attribute_name(:id) %></th>
<th><%= Ticket.human_attribute_name(:title) %></th>
<th><%= Ticket.human_attribute_name(:status) %></th>
<th colspan="2"><%= Ticket.human_attribute_name(:status) %></th>
<th><%= Ticket.human_attribute_name(:assignee) %></th>
<th><%= Ticket.human_attribute_name(:tags) %></th>
</tr>
Expand All @@ -25,7 +25,7 @@
</td>
<td>
<% if ticket.assignee.present? %>
<%= gravatar_icon ticket.assignee %>
<%= gravatar_icon ticket.assignee, [], 20 %>
<%= ticket.assignee.name %>
<% else %>
---
Expand Down

0 comments on commit f09aaf6

Please sign in to comment.