Mercurial > public > sg101
view gpp/templates/home.html @ 318:c550933ff5b6
Fix a bug where you'd get an error when trying to delete a forum thread (topic does not exist). Apparently when you call topic.delete() the posts would get deleted, but the signal handler for each one would run, and it would try to update the topic's post count or something, but the topic was gone? Reworked the code a bit and explicitly delete the posts first. I also added a sync() call on the parent forum since post counts were not getting adjusted.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 05 Feb 2011 21:46:52 +0000 |
parents | 2934a867c2ef |
children | b4f0980506e0 |
line wrap: on
line source
{% extends 'base.html' %} {% load url from future %} {% load bulletin_tags %} {% load news_tags %} {% load weblinks_tags %} {% load downloads_tags %} {% load poll_tags %} {% load forum_tags %} {% load cache %} {% block title %}Home{% endblock %} {% 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="{{ STATIC_URL }}css/news.css" /> {% endblock %} {% block custom_js %} <script type="text/javascript"> $(document).ready(function() { $('#home-slideshow img:first').fadeIn(1000, function() { $('#home-slideshow').cycle({ fx: 'fade', timeout: 5000, pause: 1, delay: 1000 }); }); }); </script> <style type="text/css"> #home-slideshow img { display: none } </style> {% endblock %} {% block content %} <h2>Welcome to SurfGuitar101!</h2> <div class="span-9"> <div id="home-slideshow"> <img src="{{ STATIC_URL }}slideshow/image-1.jpg" alt="Slideshow Image 1" /> <img src="{{ STATIC_URL }}slideshow/image-2.jpg" alt="Slideshow Image 2" /> <img src="{{ STATIC_URL }}slideshow/image-3.jpg" alt="Slideshow Image 3" /> <img src="{{ STATIC_URL }}slideshow/image-4.jpg" alt="Slideshow Image 4" /> <img src="{{ STATIC_URL }}slideshow/image-5.jpg" alt="Slideshow Image 5" /> </div> </div> <div class="span-10 last"> <p> <strong>Welcome to the all new SurfGuitar101.com!</strong> We've rewritten the site software and have a new design! We hope you like the new site and features; please leave feedback in our forums. </p> <p>Since February 26, 2006, SurfGuitar101.com has been the premier home on the web for friends and fans of the world-wide phenomena known as surf music! Created in Southern California in the early 1960's, surf music is very much alive today and has spread around the globe. Join us in our forums to discuss surf music, past and present. Meet new friends and discover new bands. Want to play surf music? We have lots of forums devoted to playing, performing, and writing surf music. We have lots of discussions on gear: guitars, amps, and drums. Check out our podcasts and hear some really great tunes! Finally, we feature news and articles on the surf scene, and you'll always know where you can catch some live surf music! </p> </div> {% cache 3600 home_bulletins %} {% current_bulletins %} {% endcache %} {% new_posts %} {% cache 3600 home_news %} {% current_news %} {% endcache %} {% cache 3600 home_new_stuff %} {% latest_poll %} <div class="span-9 append-1"> {% latest_weblinks %} </div> <div class="span-9 last"> {% latest_downloads %} </div> {% endcache %} {% endblock %}