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>
<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| -%> <%- @applied_jobs.each do |apply| -%>
<div class="row"> <tr>
<%= apply.job.name %> <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="row"> <td> <%= apply.job.city.name unless apply.job.city.nil? %> </td>
<%= truncate(apply.job.description, length: 250) %> <td> <%= apply.job.salary %> </td>
</div> <td> <%= apply.applied_at.strftime('%F') %> </td>
<div class="row"> <td> </td>
<div class="col-md-4"> </tr>
<%= 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>
<%- end -%> <%- 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