summaryrefslogtreecommitdiffstats
path: root/hyperkitty
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-01-25 16:34:36 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-01-25 16:34:36 +0100
commitfd1616185405265189dc6d5ce70cc6c16456088c (patch)
tree421ef5b038fb552d3f4e853cf81a4015dfbb309a /hyperkitty
parentd4ecad9325292f865e58b9fe7f58927f6e5af953 (diff)
downloadhyperkitty-fd1616185405265189dc6d5ce70cc6c16456088c.tar.gz
hyperkitty-fd1616185405265189dc6d5ce70cc6c16456088c.tar.xz
hyperkitty-fd1616185405265189dc6d5ce70cc6c16456088c.zip
Fix accordion widget and add_tag button
Diffstat (limited to 'hyperkitty')
-rw-r--r--hyperkitty/static/js/hyperkitty.js8
-rw-r--r--hyperkitty/views/forms.py2
-rw-r--r--hyperkitty/views/thread.py4
3 files changed, 10 insertions, 4 deletions
diff --git a/hyperkitty/static/js/hyperkitty.js b/hyperkitty/static/js/hyperkitty.js
index ee61a82..7d7c40b 100644
--- a/hyperkitty/static/js/hyperkitty.js
+++ b/hyperkitty/static/js/hyperkitty.js
@@ -162,6 +162,12 @@ function setup_quotes() {
});
}
+function setup_months_list() {
+ var accordion = $("#months-list").accordion({
+ active: $("#months-list li.current").parent().prev()
+ });
+}
+
/*
* General
@@ -172,5 +178,5 @@ $(document).ready(function() {
setup_attachments();
setup_add_tag();
setup_quotes();
- $("#months-list").accordion({navigation: true});
+ setup_months_list();
});
diff --git a/hyperkitty/views/forms.py b/hyperkitty/views/forms.py
index ab16215..d52eaea 100644
--- a/hyperkitty/views/forms.py
+++ b/hyperkitty/views/forms.py
@@ -78,7 +78,7 @@ class AddTagForm(forms.Form):
tag = forms.CharField(label='', help_text=None,
widget=TextInputWithButton(
attrs={'placeholder': 'Add a tag...',
- 'class': 'span2',
+ 'class': 'input-medium',
'button_text': 'Add'}
)
)
diff --git a/hyperkitty/views/thread.py b/hyperkitty/views/thread.py
index fc78cbe..397e45d 100644
--- a/hyperkitty/views/thread.py
+++ b/hyperkitty/views/thread.py
@@ -40,7 +40,7 @@ from forms import *
from hyperkitty.lib import get_months, get_store, stripped_subject
-def thread_index(request, mlist_fqdn, threadid):
+def thread_index(request, mlist_fqdn, threadid, month=None, year=None):
''' Displays all the email for a given thread identifier '''
search_form = SearchForm(auto_id=False)
t = loader.get_template('thread.html')
@@ -122,7 +122,7 @@ def thread_index(request, mlist_fqdn, threadid):
'list_address': mlist_fqdn,
'search_form': search_form,
'addtag_form': tag_form,
- 'month': 'Thread',
+ 'month': thread.date_active,
'participants': participants,
'first_mail': thread.starting_email,
'replies': list(emails)[1:],