mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-02-09 06:49:47 +00:00
* enable jinja autoescape by default for jinja raw generator * allow to search by multiple strings (OR) * replace test templates by symlink
69 lines
2.6 KiB
Django/Jinja
69 lines
2.6 KiB
Django/Jinja
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>{{ repository }}</title>
|
|
|
|
{% include "style.jinja2" %}
|
|
|
|
{% if extended_report %}
|
|
{% include "sorttable.jinja2" %}
|
|
{% include "search.jinja2" %}
|
|
{% endif %}
|
|
</head>
|
|
|
|
<body>
|
|
<div class="root">
|
|
{% if extended_report %}
|
|
<h1>Archlinux user repository</h1>
|
|
|
|
<section class="element">
|
|
{% if pgp_key is not none %}
|
|
<p>This repository is signed with <a href="http://keys.gnupg.net/pks/lookup?search=0x{{ pgp_key }}&fingerprint=on&op=index" title="key search">{{ pgp_key }}</a> by default.</p>
|
|
{% endif %}
|
|
|
|
<code>
|
|
$ cat /etc/pacman.conf<br>
|
|
[{{ repository }}]<br>
|
|
Server = {{ link_path }}<br>
|
|
SigLevel = Database{% if has_repo_signed %}Required{% else %}Never{% endif %} Package{% if has_package_signed %}Required{% else %}Never{% endif %} TrustedOnly
|
|
</code>
|
|
</section>
|
|
|
|
{% include "search-line.jinja2" %}
|
|
{% endif %}
|
|
|
|
<section class="element">
|
|
<table class="sortable search-table">
|
|
<tr class="header">
|
|
<th>package</th>
|
|
<th>version</th>
|
|
<th>archive size</th>
|
|
<th>installed size</th>
|
|
<th>build date</th>
|
|
</tr>
|
|
|
|
{% for package in packages %}
|
|
<tr class="package">
|
|
<td class="include-search"><a href="{{ link_path }}/{{ package.filename }}" title="{{ package.name }}">{{ package.name }}</a></td>
|
|
<td>{{ package.version }}</td>
|
|
<td>{{ package.archive_size }}</td>
|
|
<td>{{ package.installed_size }}</td>
|
|
<td>{{ package.build_date }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</section>
|
|
|
|
{% if extended_report %}
|
|
<footer>
|
|
<ul class="navigation">
|
|
{% if homepage is not none %}
|
|
<li><a href="{{ homepage }}" title="homepage">Homepage</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
</footer>
|
|
{% endif %}
|
|
</div>
|
|
</body>
|
|
</html>
|