Krolyxon
Commit 18ca21c

ferreniumtemplateslog.html

47 lines · 1.7 KB · HTML

1{% extends "base.html" %}
2{% block content %}
3{% include "repo_nav.html" %}
4{% include "crumbs.html" %}
5<form class="log-tools" method="get" action="{{ action }}" role="search">
6 <label class="field">
7 <span class="label">Grep</span>
8 <input type="search" name="q" value="{{ q }}" autocomplete="off" spellcheck="false" placeholder="Message, author or email">
9 </label>
10</form>
11{%- if days.is_empty() %}
12<p class="status log-note">{% if limit_reached %}[No matches in {{ scan_limit }} commits]{% else %}[No commits]{% endif %}</p>
13{%- endif %}
14{%- for day in days %}
15<section class="log-day">
16 <h2 class="label section-label">{{ day.label }}</h2>
17 <ol class="log">
18 {%- for row in day.rows %}
19 <li class="log-row">
20 <div class="log-main">
21 <a class="log-subject" href="{{ row.url }}">{{ row.subject }}</a>
22 <p class="log-meta">{{ row.author }} · <time datetime="{{ row.iso }}" title="{{ row.iso }}">{{ row.age }}</time></p>
23 </div>
24 <a class="sha log-sha" href="{{ row.url }}">{{ row.id }}</a>
25 </li>
26 {%- endfor %}
27 </ol>
28</section>
29{%- endfor %}
30{%- if limit_reached && !days.is_empty() %}
31<p class="status log-note">[Search limit reached: {{ scan_limit }} commits scanned]</p>
32{%- endif %}
33{%- if newer_url.is_some() || older_url.is_some() %}
34<nav class="pager" aria-label="Pages">
35 {%- if let Some(url) = newer_url %}
36 <a class="label" href="{{ url }}" rel="prev">&lt; {{ newer_label }}</a>
37 {%- else %}
38 <span class="label dim">&lt; Newer</span>
39 {%- endif %}
40 {%- if let Some(url) = older_url %}
41 <a class="label" href="{{ url }}" rel="next">Older &gt;</a>
42 {%- else %}
43 <span class="label dim">Older &gt;</span>
44 {%- endif %}
45</nav>
46{%- endif %}
47{% endblock %}