blob: 65e286090b770c7ae94e06d9156c4d7a1989a7f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{% extends "layout.html" %}
{% block title %}Your Dashboard{% endblock %}
{% block script %}
{{ importer.load_js('jquery.min') }}
{{ importer.load_js('jquery.dataTables.min') }}
<script type="text/javascript">
$(document).ready(function() {
$('#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>
<h3>Managed packages</h3>
{% if pkgs %}
<table id="owned_pkgs">
<thead>
<tr><th>Package</th></tr>
</thead>
<tbody>
{% for pkg in pkgs %}
<tr><td>{{ pkg.key | e }}</td></tr>
{% endfor %}
</tbody>
</table>
{% 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 %}
|