From eddc5ab0a7d6933fd40d924b0c95e1bb6fe56a59 Mon Sep 17 00:00:00 2001 From: Ricky Zhou Date: Fri, 7 Mar 2008 15:43:10 -0500 Subject: [PATCH] Be a bit more specific about CLA in /home --- fas/fas/controllers.py | 4 +++- fas/fas/templates/home.html | 3 +++ fas/fas/templates/user/view.html | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/fas/fas/controllers.py b/fas/fas/controllers.py index 331045d..7902051 100644 --- a/fas/fas/controllers.py +++ b/fas/fas/controllers.py @@ -78,9 +78,11 @@ class Root(controllers.RootController): user_name = turbogears.identity.current.user_name person = People.by_username(user_name) cla = None + cla = None + if clickedCLAPrivs(person): + cla = 'clicked' if signedCLAPrivs(person): cla = 'signed' - return dict(person=person, cla=cla) @expose(template="fas.templates.about") diff --git a/fas/fas/templates/home.html b/fas/fas/templates/home.html index c64eb8b..2c8319f 100644 --- a/fas/fas/templates/home.html +++ b/fas/fas/templates/home.html @@ -23,6 +23,9 @@