diff options
Diffstat (limited to 'templates/gitrefinery/repos.html')
-rw-r--r-- | templates/gitrefinery/repos.html | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/templates/gitrefinery/repos.html b/templates/gitrefinery/repos.html new file mode 100644 index 0000000..6e6a801 --- /dev/null +++ b/templates/gitrefinery/repos.html @@ -0,0 +1,59 @@ +{% extends "base.html" %} +{% load i18n %} +{% load static %} + +{% comment %} + + git-refinery-web - repo list page template + + Copyright (C) 2014 Intel Corporation + Licensed under the MIT license, see COPYING.MIT for details + +{% endcomment %} + + +<!-- +{% block title_append %} - repositories{% endblock %} +--> + + + +{% block content %} +{% autoescape on %} + +{% if repos %} + + <table class="table table-striped table-bordered layerstable"> + <thead> + <tr> + <th>Repo name</th> + <th class="col-md-4">Description</th> + <th>Path</th> + </tr> + </thead> + + <tbody> + {% for repo in repos %} + <tr> + <td><a href="{% url 'repository' repo.name %}">{{ repo.name }}</a></td> + <td>{{ repo.description }}</td> + <td>{{ repo.path }}</td> + </tr> + {% endfor %} + + </tbody> + </table> + +{% else %} + <p>No repositories in database.</p> +{% endif %} +{% if user.is_authenticated %} +<a href="{% url 'add_repository' %}" class="btn btn-primary">Add repository</a> +<a href="{% url 'group_authors' %}" class="btn btn-default">Update author groups</a> +{% endif %} +<a href="{% url 'stats' %}" class="btn btn-default">Stats</a> + +{% endautoescape %} + +{% endblock %} + |