Parent: [c657e4] (diff)

Child: [89e2ac] (diff)

Download this file

repo_master.html    37 lines (33 with data), 1.2 kB

 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
{% extends g.theme.master %}
{% block extra_css %}
<link rel="alternate" type="application/rss+xml" title="RSS" href="{{c.app.url}}feed.rss"/>
<link rel="alternate" type="application/atom+xml" title="Atom" href="{{c.app.url}}feed.atom"/>
{% endblock %}
{% macro clone_info(repo) %}
{% if repo %}
<label for="ro" class="grid-3">Read-only</label>
<div class="grid-16">
<input id="ro" style="width:40em;" readonly type="text"
class="selectText"
value="{{repo.readonly_clone_command()}}"/>
</div>
{% if h.has_artifact_access('write')() %}
<label for="rw" class="grid-3">Read / write</label>
<div class="grid-16">
<input id="rw" style="width:40em;" readonly type="text"
class="selectText"
value="{{repo.readwrite_clone_command()}}"/>
</div>
<br style="clear:both;"/>
{% endif %}
{% endif %}
{% endmacro %}
{% macro commit_labels(commit) %}
{% set branches, tags = commit.symbolic_ids %}
{% for b in branches %}
<span class="scm-branch-label">{{b}}</span>
{% endfor %}
{% for t in tags %}
<span class="scm-tag-label">{{t}}</span>
{% endfor %}
{% endmacro %}