samjeston / openhub Public
Sam Jeston Working vertical 9aa3c45 · History
28 lines· 1.2 KB ·HTML
Raw
1{% extends "layout_repo.html" %}
2{% block page_title %}Commits · {% endblock %}
3{% block content %}
4{% let base = r.base() %}
5<div class="code-toolbar">
6 {% let refsel = view.refsel %}
7 {% include "partials/refsel.html" %}
8 {% if !view.path.is_empty() %}
9 <span class="toolbar-text">History for <a href="{{ base }}/blob/{{ crate::web::fmt::urlpath(view.refname) }}/{{ crate::web::fmt::urlpath(view.path) }}"><strong class="text-mono">{{ view.path }}</strong></a></span>
10 {% endif %}
11</div>
12{% if view.groups.is_empty() %}
13<div class="blankslate">
14 {{ crate::web::fmt::icon("history")|safe }}
15 <h3>No commits found</h3>
16 <p>There is no history for this path on {{ view.refname }}.</p>
17</div>
18{% else %}
19{% let groups = view.groups %}
20{% include "partials/commit_list.html" %}
21{% endif %}
22{% if view.newer_href.is_some() || view.older_href.is_some() %}
23<nav class="pagination">
24 {% if let Some(h) = view.newer_href %}<a class="btn" href="{{ h }}">Newer</a>{% else %}<span class="btn disabled">Newer</span>{% endif %}
25 {% if let Some(h) = view.older_href %}<a class="btn" href="{{ h }}">Older</a>{% else %}<span class="btn disabled">Older</span>{% endif %}
26</nav>
27{% endif %}
28{% endblock %}