2010-11-19 05:12:29 +00:00
|
|
|
{% extends "layouts/default.html" %}
|
|
|
|
{% load gravatar %}
|
|
|
|
|
|
|
|
{% load vcs %}
|
|
|
|
{% block content %}
|
|
|
|
<h2>Commit Log</h2>
|
|
|
|
Branches:
|
|
|
|
<ul>
|
2010-11-19 21:16:35 +00:00
|
|
|
{% for branch, commit in repo.branches.items %}
|
|
|
|
<li><a href="{% url codereview.browser.views.log repository=repository.name %}?c={{branch}}">{{ branch }}</a> ({{commit.id}})</li>
|
2010-11-19 05:12:29 +00:00
|
|
|
{% 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">
|
2010-11-19 21:16:35 +00:00
|
|
|
{% for branch, c in repo.branches.items %}
|
2010-11-19 05:12:29 +00:00
|
|
|
{% if commit.id == c.id %}
|
2010-11-19 21:16:35 +00:00
|
|
|
<span class="marker branch"><a href="{% url codereview.browser.views.log repository=repository.name %}?c={{ branch }}">{{ branch }}</a></span>
|
2010-11-19 05:12:29 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2010-11-19 21:16:35 +00:00
|
|
|
{% for tag, c in repo.tags.items %}
|
2010-11-19 05:12:29 +00:00
|
|
|
{% if commit.id == c.id %}
|
2010-11-19 21:16:35 +00:00
|
|
|
<span class="marker tag"><a href="{% url codereview.browser.views.log repository=repository.name %}?c={{ tag }}">{{ tag }}</a></span>
|
2010-11-19 05:12:29 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endfor %}
|
2010-11-19 21:16:35 +00:00
|
|
|
<a href="{% url codereview.browser.views.view repository=repository.name ref=commit.id %}">{{ commit.message|oneline }}</a>
|
2010-11-19 05:12:29 +00:00
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</table>
|
|
|
|
<div class="vcs-nav">
|
|
|
|
{% if older %}
|
2010-11-19 21:16:35 +00:00
|
|
|
<a href="{% url codereview.browser.views.log repository=repository.name %}?c={{ ref }}&o={{ older }}">Older</a>
|
2010-11-19 05:12:29 +00:00
|
|
|
{% endif %}
|
|
|
|
{% if offset and older %}
|
|
|
|
·
|
|
|
|
{% endif %}
|
|
|
|
{% if offset %}
|
2010-11-19 21:16:35 +00:00
|
|
|
<a href="{% url codereview.browser.views.log repository=repository.name %}?c={{ ref }}&o={{ newer }}">Newer</a>
|
2010-11-19 05:12:29 +00:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|