diff --git a/fas/fas/help.py b/fas/fas/help.py index 17f6327..d01fdbe 100644 --- a/fas/fas/help.py +++ b/fas/fas/help.py @@ -5,20 +5,21 @@ from turbogears.database import session from fas.auth import * class Help(controllers.Controller): + help = { 'none' : ['Error', '

We could not find that help item

'], + 'user_ircnick' : ['IRC Nick (Optional)', '

IRC Nick is used to identify yourself on irc.freenode.net. Please register your nick on irc.freenode.net first, then fill this in so people can find you online when they need to

'], + 'user_primary_email' : ['Primary Email (Required)', '

This email address should be your prefered email contact and will be used to send various official emails to. This is also where your @fedoraproject.org email will get forwarded

'], + 'user_human_name' : ['Full Name (Required)', '

Your Human Name or "real life" name

'], + 'user_gpg_keyid' : ['GPG Key', '

Only required for users signing the CLA. It is generally used to prove that a message or email came from you or to encrypt information so that only the recipients can read it. See http://fedoraproject.org/wiki/Infrastructure/AccountSystem/CLAHowTo for more information

'], + 'user_telephone' : ['Telephone', '

Only required for users signing the CLA. Sometimes during a time of emergency someone from the Fedora Project may need to contact you. For more information see our Privacy Policy

'], + } + def __init__(self): '''Create a JsonRequest Controller.''' @expose(template="fas.templates.help") def get_help(self, id='none'): try: - help = { 'none' : ['Error', 'We could not find that help item'], - 'user_ircnick' : ['IRC Nick (Optional)', 'IRC Nick is used to identify yourself on irc.freenode.net. Please register your nick on irc.freenode.net first, then fill this in so people can find you online when they need to'], - 'user_primary_email' : ['Primary Email (Required)', 'This email address should be your prefered email contact and will be used to send various official emails to. This is also where your @fedoraproject.org email will get forwarded'], - 'user_human_name' : ['Full Name (Required)', 'Your Human Name or "real life" name'], - 'user_gpg_keyid' : ['GPG Key', 'Only required for users signing the CLA. It is generally used to prove that a message or email came from you or to encrypt information so that only the recipients can read it. See http://fedoraproject.org/wiki/Infrastructure/AccountSystem/CLAHowTo for more information'], - 'user_telephone' : ['Telephone', 'Only required for users signing the CLA. Sometimes during a time of emergency someone from the Fedora Project may need to contact you. For more information see our Privacy Policy'], - } + helpItem = self.help[id] except KeyError: - return dict(title='Error', help='We could not find that help item') - return dict(help=help[id]) - + return dict(title='Error', helpItem=['Error', '

We could not find that help item

']) + return dict(help=helpItem) diff --git a/fas/fas/templates/help.html b/fas/fas/templates/help.html index 1c862e5..b3dd861 100644 --- a/fas/fas/templates/help.html +++ b/fas/fas/templates/help.html @@ -7,8 +7,6 @@ ${help[0]} -

- ${help[1]} -

+ ${XML(help[1])}