Commit 80f7a64f by Thanh Hung Pham

Display applied jobs list

parent ed45a8d3
......@@ -2,23 +2,27 @@
<div class="well">
<h2>Applied Jobs</h2>
<div class="table-responsive">
<table class="table">
<thead>
<th> Job </th>
<th> Description </th>
<th> Location </th>
<th style="width: 150px;"> Salary </th>
<th style="width: 100px;"> Applied At </th>
</thead>
<tbody>
<%- @applied_jobs.each do |apply| -%>
<div class="row">
<%= apply.job.name %>
</div>
<div class="row">
<%= truncate(apply.job.description, length: 250) %>
</div>
<div class="row">
<div class="col-md-4">
<%= apply.job.city.name unless apply.job.city.nil? %>
</div>
<div class="col-md-4">
<%= apply.job.salary %>
</div>
<div class="col-md-4">
<%= apply.applied_at %>
</div>
</div>
<tr>
<td> <%= link_to apply.job.name, jobs_detail_path(id: apply.job.id) %> </td>
<td> <%= truncate(apply.job.description, length: 250) %> </td>
<td> <%= apply.job.city.name unless apply.job.city.nil? %> </td>
<td> <%= apply.job.salary %> </td>
<td> <%= apply.applied_at.strftime('%F') %> </td>
<td> </td>
</tr>
<%- end -%>
</tbody>
</table>
</div>
</div>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment