annotate gpp/templates/gcalendar/index.html @ 314:03b70aa5c872
The home page was taking 27 seconds to load; 99% of the time was being spent in the new_posts template tag query. Reworked it a bit to be much more sane.
author |
Brian Neal <bgneal@gmail.com> |
date |
Sat, 29 Jan 2011 20:34:36 +0000 |
parents |
88b2b9cb8c1f |
children |
f7fbb404241f |
rev |
line source |
gremmie@1
|
1 {% extends 'base.html' %}
|
bgneal@310
|
2 {% load url from future %}
|
gremmie@1
|
3 {% block title %}Event Calendar{% endblock %}
|
gremmie@1
|
4 {% block content %}
|
gremmie@1
|
5 <h2>SurfGuitar101 Event Calendar</h2>
|
gremmie@1
|
6 <p>All times are shown in the US/Central time zone. You can add any event on our calendar to your own
|
gremmie@1
|
7 <a href="http://www.google.com/googlecalendar/overview.html">Google calendar</a>. If you do, the event
|
gremmie@1
|
8 will be displayed in your time zone, and you can have Google send you email or text message reminders for
|
gremmie@1
|
9 the events. Click on any event below to see more details or copy it to your calendar.</p>
|
gremmie@1
|
10 <iframe src="//www.google.com/calendar/embed?showTitle=0&showTz=0&height=540&wkst=1&bgcolor=%23DFDFDF&src=i81lu3fkh57sgqqenogefd9v78%40group.calendar.google.com&color=%231B887A&ctz=America%2FChicago" style=" border:solid 1px #777 " width="720" height="540" frameborder="0" scrolling="no"></iframe>
|
gremmie@1
|
11
|
gremmie@1
|
12 <ul>
|
gremmie@1
|
13 {% if user.is_authenticated %}
|
bgneal@312
|
14 <li><a href="{% url 'gcalendar-add' %}"><img src="{{ STATIC_URL}}icons/calendar_add.png" alt="Add" /></a>
|
bgneal@310
|
15 <a href="{% url 'gcalendar-add' %}">Add an event to our calendar</a>.</li>
|
bgneal@312
|
16 <li><a href="{% url 'gcalendar-edit_events' %}"><img src="{{ STATIC_URL}}icons/calendar_edit.png" alt="Edit" /></a>
|
bgneal@310
|
17 <a href="{% url 'gcalendar-edit_events' %}">Change or delete an event you previously added</a>.</li>
|
gremmie@1
|
18 {% endif %}
|
gremmie@1
|
19 <li>
|
gremmie@1
|
20 <a href="http://www.google.com/calendar/feeds/i81lu3fkh57sgqqenogefd9v78%40group.calendar.google.com/public/basic">
|
bgneal@312
|
21 <img src="{{ STATIC_URL }}icons/feed.png" alt="feed" /></a>
|
gremmie@1
|
22 <a href="http://www.google.com/calendar/feeds/i81lu3fkh57sgqqenogefd9v78%40group.calendar.google.com/public/basic">
|
gremmie@1
|
23 RSS Feed</a>
|
gremmie@1
|
24 </li>
|
gremmie@1
|
25 <li>
|
gremmie@1
|
26 Want to embed this calendar on your website or blog? <a href="http://www.google.com/calendar/embedhelper?src=i81lu3fkh57sgqqenogefd9v78%40group.calendar.google.com&ctz=America/Chicago">Use this helper tool</a>.
|
gremmie@1
|
27 </li>
|
gremmie@1
|
28 </ul>
|
gremmie@1
|
29 {% endblock %}
|