Repository : http://git.fedorahosted.org/cgit/copr.git
On branch : master
commit f52e38e29f122d998091dca5ecec21e4458b501c Author: Miroslav Suchý msuchy@redhat.com Date: Thu Oct 1 16:55:45 2015 +0200
make "add group" page nicer
.../coprs/templates/coprs/add_group.html | 47 ++++++++++++++++---- 1 files changed, 38 insertions(+), 9 deletions(-)
diff --git a/frontend/coprs_frontend/coprs/templates/coprs/add_group.html b/frontend/coprs_frontend/coprs/templates/coprs/add_group.html index a86c400..3475ba6 100644 --- a/frontend/coprs_frontend/coprs/templates/coprs/add_group.html +++ b/frontend/coprs_frontend/coprs/templates/coprs/add_group.html @@ -19,14 +19,43 @@
<h1>Add a New Group</h1>
-<p> - {% for team in teams %} - <div> - {{ team }} - </div> - {% else %} - <h2>You are not listed in any FAS group.</h2> - {% endfor %} -</p> +{% if teams %} + <table class="datatable table table-striped table-bordered"> + <thead> + <tr> + <th>FAS Group</th> + <th>Copr Group Alias</th> + </tr> + </thead> + <tbody> + {% for team in teams %} + <tr> + <td><a href="https://admin.fedoraproject.org/accounts/group/view/{{team}}">{{ team }}</a></td> + <td> + {% if copr_groups[team] %} + {{ copr_groups[team] }} + {% else %} + <a href="{{ url_for('group_ns.activate_group', fas_group=team) }}"><span class="pficon pficon-add-circle-o"> Activate this group.</a> + {% endif %} + </td> + </tr> + {% endfor %} + </tbody> + </table> +{% else %} + <h3>You are not listed in any FAS group.</h3> +{% endif %} + +<script> + // Initialize Datatables + $(document).ready(function() { + $('.datatable').dataTable({ + "order": [[ 0, "desc" ]] + }); + }); +</script> + + +
{% endblock %}
copr-commits@lists.fedorahosted.org