diff options
author | 2010-08-10 17:14:46 +0300 | |
---|---|---|
committer | 2010-08-10 17:14:46 +0300 | |
commit | 9cd7fa55c5f86bf75ab1f546f84d62cfe76cf417 (patch) | |
tree | 9645652c03b4ec43d915e6c3b4d18ab2232f608c | |
parent | Use GRUMPY_SERVER_ADDR conf variable and fix emails (diff) | |
download | gsoc2010-grumpy-9cd7fa55c5f86bf75ab1f546f84d62cfe76cf417.tar.gz gsoc2010-grumpy-9cd7fa55c5f86bf75ab1f546f84d62cfe76cf417.tar.bz2 gsoc2010-grumpy-9cd7fa55c5f86bf75ab1f546f84d62cfe76cf417.zip |
Do not show empty table when user has no favorites
-rw-r--r-- | grumpy/templates/dashboard.html | 4 |
1 files changed, 4 insertions, 0 deletions
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 %} <h3>Favorite packages</h3> +{% if g.user.favorites %} <table id="favorites"> <thead> <tr><th>Package</th></tr> @@ -44,4 +45,7 @@ You are not listed as maintainer of any packages <tr><td>{{ pkg.key | e }}</td></tr> {% endfor %} </table> +{% else %} +You do not have currently any packages marked as favorite +{% endif %} {% endblock %} |