aboutsummaryrefslogtreecommitdiffstats
path: root/templates/gitrefinery/repos.html
blob: 6e6a8016b23b175ed3590f6cb70e8dc9d4ba5b04 (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
48
49
50
51
52
53
54
55
56
57
58
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 %}