diff options
Diffstat (limited to 'grumpy/templates/dashboard.html')
-rw-r--r-- | grumpy/templates/dashboard.html | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/grumpy/templates/dashboard.html b/grumpy/templates/dashboard.html index 49d539f..65e2860 100644 --- a/grumpy/templates/dashboard.html +++ b/grumpy/templates/dashboard.html @@ -5,9 +5,18 @@ {{ importer.load_js('jquery.dataTables.min') }} <script type="text/javascript"> $(document).ready(function() { - $('#owned_pkgs').dataTable(); + $('#owned_pkgs').dataTable({ + 'bJQueryUI': true, + 'sPaginationType': "full_numbers" + }); + $('#favorites').dataTable({ + 'bJQueryUI': true, + 'sPaginationType': "full_numbers" + }); } ); </script> +{{ importer.load_css('datatable') }} +{{ importer.load_css('ui-lightness/jquery-ui') }} {% endblock %} {% block body %} <h2>Hi, {{ g.user.email.split('@')[0] }}</h2> @@ -26,4 +35,13 @@ $(document).ready(function() { {% else %} You are not listed as maintainer of any packages {% endif %} +<h3>Favorite packages</h3> +<table id="favorites"> +<thead> + <tr><th>Package</th></tr> +</thead> +{% for pkg in g.user.favorites %} +<tr><td>{{ pkg.key | e }}</td></tr> +{% endfor %} +</table> {% endblock %} |