From a68a7e680688d5dd90c3f110a33e2ac5bc787ed3 Mon Sep 17 00:00:00 2001 From: Matt Claypotch Date: Mon, 10 Jan 2011 01:51:42 -0800 Subject: [PATCH] Hiding edit UI when submissions/editing is disabled --- apps/games/templates/games/mine.html | 6 +++++- apps/games/templates/games/view.html | 4 ++-- apps/static/templates/static/home.html | 2 ++ templates/base.html | 2 ++ 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/apps/games/templates/games/mine.html b/apps/games/templates/games/mine.html index 42d0edb..0d00621 100644 --- a/apps/games/templates/games/mine.html +++ b/apps/games/templates/games/mine.html @@ -8,7 +8,9 @@

My Games

{{ game.name }}

{{ game.description|truncatewords_html:40 }}

diff --git a/apps/static/templates/static/home.html b/apps/static/templates/static/home.html index 88467d3..0b0091f 100644 --- a/apps/static/templates/static/home.html +++ b/apps/static/templates/static/home.html @@ -8,9 +8,11 @@

< GAME_ON >

{% flatblock "home" 3600 %}
+ {% if settings.ALLOW_SUBMISSIONS %}

ENTER NOW
+ {% endif %} {% endblock %} \ No newline at end of file diff --git a/templates/base.html b/templates/base.html index 33c1901..a970e63 100644 --- a/templates/base.html +++ b/templates/base.html @@ -25,7 +25,9 @@
{% if user.is_authenticated %} signed in as {{ user.username }} | + {% if settings.ALLOW_SUBMISSIONS or user.game_set.all %} your games| + {% endif %} logout {% else %}