{#
  Copyright: (c) 2014 by Petr Zemek <s3rvac@gmail.com> and contributors
  License: BSD, see LICENSE for more details
#}

{% extends "base.html" %}

{% block body %}
<h2>Repository</h2>
<p>
	{{ repo_name }}
</p>

<h2>Branches on Remote '{{ remote }}'</h2>
<ul>
	{% for branch in branches %}
	<li>
		{{ branch.name }}
		<ul>
			<li>{{ branch.commit }}</li>
		</ul>
	</li>
	{% endfor %}
</ul>
{% endblock %}

{#
  Copyright: (c) 2014 by Petr Zemek <s3rvac@gmail.com> and contributors
  License: BSD, see LICENSE for more details
#}

{% extends "base.html" %}

{% macro display_commit(commit) -%}
	<div>
		{{ commit.short_hash() }}
		{{ commit.date }}
		{{ commit.author }}
		&lt;{{ commit.email }}&gt;
		{{ commit.subject }}
	</div>
{%- endmacro %}

{% block body %}
<h2>Repository</h2>
<p>
	{{ repo_name }}
</p>

<h2>Branches on Remote '{{ remote }}'</h2>
<ul>
	{% for branch in branches %}
	<li>
		{{ branch.name }}
		<ul>
			<li>{{ display_commit(branch.commit) }}</li>
		</ul>
	</li>
	{% endfor %}
</ul>
{% endblock %}

Add a macro for displaying a commit.
web: Add a macro for displaying a commit.
