Child: [902c10] (diff)

Download this file

index.html    37 lines (34 with data), 1.3 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
37
{% extends 'jinja_master/master.html' %}
{% block title %}
{% if c.app.repo %}
Git Repository: {{c.app.repo.name}}
{% else %}
Git Repository
{% endif %}
{% endblock %}
{% block header %}{{c.app.config.options.mount_label}}{% endblock %}
{% block content %}
<h2>Project: {{c.project.shortname}}</h2>
{% if c.app.repo %}
<p>
Read access: <code>git clone git://{{c.app.repo.scm_url_path}} {{c.project.name}}</code><br/>
Read/write access: <code>git clone ssh://{{c.user == c.user.anonymous() and 'USERNAME' or c.user.username}}@{{c.app.repo.scm_url_path}} {{c.project.name}}</code><br/>
{% if allow_fork and c.user != c.user.anonymous() %}
<form action="{{c.app.repo.url()}}fork" method="GET">
<input type="submit" value="Fork"/>
</form>
{% endif %}
</p>
{% endif %}
<div style="clear:both">&nbsp;</div>
{% if log %}
<h2>Recent Commits{% if branch %} on {{branch}}{% endif %}</h2>
{{c.log_widget.display(value=log, show_paging=False,
limit=limit, page=page, count=count)}}
{% if int(count) > int(limit) %}
<a href="log?page=1">More</a>
{% endif %}
{% else %}
<b>No (more) commits</b>
{% endif %}
{% endblock %}