recruitment/app/views/admin/recruitments/_posting_index.html.erb

35 lines
1.1 KiB
Plaintext

<script>
if(document.querySelectorAll("#orbit-bar").length==0) location.reload();
</script>
<table class="table main-list">
<thead>
<tr class="sort-header">
<% @table_fields.each do |f| %>
<%= thead(f) %>
<% end %>
</tr>
</thead>
<tbody>
<% @jobs.each do |job| %>
<tr>
<td><a href="/<%= I18n.locale.to_s %>/<%= job.get_job_page %>/<%= job.to_param %>" target="_blank"><%= job.job_title %></a></td>
<td><%= job.employer_profile.company_name %></td>
<td><span class="label label-<%= (job.filled ? "success" : "important" ) %>"><%= (job.filled ? "Yes" : "No" ) %></span></td>
<% jobcount = job.get_application_count %>
<td><%= jobcount %></td>
<td><%= job.get_post_type_label.html_safe %></td>
<td>
<% if jobcount > 0 %>
<a href="<%= applications_admin_recruitment_path(job.id) %>" class="btn btn-default"><%= t("recruitment.show_application") %></a>
<% end %>
</td>
</tr>
<% end %>
</tbody>
</table>
<%=
content_tag :div, class: "bottomnav clearfix" do
content_tag :div, paginate(@jobs), class: "pagination pagination-centered"
end
%>