/ Published in: Django
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
{% get_latest_jobs %} {% if latest_jobs.count %} <div class="job-listings"> <h3>job listings</h3> <ul> {% for job in latest_jobs %} <li> <a href="{{ job.get_absolute_url }}"><strong>{{ job.title }}</strong><br>{{ job.location }}</a> </li> {% endfor %} </ul> </div> {% else %} <p>Sorry, but there are no jobs today..</p> {% endif %}