Skip to content

Commit 67c9027

Browse files
committed
fix: unescaped html in block job expiration text
The text was not marked html_safe thus it would render as `Expires <span title="July 12, 2025 19:55">10 minutes ago</span>` instead of `Expires 10 minutes ago` and show an tooltip with the exact time when hovered.
1 parent 9fa76f0 commit 67c9027

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/mission_control/jobs/jobs/blocked/_job.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<td><%= link_to job.queue_name, application_queue_path(@application, job.queue) %></td>
22
<td>
33
<div class="is-family-monospace is-size-7"><%= job.blocked_by %></div>
4-
<div class="has-text-grey is-size-7"><%= job.blocked_until ? "Expires #{bidirectional_time_distance_in_words_with_title(job.blocked_until)}" : "" %></div>
4+
<div class="has-text-grey is-size-7"><%= job.blocked_until ? "Expires #{bidirectional_time_distance_in_words_with_title(job.blocked_until)}".html_safe : "" %></div>
55
</td>
66
<td class="pr-0">
77
<%= render "mission_control/jobs/jobs/blocked/actions", job: job %>

0 commit comments

Comments
 (0)