2023-11-16 20:23:09 +00:00
|
|
|
<% html_title @job.name %>
|
2023-11-22 19:44:28 +00:00
|
|
|
<div class="contextual">
|
2023-11-26 20:52:05 +00:00
|
|
|
<%= link_to 'Edit', edit_project_job_path(@project, @job), class: "icon icon-edit edit-job" %>
|
2023-11-22 19:44:28 +00:00
|
|
|
<%= actions_dropdown do %>
|
2023-11-26 20:52:05 +00:00
|
|
|
<%= copy_object_url_link(project_job_url(@project, @job, only_path: false)) %>
|
|
|
|
<%= link_to "Delete job", project_job_path(@project, @job), data: { confirm: "Are you sure you want to delete this job?" }, method: :delete, class: 'icon icon-del' %>
|
2023-11-21 14:37:11 +00:00
|
|
|
<% end %>
|
2023-11-22 19:44:28 +00:00
|
|
|
</div>
|
|
|
|
<h2>Job #<%= @job.id %></h2>
|
|
|
|
<div class="issue">
|
|
|
|
<div class="subject"><h3><%= @job.name %></h3></div>
|
|
|
|
<p><%= @job.description %></p>
|
|
|
|
<div class="attributes">
|
|
|
|
<div class="splitcontent">
|
|
|
|
<div class="splitcontentleft">
|
|
|
|
<div class="status attribute">
|
2023-11-30 19:08:55 +00:00
|
|
|
<div class="label">Category:</div>
|
|
|
|
<div class="value"><%= @job.category&.name || "Unassigned" %></div>
|
2023-11-22 19:44:28 +00:00
|
|
|
<div class="label">Starts on:</div>
|
|
|
|
<div class="value"><%= format_date(@job.starts_on) %></div>
|
|
|
|
<div class="label">Ends on:</div>
|
|
|
|
<div class="value"><%= format_date(@job.starts_on) %></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="splitcontentright">
|
|
|
|
<h3>Time logged:</h3>
|
|
|
|
<div class="status attribute">
|
|
|
|
<div class="label">Total:</div>
|
|
|
|
<div class="value">
|
2023-11-27 08:55:57 +00:00
|
|
|
<%= total_progress_bar(@job) %>
|
2023-11-22 19:44:28 +00:00
|
|
|
</div>
|
2023-11-24 15:05:38 +00:00
|
|
|
<% @job.time_budgets.each do |budget| %>
|
|
|
|
<%= render partial: "budget", locals: { budget: budget } %>
|
2023-11-22 19:44:28 +00:00
|
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|