From b73688b92f810962d306d85c11b57d47e5cf1688 Mon Sep 17 00:00:00 2001 From: Nishanth Amuluru Date: Tue, 11 Jan 2011 11:56:34 +0530 Subject: approve text book is meaningful now --- pytask/taskapp/views.py | 2 +- pytask/templates/task/view_textbook.html | 14 +++++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/pytask/taskapp/views.py b/pytask/taskapp/views.py index cabd8d3..993703b 100755 --- a/pytask/taskapp/views.py +++ b/pytask/taskapp/views.py @@ -335,7 +335,7 @@ def browse_textbooks(request): "comp_textbooks": comp_textbooks, } - if user.is_authenticated() and user.get_profile().rights != "CT": + if user.is_authenticated() and user.get_profile().rights in ["DC", "MG"]: unpub_textbooks = TextBook.objects.filter(status="UP") context.update({"unpub_textbooks": unpub_textbooks}) diff --git a/pytask/templates/task/view_textbook.html b/pytask/templates/task/view_textbook.html index eda89a1..4641210 100644 --- a/pytask/templates/task/view_textbook.html +++ b/pytask/templates/task/view_textbook.html @@ -25,12 +25,20 @@
{{chap.title}} | +{{chap.status}} | +