31 lines
1.0 KiB
Plaintext
31 lines
1.0 KiB
Plaintext
<table class="table table-striped jobs-table">
|
|
<thead>
|
|
<tr>
|
|
<th><%= t("recruitment.post_type") %></th>
|
|
<th><%= t("recruitment.title") %></th>
|
|
<th><%= t("recruitment.company_name") %></th>
|
|
<th><%= t("recruitment.applied_date") %></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<% if @applications.blank? %>
|
|
<tr><td class="no-jobs" colspan="3"><%= t("recruitment.no_jobs_found") %></td></tr>
|
|
<% else %>
|
|
<% @applications.each do |app| %>
|
|
<% job = app.get_job %>
|
|
<tr>
|
|
<td><%= job.get_post_type_label.html_safe %></td>
|
|
<td>
|
|
<% if job.post_type == "type1" %>
|
|
<a href="<%= "/#{I18n.locale.to_s}/jobs/" + job.to_param %>" target="_blank"><%= job.job_title %></a></td>
|
|
<% elsif job.post_type == "type2" %>
|
|
<a href="<%= "/#{I18n.locale.to_s}/internships/" + job.to_param %>" target="_blank"><%= job.job_title %></a></td>
|
|
<% end %>
|
|
</td>
|
|
<td><%= job.employer_profile.company_name %></td>
|
|
<td><%= app.created_at.strftime("%d %B %Y") %></td>
|
|
</tr>
|
|
<% end %>
|
|
<% end %>
|
|
</tbody>
|
|
</table> |