Stop using issue class on jobs

Refs #2185
This commit is contained in:
Trevor Vallender 2023-12-19 09:44:26 +00:00
parent a74d1ad2ea
commit 213cc31275
2 changed files with 20 additions and 1 deletions

View File

@ -1,3 +1,7 @@
<% content_for :header_tags do %>
<%= stylesheet_link_tag "jobs", plugin: "jobs" %>
<% end %>
<% html_title @job.name %> <% html_title @job.name %>
<div class="contextual"> <div class="contextual">
<%= link_to 'Edit', edit_project_job_path(@project, @job), class: "icon icon-edit edit-job" %> <%= link_to 'Edit', edit_project_job_path(@project, @job), class: "icon icon-edit edit-job" %>
@ -7,7 +11,7 @@
<% end %> <% end %>
</div> </div>
<h2>Job #<%= @job.id %></h2> <h2>Job #<%= @job.id %></h2>
<div class="issue"> <div class="job">
<div class="subject"><h3><%= @job.name %></h3></div> <div class="subject"><h3><%= @job.name %></h3></div>
<p><%= @job.description %></p> <p><%= @job.description %></p>
<div class="attributes"> <div class="attributes">

View File

@ -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 {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; }