diff options
author | Pierre-Yves Chibon <pingou@pingoured.fr> | 2012-03-31 18:28:02 +0200 |
---|---|---|
committer | Pierre-Yves Chibon <pingou@pingoured.fr> | 2012-03-31 18:28:02 +0200 |
commit | aad8b749286f5aaca869c079d1010c734e7a27a3 (patch) | |
tree | 9d58de43c958499d5c87709a940210fbc9a7867e | |
parent | 97147356b9ffaf316307f288dccece23d9579a5d (diff) | |
download | hyperkitty-aad8b749286f5aaca869c079d1010c734e7a27a3.tar.gz hyperkitty-aad8b749286f5aaca869c079d1010c734e7a27a3.tar.xz hyperkitty-aad8b749286f5aaca869c079d1010c734e7a27a3.zip |
Comment out the previous/next thread bits as this will not be valid anymore with the new system
-rw-r--r-- | views/pages.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/views/pages.py b/views/pages.py index 1cd7e7b..1ab45cf 100644 --- a/views/pages.py +++ b/views/pages.py @@ -296,11 +296,13 @@ def thread (request, mlist_fqdn, threadid): search_form = SearchForm(auto_id=False) t = loader.get_template('thread.html') - threads = mongo.get_thread_list(list_name, int(threadid)) - prev_thread = mongo.get_thread_name(list_name, int(threadid) - 1) + threads = mongo.get_thread_list(list_name, threadid) + #prev_thread = mongo.get_thread_name(list_name, int(threadid) - 1) + prev_thread = [] if len(prev_thread) > 30: prev_thread = '%s...' % prev_thread[:31] - next_thread = mongo.get_thread_name(list_name, int(threadid) + 1) + #next_thread = mongo.get_thread_name(list_name, int(threadid) + 1) + next_thread = [] if len(next_thread) > 30: next_thread = '%s...' % next_thread[:31] @@ -325,9 +327,9 @@ def thread (request, mlist_fqdn, threadid): 'first_mail': threads[0], 'threads': threads[1:], 'next_thread': next_thread, - 'next_thread_id': int(threadid) + 1, + 'next_thread_id': 0, 'prev_thread': prev_thread, - 'prev_thread_id': int(threadid) - 1, + 'prev_thread_id': 0, 'archives_length': archives_length, }) return HttpResponse(t.render(c)) |