text/html
•
1.58 KB
•
46 lines
<!DOCTYPE html>
<html>
<head>
<title>{{ owner.name }}/{{ project.name }}</title>
</head>
<body>
{% include "sidebar.html" %}
<main>
<section>
<div class="page-header">
<h1 class="project-header">
<a href="{{ owner.uri() }}">{{ owner.name }}</a> /
<a href="{{ project.uri() }}">{{ project.name }}</a> /
<a href="{{ project.uri_branches() }}">branches</a>
</h1>
</div>
<div class="card">
<div class="branch-list">
{% if branches.len() > 0 %}
{% for info in branches %}
<h5><a href="{{ project.uri_tree(info.branch_name, "") }}">{{ info.branch_name }}</a></h5>
<div class="commit-bar">
{% if let Some(commit) = info.commits.first() %}
<div class="commit">
<span class="commit-author" title="{{ commit.author }}">{{ commit.author }}</span>
<span class="commit-message" title="{{ commit.message }}">{{ commit.message }}</span>
<span class="commit-id">{{ commit.id }}</span>
<span class="commit-time">{{ commit.relative_time() }}</span>
<a href="{{ project.uri_log(info.branch_name, 0) }}" class="commit-count">⟲ {{ info.commit_count }} commit{% if info.commit_count != 1 %}s{% endif %}</a>
</div>
{% endif %}
</div>
{% endfor %}
{% else %}
<p>No branches exist yet</p>
{% endif %}
</div>
</div>
</section>
</main>
</body>
</html>