annotate gpp/templates/weblinks/base.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 884839ddbfde
rev   line source
gremmie@1 1 {% extends 'base.html' %}
gremmie@1 2 {% block custom_css %}
gremmie@1 3 <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/weblinks.css" />
gremmie@1 4 {% block weblinks_css %}{% endblock %}
gremmie@1 5 {% endblock %}
gremmie@1 6 {% block content %}
gremmie@1 7 <h2>Web Links</h2>
gremmie@1 8
gremmie@1 9 <div class="weblinks-search">
gremmie@1 10 <form action="{% url weblinks-search page=1 %}" method="post">
gremmie@1 11 <p>{{ search_form.text }} <input type="submit" value="Search" /></p>
gremmie@1 12 </form>
gremmie@1 13 </div>
gremmie@1 14
gremmie@1 15 <ul class="app-menu">
gremmie@1 16 <li><a href="{% url weblinks.views.link_index %}">Categories</a></li>
gremmie@1 17 <li><a href="{% url weblinks.views.new_links %}">New</a></li>
gremmie@1 18 <li><a href="{% url weblinks.views.popular_links %}">Popular</a></li>
gremmie@1 19 <li><a href="{% url weblinks.views.random_link %}" target="_blank">Random</a></li>
gremmie@1 20 {% if user.is_authenticated %}
gremmie@1 21 <li><a href="{% url weblinks.views.add_link %}">Add</a></li>
gremmie@1 22 {% endif %}
gremmie@1 23 </ul>
gremmie@1 24
gremmie@1 25 <div class="weblinks-content">
gremmie@1 26 {% block weblinks_content %}
gremmie@1 27 {% endblock %}
gremmie@1 28 </div>
gremmie@1 29 {% endblock %}