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 @@ ...@@ -6,6 +6,8 @@
<%= paginate @applied_jobs %> <%= paginate @applied_jobs %>
<%= render partial: 'applied_jobs/applied_job', collection: @applied_jobs, as: :job %> <%= render partial: 'applied_jobs/applied_job', collection: @applied_jobs, as: :job %>
<%= paginate @applied_jobs %> <%= paginate @applied_jobs %>
<% else %>
<h4 class="text-center">Sorry! We can't found what you want!</h4>
<% end %> <% end %>
</div> </div>
</div> </div>
...@@ -2,11 +2,15 @@ ...@@ -2,11 +2,15 @@
<h3 class='text-center'>History Jobs</h3> <h3 class='text-center'>History Jobs</h3>
<hr class="divider"> <hr class="divider">
<div class='content'> <div class='content'>
<% if @jobs.any? %>
<%= form_tag new_applied_job_path, method: :get, enforce_utf8: false do %> <%= form_tag new_applied_job_path, method: :get, enforce_utf8: false do %>
<%= render partial: 'histories/job', collection: @jobs %> <%= render partial: 'histories/job', collection: @jobs %>
<div class="actions text-center"> <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> </div>
<% end %> <% end %>
<% else %>
<h4 class="text-center">Sorry! You don't have any applied job!</h4>
<% end %>
</div> </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