Mercurial > public > sg101
view gpp/templates/potd/potd_block.html @ 6:b6263ac72052
Use DRY principle to manage third party javascript libraries. Created script_tags template tags to generate the correct link and script tags for 3rd party libraries. The settings.py file is the only place where the full path name is specified.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 11 Apr 2009 22:50:56 +0000 |
parents | dbd703f7d63a |
children | f43f8a956f1d |
line wrap: on
line source
{% extends 'side_block.html' %} {% block block_title %}Photo of the Day{% endblock %} {% block block_content %} {% if potd %} <center> <img src="{{ potd.thumb.url }}" alt="{{ potd.caption }}" title="{{ potd.caption }}" /><br /> <a href="{% url potd-view %}">{{ potd.caption }}</a> </center> {% else %} <p>No photo at this time.</p> {% endif %} {% endblock %}