recruitment/app/views/recruitments/_employee_dashboard.html.erb

42 lines
1.4 KiB
Plaintext
Raw Normal View History

2018-01-01 13:52:15 +00:00
<table class="table table-striped jobs-table">
<thead>
<tr>
2018-01-15 12:26:18 +00:00
<th><%= t("recruitment.post_type") %></th>
<th><%= t("recruitment.title") %></th>
2018-01-07 18:22:57 +00:00
<th><%= t("recruitment.company_name") %></th>
<th><%= t("recruitment.applied_date") %></th>
2018-01-01 13:52:15 +00:00
</tr>
</thead>
<tbody>
<% if @applications.blank? %>
2018-01-07 18:22:57 +00:00
<tr><td class="no-jobs" colspan="3"><%= t("recruitment.no_jobs_found") %></td></tr>
2018-01-01 13:52:15 +00:00
<% else %>
<% @applications.each do |app| %>
<% job = app.get_job %>
<tr>
2018-01-15 12:42:34 +00:00
<td>
2018-01-17 18:22:24 +00:00
<% if !job.nil? %>
<%= job.get_post_type_label.html_safe %></td>
<% else %>
<%= t("recruitment.not_available") %>
<% end %>
<td>
<% if !job.nil? %>
<% if job.post_type == "type1" %>
<a href="<%= "/#{I18n.locale.to_s}/jobs/" + job.to_param %>" target="_blank"><%= job.job_title %></a>
<% elsif job.post_type == "type2" %>
<a href="<%= "/#{I18n.locale.to_s}/internships/" + job.to_param %>" target="_blank"><%= job.job_title %></a>
<% elsif job.post_type == "type3" %>
<a href="<%= "/#{I18n.locale.to_s}/exchanges/" + job.to_param %>" target="_blank"><%= job.job_title %></a>
<% end %>
<% else %>
<%= t("recruitment.not_available") %>
2018-01-15 12:42:34 +00:00
<% end %>
</td>
2018-01-17 18:22:24 +00:00
<td><%= job.employer_profile.company_name rescue t("recruitment.not_available") %></td>
2018-01-01 13:52:15 +00:00
<td><%= app.created_at.strftime("%d %B %Y") %></td>
</tr>
<% end %>
<% end %>
</tbody>
</table>