aboutsummaryrefslogtreecommitdiff
path: root/views/summary.html
blob: d30e895794a25cd14a69d68dc50d4c73ae41377a (plain) (blame)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<!DOCTYPE html>
<html>
<head>
<title>git &raquo; {{repo.name}}</title>
<link rel="stylesheet" type="text/css" href="../../static/git-arr.css"/>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name=viewport content="width=device-width, initial-scale=1">
</head>

<body class="summary">
<h1><a href="../../">git</a> &raquo; <a href="./">{{repo.name}}</a></h1>

<h2>{{repo.info.desc}}</h2>


% if repo.info.web_url or repo.info.git_url:
<table class="nice repo_info">

% if repo.info.web_url:
    <tr>
        <td class="category">website</td>
        <td><a class="explicit" href="{{repo.info.web_url}}">
                {{repo.info.web_url}}</a></td>
    </tr>
% end
% if repo.info.git_url:
    <tr>
        <td class="category">git clone </td>
        <td>{{! '<br/>'.join(repo.info.git_url.split())}}</td>
    </tr>
% end

</table>
<hr/>
% end

% if "master" in repo.branch_names():
%     kwargs = dict(repo = repo, start_ref = "refs/heads/master",
%                   limit = repo.info.commits_in_summary,
%                   shorten = shorten, repo_root = ".", offset = 0)
%     include commit-list **kwargs
<hr/>
% end

<table class="nice">
    <tr>
        <th>branches</th>
    </tr>

    % for b in repo.branch_names():
    <tr>
        <td class="main"><a href="b/{{b}}/">{{b}}</a></td>
        <td class="links">
            <a class="explicit" href="b/{{b}}/">commits</a></td>
        <td class="links">
            <a class="explicit" href="b/{{b}}/t/">tree</a></td>
    </tr>
    %end
</table>

<hr/>

% tags = list(repo.tags())
% if tags:
<table class="nice">
    <tr>
        <th>tags</th>
    </tr>

    % for name, obj_id in tags:
    <tr>
        <td><a href="c/{{obj_id}}/">{{name}}</a></td>
    </tr>
    %end
</table>
% end

</body>
</html>