mirror of
https://github.com/correl/codereview.git
synced 2024-11-28 03:00:08 +00:00
54 lines
1.8 KiB
HTML
54 lines
1.8 KiB
HTML
|
{% extends "layouts/default.html" %}
|
||
|
{% load gravatar %}
|
||
|
|
||
|
{% load vcs %}
|
||
|
{% block content %}
|
||
|
<h2>Commit Log</h2>
|
||
|
Branches:
|
||
|
<ul>
|
||
|
{% for branch, commit in vcs.branches.items %}
|
||
|
<li><a href="{% url codereview.browser.views.log repository=repository %}?c={{branch}}">{{ branch }}</a> ({{commit.id}})</li>
|
||
|
{% endfor %}
|
||
|
</ul>
|
||
|
<table class="vcs-log">
|
||
|
<tr>
|
||
|
<th>Commit Date</th>
|
||
|
<th>Author</th>
|
||
|
<th>Commit Message</th>
|
||
|
</tr>
|
||
|
{% for commit in log %}
|
||
|
<tr>
|
||
|
<td class="date">{{ commit.authored_date }}</td>
|
||
|
<td class="author">
|
||
|
<img src="{{ commit.author_email|gravatar:16 }}" />
|
||
|
{{ commit.author }}
|
||
|
</td>
|
||
|
<td class="message">
|
||
|
{% for branch, c in vcs.branches.items %}
|
||
|
{% if commit.id == c.id %}
|
||
|
<span class="marker branch"><a href="{% url codereview.browser.views.log repository=repository %}?c={{ branch }}">{{ branch }}</a></span>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
{% for tag, c in vcs.tags.items %}
|
||
|
{% if commit.id == c.id %}
|
||
|
<span class="marker tag"><a href="{% url codereview.browser.views.log repository=repository %}?c={{ tag }}">{{ tag }}</a></span>
|
||
|
{% endif %}
|
||
|
{% endfor %}
|
||
|
<a href="{% url codereview.browser.views.view repository=repository ref=commit.id %}">{{ commit.message|oneline }}</a>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{% endfor %}
|
||
|
</table>
|
||
|
<div class="vcs-nav">
|
||
|
{% if older %}
|
||
|
<a href="{% url codereview.browser.views.log repository=repository %}?c={{ ref }}&o={{ older }}">Older</a>
|
||
|
{% endif %}
|
||
|
{% if offset and older %}
|
||
|
·
|
||
|
{% endif %}
|
||
|
{% if offset %}
|
||
|
<a href="{% url codereview.browser.views.log repository=repository %}?c={{ ref }}&o={{ newer }}">Newer</a>
|
||
|
{% endif %}
|
||
|
</div>
|
||
|
{% endblock %}
|