Commit 80f7a64f by Thanh Hung Pham

Display applied jobs list

parent ed45a8d3
...@@ -2,23 +2,27 @@ ...@@ -2,23 +2,27 @@
<div class="well"> <div class="well">
<h2>Applied Jobs</h2> <h2>Applied Jobs</h2>
<%- @applied_jobs.each do |apply| -%> <div class="table-responsive">
<div class="row"> <table class="table">
<%= apply.job.name %> <thead>
</div> <th> Job </th>
<div class="row"> <th> Description </th>
<%= truncate(apply.job.description, length: 250) %> <th> Location </th>
</div> <th style="width: 150px;"> Salary </th>
<div class="row"> <th style="width: 100px;"> Applied At </th>
<div class="col-md-4"> </thead>
<%= apply.job.city.name unless apply.job.city.nil? %> <tbody>
</div> <%- @applied_jobs.each do |apply| -%>
<div class="col-md-4"> <tr>
<%= apply.job.salary %> <td> <%= link_to apply.job.name, jobs_detail_path(id: apply.job.id) %> </td>
</div> <td> <%= truncate(apply.job.description, length: 250) %> </td>
<div class="col-md-4"> <td> <%= apply.job.city.name unless apply.job.city.nil? %> </td>
<%= apply.applied_at %> <td> <%= apply.job.salary %> </td>
</div> <td> <%= apply.applied_at.strftime('%F') %> </td>
</div> <td> </td>
<%- end -%> </tr>
<%- end -%>
</tbody>
</table>
</div>
</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