diff options
-rw-r--r-- | conf/grumpy.cfg | 5 | ||||
-rw-r--r-- | grumpy/templates/_userinfo.html | 2 | ||||
-rw-r--r-- | 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 @@ <ul> <li>{{ g.user.email.split('@')[0] | e }} <li><a href="{{ url_for('logout') }}">Log out</a> +</ul> {% if g.user.regtoken -%} <span class="warning"> Warning: this user account has not yet been confirmed.<br /> 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" #} </span> {% 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 }} |