From 9cd7fa55c5f86bf75ab1f546f84d62cfe76cf417 Mon Sep 17 00:00:00 2001 From: Priit Laes Date: Tue, 10 Aug 2010 17:14:46 +0300 Subject: Do not show empty table when user has no favorites --- grumpy/templates/dashboard.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/grumpy/templates/dashboard.html b/grumpy/templates/dashboard.html index 65e2860..9788c44 100644 --- a/grumpy/templates/dashboard.html +++ b/grumpy/templates/dashboard.html @@ -36,6 +36,7 @@ $(document).ready(function() { You are not listed as maintainer of any packages {% endif %}

Favorite packages

+{% if g.user.favorites %} @@ -44,4 +45,7 @@ You are not listed as maintainer of any packages {% endfor %}
Package
{{ pkg.key | e }}
+{% else %} +You do not have currently any packages marked as favorite +{% endif %} {% endblock %} -- cgit v1.2.3-65-gdbad