diff options
Diffstat (limited to 'hyperkitty/templates/threads')
-rw-r--r-- | hyperkitty/templates/threads/category.html | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/hyperkitty/templates/threads/category.html b/hyperkitty/templates/threads/category.html index c315a2e..71c279c 100644 --- a/hyperkitty/templates/threads/category.html +++ b/hyperkitty/templates/threads/category.html @@ -1,8 +1,14 @@ {% load url from future %} {{ category_form.errors.category }} - <a class="label" title="Click to edit" - {% if category %}style="background-color:{{category.color}}"{% endif %}> + <a class="label {% if not user.is_authenticated %} disabled {% endif %}" + {% if category %}style="background-color:{{category.color}}"{% endif %} + {% if user.is_authenticated %} + title="Click to edit" + {% else %} + title="You must be logged-in to edit." + {% endif %} + > {% if category %} {{ category.name|upper }} {% else %} |