view gpp/templates/weblinks/search_results.html @ 20:c0d0779b266f

Created a template tag for the latest weblinks: latest_weblinks. This necessitated adding a get_absolute_url function for the Link model along with a new view for it.
author Brian Neal <bgneal@gmail.com>
date Sun, 19 Apr 2009 20:41:37 +0000
parents dbd703f7d63a
children 884839ddbfde
line wrap: on
line source
{% extends 'weblinks/base.html' %}
{% block title %}Web Links: Search Results{% endblock %}
{% block weblinks_css %}
<link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/pagination.css" />
{% endblock %}
{% block weblinks_content %}
<h3>Search Results: {{ query }}</h3>

{% include 'core/pagination_query.html' %}

{% if page.object_list %}
<dl>
{% for link in page.object_list %}
   {% include 'weblinks/link.html' %}
{% endfor %}
</dl>

{% include 'core/pagination_query.html' %}

{% else %}
<p>No results found.</p>
{% endif %}
{% endblock %}