Mercurial > public > sg101
comparison gpp/templates/gcalendar/index.html @ 345:f7fbb404241f
Fix #164; have the calendar display times in the user's time zone. If the user isn't logged in, just use US/Pacific. Default the calendar mode to agenda mode.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Mon, 28 Feb 2011 01:58:38 +0000 |
parents | 88b2b9cb8c1f |
children |
comparison
equal
deleted
inserted
replaced
344:7eed448b399c | 345:f7fbb404241f |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load url from future %} | 2 {% load url from future %} |
3 {% block title %}Event Calendar{% endblock %} | 3 {% block title %}Event Calendar{% endblock %} |
4 {% block content %} | 4 {% block content %} |
5 <h2>SurfGuitar101 Event Calendar</h2> | 5 <h2>SurfGuitar101 Event Calendar</h2> |
6 <p>All times are shown in the US/Central time zone. You can add any event on our calendar to your own | 6 <p>Welcome to the SG101 event calendar. You can add any event on our calendar to your own |
7 <a href="http://www.google.com/googlecalendar/overview.html">Google calendar</a>. If you do, the event | 7 <a href="http://www.google.com/googlecalendar/overview.html">Google calendar</a>. If you do, the event |
8 will be displayed in your time zone, and you can have Google send you email or text message reminders for | 8 will be displayed in your time zone, and you can have Google send you email or text message reminders for |
9 the events. Click on any event below to see more details or copy it to your calendar.</p> | 9 the events. Click on any event below to see more details or copy it to your calendar.</p> |
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> | 10 {% if user.is_authenticated %} |
11 <p><strong>Please note:</strong> all times shown are in the <strong>{{ tz }}</strong> | |
12 time zone, which is the time zone preference you have set in your | |
13 <a href="{% url 'bio-me' %}">user profile</a>. | |
14 </p> | |
15 {% else %} | |
16 <p><strong>Please note:</strong> all times shown are in the <strong>{{ tz }}</strong> time zone. Please | |
17 <a href="{% url 'accounts-login' %}">login</a> to view the times based on the time zone set in your profile.</p> | |
18 {% endif %} | |
19 | |
20 <iframe src="//www.google.com/calendar/embed?mode=AGENDA&showTitle=0&showTz=0&height=540&wkst=1&bgcolor=%23DFDFDF&src=i81lu3fkh57sgqqenogefd9v78%40group.calendar.google.com&color=%231B887A&ctz={{ tz|urlencode:"" }}" style=" border:solid 1px #777 " width="720" height="540" frameborder="0" scrolling="no"></iframe> | |
11 | 21 |
12 <ul> | 22 <ul> |
13 {% if user.is_authenticated %} | 23 {% if user.is_authenticated %} |
14 <li><a href="{% url 'gcalendar-add' %}"><img src="{{ STATIC_URL}}icons/calendar_add.png" alt="Add" /></a> | 24 <li><a href="{% url 'gcalendar-add' %}"><img src="{{ STATIC_URL}}icons/calendar_add.png" alt="Add" /></a> |
15 <a href="{% url 'gcalendar-add' %}">Add an event to our calendar</a>.</li> | 25 <a href="{% url 'gcalendar-add' %}">Add an event to our calendar</a>.</li> |