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

23 lines
605 B
Plaintext
Raw Normal View History

2018-01-01 13:52:15 +00:00
<table class="table table-striped jobs-table">
<thead>
<tr>
<th>Job Title</th>
<th>Company Name</th>
<th>Applied Date</th>
</tr>
</thead>
<tbody>
<% if @applications.blank? %>
<tr><td class="no-jobs" colspan="3">No jobs applied.</td></tr>
<% else %>
<% @applications.each do |app| %>
<% job = app.get_job %>
<tr>
<td><a href="<%= @page + "/" + job.to_param %>" target="_blank"><%= job.job_title %></a></td>
<td><%= job.employer_profile.company_name %></td>
<td><%= app.created_at.strftime("%d %B %Y") %></td>
</tr>
<% end %>
<% end %>
</tbody>
</table>