We now parse/split all PKGBUILD fields properly, so all package names that end up in the templates should be valid already.
42 lines
1.1 KiB
HTML
42 lines
1.1 KiB
HTML
{% extends "layout.html" %}
|
|
{% block title %}Group: {{ name }}{% endblock %}
|
|
{% block inner_content %}
|
|
|
|
<div class="card mb-3">
|
|
<div class="card-header">
|
|
<h4 class="card-title">Group: <a href="{{ url_for('groups', group_name=name) }}">{{ name }}</a></h4>
|
|
<h6 class="card-subtitle mb-2 text-muted">{{ packages|length }} packages</h6>
|
|
</div>
|
|
<div class="card-body">
|
|
|
|
{% if not packages %}
|
|
Group doesn't exist
|
|
{% else %}
|
|
<dl class="row">
|
|
|
|
<dt class="col-sm-3 text-sm-end">Installation:</dt>
|
|
<dd class="col-sm-9">
|
|
<div class="copyable rounded">
|
|
<div class="highlight">
|
|
<pre><code>pacman -S {{ name }}</code></pre>
|
|
</div>
|
|
<button class="btn" aria-label="Copy to clipboard" onclick="App.copyToClipboard(this);">📋</button>
|
|
</div>
|
|
</dd>
|
|
|
|
<dt class="col-sm-3 text-sm-end">Packages:</dt>
|
|
<dd class="col-sm-9">
|
|
<ul class="list-unstyled">
|
|
{% for p in packages %}
|
|
<li><a href="{{ package_url(p) }}">{{ p.name }}</a></li>
|
|
{% endfor %}
|
|
</ul>
|
|
</dd>
|
|
</dl>
|
|
{% endif %}
|
|
|
|
</div>
|
|
</div>
|
|
|
|
{% endblock %}
|