From 213cc3127599d74aea1af5ba637182e39ee29818 Mon Sep 17 00:00:00 2001 From: Trevor Vallender Date: Tue, 19 Dec 2023 09:44:26 +0000 Subject: [PATCH] Stop using issue class on jobs Refs #2185 --- app/views/jobs/show.html.erb | 6 +++++- assets/stylesheets/jobs.css | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/app/views/jobs/show.html.erb b/app/views/jobs/show.html.erb index e70c161..4ed8fda 100644 --- a/app/views/jobs/show.html.erb +++ b/app/views/jobs/show.html.erb @@ -1,3 +1,7 @@ +<% content_for :header_tags do %> + <%= stylesheet_link_tag "jobs", plugin: "jobs" %> +<% end %> + <% html_title @job.name %>
<%= link_to 'Edit', edit_project_job_path(@project, @job), class: "icon icon-edit edit-job" %> @@ -7,7 +11,7 @@ <% end %>

Job #<%= @job.id %>

-
+

<%= @job.name %>

<%= @job.description %>

diff --git a/assets/stylesheets/jobs.css b/assets/stylesheets/jobs.css index 25cf343..a86e309 100644 --- a/assets/stylesheets/jobs.css +++ b/assets/stylesheets/jobs.css @@ -1 +1,16 @@ +/* These are a copy of the default CSS for issues */ div.job {background:#ffffdd; padding:6px; margin-bottom:6px; border: 1px solid #d7d7d7; border-radius:3px;} +div.job div.subject div div { padding-left: 16px; word-break: break-word; } +div.job div.subject p {margin: 0; margin-bottom: 0.1em; font-size: 90%; color: #999;} +div.job div.subject>div>p { margin-top: 0.5em; } +div.job div.subject h3 {margin: 0; margin-bottom: 0.1em;} +div.job p.author {margin-top:0.5em;} +div.job span.private, div.journal span.private {font-size: 60%;} +div.job .next-prev-links {color:#999;} +div.job .attributes {margin-top: 2em;} +div.job .attributes .attribute {padding-left:180px; clear:left; min-height: 1.8em;} +div.job .attributes .attribute .label {width: 170px; margin-left:-180px; font-weight:bold; float:left; overflow: clip visible; text-overflow: ellipsis;} +div.job .attribute .value {overflow:auto; text-overflow: ellipsis;} +div.job .attribute.string_cf .value .wiki p {margin-top: 0; margin-bottom: 0;} +div.job .attribute.text_cf .value .wiki p:first-of-type {margin-top: 0;} +div.job.overdue .due-date .value { color: #c22; }