From e43285398026212c82f31226f7a0f58f6c1531d1 Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Fri, 6 Aug 2010 14:16:34 +0300 Subject: Added website url to configuration --- conf/grumpy.cfg | 5 ++++- grumpy/templates/_userinfo.html | 2 +- grumpy/templates/email/registration.txt | 9 ++++----- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/conf/grumpy.cfg b/conf/grumpy.cfg index 89c8921..292800b 100644 --- a/conf/grumpy.cfg +++ b/conf/grumpy.cfg @@ -12,7 +12,10 @@ SECRET_KEY='Change me' SQLALCHEMY_ECHO=False SQLALCHEMY_DATABASE_URI='postgresql://grumpy:grumpy@localhost/grumpy' -# Grumpy configuration +## Grumpy configuration +# URL of website +GRUMPY_WEBSITE_URL='http://localhost:5000' +# Default portage directory GRUMPY_PORTAGE_DIR='/usr/portage' # Username/password for tinderbox reports diff --git a/grumpy/templates/_userinfo.html b/grumpy/templates/_userinfo.html index a9827e7..e0eec2f 100644 --- a/grumpy/templates/_userinfo.html +++ b/grumpy/templates/_userinfo.html @@ -3,12 +3,12 @@ {% if g.user.regtoken -%} Warning: this user account has not yet been confirmed.
Until the account has been confirmed, You won't receive notifications and cannot add packages to your watch list. -{# TODO: provide link to "request new token" #}
{% endif -%}{# g.user.regtoken #} {% endif -%}{# g.user #} diff --git a/grumpy/templates/email/registration.txt b/grumpy/templates/email/registration.txt index 11683f9..f4e05bb 100644 --- a/grumpy/templates/email/registration.txt +++ b/grumpy/templates/email/registration.txt @@ -1,7 +1,6 @@ Hey! -You have signed up on `TODO: site address` but your account is not yet activated. -You have to follow the following link to finish the registration and -activate your account: - -{{ url_for('confirm_account', email=user.email) }}?token={{ user.regtoken }} +You have signed up on Gentoo's Grumpy ( {{ config['GRUMPY_WEBSITE_URL']}} ), +but your account is not yet activated. In order to activate your account, +please visit the following address: +{{ config['GRUMPY_WEBSITE_URL']}}{{ url_for('confirm_account', email=user.email) }}?token={{ user.regtoken }} -- cgit v1.2.3-65-gdbad