Mercurial > public > sg101
view gpp/templates/news/base.html @ 197:2baadae33f2e
Got autocomplete working for the member search. Updated django and ran into a bug where url tags with comma separated kwargs starting consuming tons of CPU throughput. The work-around is to cut over to using spaces between arguments. This is now allowed to be consistent with other tags. Did some query optimization for the news app.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 10 Apr 2010 04:32:24 +0000 |
parents | 6a5549c2efb5 |
children | 1246a4f1ab4f |
line wrap: on
line source
{% extends 'base.html' %} {% block custom_head %} <link rel="alternate" type="application/rss+xml" title="SurfGuitar101 News" href="{% url feeds-news %}" /> {% endblock %} {% block custom_css %} <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}css/news.css" /> {% block news_css %}{% endblock %} {% endblock %} {% block content %} <h2>SurfGuitar101 News & Articles <a href="{% url feeds-news %}"><img src="{{ MEDIA_URL }}icons/feed.png" alt="News Feed" title="News Feed" /></a></h2> {% if search_form %} <div class="news-search"> <form action="{% url news-search_page page=1 %}" method="post">{% csrf_token %} <p>{{ search_form.text }} {{ search_form.category }} <input type="submit" value="Search" /></p> </form> </div> {% endif %} <ul class="app-menu"> <li><a href="{% url news-index_page page=1 %}">News Main</a></li> <li><a href="{% url news-archive_index %}">Archive</a></li> <li><a href="{% url news.views.category_index %}">Categories</a></li> <li><a href="{% url news-tag_index %}">Tags</a></li> <li><a href="{% url news.views.submit %}">Submit News</a></li> </ul> {% block news_content %} {% endblock %} {% endblock %}