view gpp/templates/home.html @ 286:72fd300685d5

For #95. You can now make posts with no text in the body if you have attachments. And now if you create a new topic with an attachment, and the POST fails (say you forgot the topic title), we will now re-attach attachments. Also fixed a bug in the smiley code that would arise if it was asked to markup an empty string.
author Brian Neal <bgneal@gmail.com>
date Sat, 23 Oct 2010 20:19:46 +0000
parents 2b14840cb882
children daa2916f5b34
line wrap: on
line source
{% extends 'base.html' %}
{% 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="{{ MEDIA_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="{{ MEDIA_URL }}slideshow/image-1.jpg" alt="Slideshow Image 1" />
   <img src="{{ MEDIA_URL }}slideshow/image-2.jpg" alt="Slideshow Image 2" />
   <img src="{{ MEDIA_URL }}slideshow/image-3.jpg" alt="Slideshow Image 3" />
   <img src="{{ MEDIA_URL }}slideshow/image-4.jpg" alt="Slideshow Image 4" />
   <img src="{{ MEDIA_URL }}slideshow/image-5.jpg" alt="Slideshow Image 5" />
   </div>
</div>
<div class="span-10 last">
<p>You are looking at a test version of the new SurfGuitar101 website, dubbed <strong>SG101 2.0</strong>. 
The purpose of this test site is to test the new site software, to get feedback from the user base, and 
to develop a better theme (colors, logos, layout, etc.) for the site. All bugs and feature requests are being tracked at 
<a href="http://code.surfguitar101.com">code.surfguitar101.com</a>. Existing SG101 members are encouraged
to sign up here and give the new site a test drive. Any and all feedback is appreciated! Thank you for
helping to make this site be the best home on the web for fans and friends of surf music!
</p>
</div>
<p>Remember that this is a test site, and not everything is going to work. Nothing here is
permanent. The site (content, user accounts, etc.) may be wiped at any time while we fix bugs and add features. 
Also, I hope that the look and feel of this site can be improved! I'll need lots of help for this aspect, 
as I'm more of a coder than a designer.</p>
{% 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 %}