Redmine-Jobs/app/views/jobs/index.html.erb

27 lines
548 B
Plaintext
Raw Normal View History

2023-11-16 20:23:09 +00:00
<% html_title "Jobs" %>
<div class="contextual">
2023-11-21 13:59:43 +00:00
<%= link_to 'New job', new_job_path(project_id: @project.id), class: "icon icon-add new-job" %>
2023-11-16 20:23:09 +00:00
</div>
<h2>Jobs</h2>
<% if @jobs.empty? %>
<p>You havent created any jobs yet.</p>
<% else %>
<table class="list">
<thead>
<tr>
<th>Name</th>
<th>Starts on</th>
<th>Ends on</th>
<th>Project</th>
<th>External project</th>
<th>Budget</th>
</tr>
</thead>
<tbody>
<%= render @jobs %>
</tbody>
</table>
<% end %>