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

27 lines
548 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<% html_title "Jobs" %>
<div class="contextual">
<%= link_to 'New job', new_job_path(project_id: @project.id), class: "icon icon-add new-job" %>
</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 %>