summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDusty Phillips <dusty@archlinux.ca>2010-07-23 17:05:43 +0200
committerDan McGee <dan@archlinux.org>2010-07-25 23:07:47 +0200
commitca409654b1d66b663c175ca67c649813ac104b6d (patch)
tree1650a4de280f8a38e08b87461434e7d4f426b6a2 /templates
parentd316f4b1975ee3c189e1df4087bea938bb43a377 (diff)
downloadarchweb-ca409654b1d66b663c175ca67c649813ac104b6d.tar.gz
archweb-ca409654b1d66b663c175ca67c649813ac104b6d.tar.xz
Hide the details of the todo list until clicking
Dan: don't load jQuery until late in the page load. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates')
-rw-r--r--templates/todolists/public_list.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/templates/todolists/public_list.html b/templates/todolists/public_list.html
index 78e5b51..f1220f6 100644
--- a/templates/todolists/public_list.html
+++ b/templates/todolists/public_list.html
@@ -1,10 +1,11 @@
{% extends "base.html" %}
+
{% block title %}Arch Linux - Todo Lists{% endblock %}
{% block content %}
- <div id="read_only_todo_lists">
+ <div id="public_todo_lists">
{% for list in todo_lists %}
- <h2>{{list.name}}</h2>
+ <h4>{{list.name}}</h4>
<div class="todo_list">
<p>{{list.description}}</p>
<ul>
@@ -15,4 +16,12 @@
</div>
{% endfor %}
</div>
+{% load cdn %}{% jquery %}
+<script type="text/javascript">
+ $("#public_todo_lists h4").click(
+ function(e) {
+ $(this).next().toggle();
+ }
+ );
+</script>
{% endblock %}