aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/templates
diff options
context:
space:
mode:
authorRasmus Larsson <flame@constantine.(none)>2011-07-09 15:12:00 +0200
committerRasmus Larsson <flame@constantine.(none)>2011-07-09 15:12:00 +0200
commit13677ef97a24fea19fe8df1cce4812c18623d88f (patch)
treeba6ff42f13be8c2503cd57481b6234115ef98fea /mediagoblin/templates
parente6fd112d429d1fcc5994ff19c61bd67367a33ce5 (diff)
downloadmediagoblin-13677ef97a24fea19fe8df1cce4812c18623d88f.tar.lz
mediagoblin-13677ef97a24fea19fe8df1cce4812c18623d88f.tar.xz
mediagoblin-13677ef97a24fea19fe8df1cce4812c18623d88f.zip
Added configuration variable to toggle registrations, if disabled the registration page redirects to index and no link to register is shown
Diffstat (limited to 'mediagoblin/templates')
-rw-r--r--mediagoblin/templates/mediagoblin/root.html2
1 files changed, 2 insertions, 0 deletions
diff --git a/mediagoblin/templates/mediagoblin/root.html b/mediagoblin/templates/mediagoblin/root.html
index 5b744999..ad9aabcb 100644
--- a/mediagoblin/templates/mediagoblin/root.html
+++ b/mediagoblin/templates/mediagoblin/root.html
@@ -29,10 +29,12 @@
If you have an account, you can
<a href="{{ request.urlgen('mediagoblin.auth.login') }}">Login</a>.
</p>
+ {% if allow_registration %}
<p>
If you don't have an account, please
<a href="{{ request.urlgen('mediagoblin.auth.register') }}">Register</a>.
</p>
+ {% endif %}
{% endif %}
{# temporarily, an "image gallery" that isn't one really ;) #}