Commit 35464aa1 by Tô Ngọc Ánh

add message notice if result is blank

parent 9072697a
Pipeline #1012 canceled with stages
in 0 seconds
......@@ -6,6 +6,8 @@
<%= paginate @applied_jobs %>
<%= render partial: 'applied_jobs/applied_job', collection: @applied_jobs, as: :job %>
<%= paginate @applied_jobs %>
<% else %>
<h4 class="text-center">Sorry! We can't found what you want!</h4>
<% end %>
</div>
</div>
......@@ -2,11 +2,15 @@
<h3 class='text-center'>History Jobs</h3>
<hr class="divider">
<div class='content'>
<% if @jobs.any? %>
<%= form_tag new_applied_job_path, method: :get, enforce_utf8: false do %>
<%= render partial: 'histories/job', collection: @jobs %>
<div class="actions text-center">
<%= submit_tag 'Apply Now', name: nil, class: 'btn btn-outline-success btn-lg' if @jobs.any? %>
<%= submit_tag 'Apply Now', name: nil, class: 'btn btn-outline-success btn-lg' %>
</div>
<% end %>
<% else %>
<h4 class="text-center">Sorry! You don't have any applied job!</h4>
<% end %>
</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