{% import 'packages/details_link.html.jinja' as details %}

{{ pkg.pkgname }} {{ pkg.full_version }}

{% if pkg.packager %}
{% endif %} {% if pkg.pkgname == pkg.pkgbase %} {% with splits = pkg.split_packages() %}{% if splits %} {% endif %}{% endwith %} {% else %} {% with base = pkg.base_package() %}{% if base %} {% else %} {% endif %}{% endwith %} {% endif %} {% with groups = pkg.groups.all() %}{% if groups %} {% endif %}{% endwith %} {% with all_related = pkg.provides.all() %}{% if all_related %} {% endif %}{% endwith %} {% with all_related = pkg.replaces.all() %}{% if all_related %} {% endif %}{% endwith %} {% with all_related = pkg.conflicts.all() %}{% if all_related %} {% endif %}{% endwith %} {% with rev_conflicts = pkg.reverse_conflicts() %}{% if rev_conflicts %} {% endif %}{% endwith %} {% with maints = pkg.maintainers %} {% endwith %} {% if pkg.signature %}{% else %}{% endif %} {% if user.is_authenticated %}{% with flag_request = pkg.flag_request() %}{% if flag_request %}{% endif %}{% endwith %}{% endif %}
Architecture: {{ pkg.arch.name }}
Repository: {{ pkg.repo.name|capfirst }}
Split Packages: {% for s in splits %}{{ details.details_link(s) }}{% if not loop.last %}, {% endif %}{% endfor %}
Base Package:{{ details.details_link(base) }}{{ pkg.pkgbase }}
Description: {{ pkg.pkgdesc|default("") }}
Upstream URL: {% if pkg.url %}{% endif %}
License(s): {{ pkg.licenses.all()|join(", ") }}
Groups: {% for g in groups %} {{ g.name }}{% if not loop.last %}, {% endif %}{% endfor %}
Provides: {% include "packages/details_relatedto.html.jinja" %}
Replaces: {% include "packages/details_relatedto.html.jinja" %}
Conflicts: {% include "packages/details_relatedto.html.jinja" %}
Reverse Conflicts: {% for conflict in rev_conflicts %} {{ details.details_link(conflict) }}{% if not loop.last %}, {% endif %}{% endfor %}
Maintainers:{% if maints %}{% for m in maints %} {{ m.get_full_name() }}
{% endfor %}{% else %}Orphan{% endif %}
Package Size: {{ pkg.compressed_size|filesizeformat }}
Installed Size: {{ pkg.installed_size|filesizeformat }}
Last Packager: {% with pkgr = pkg.packager %}{% if pkgr %} {{ pkgr.get_full_name() }} {% else %}{{ pkg.packager_str }}{% endif %}{% endwith %}
Build Date: {{ pkg.build_date|date("DATETIME_FORMAT") }} UTC
Signed By: {% with signer = pkg.signer %}{% if signer %}{{ pgp_key_link(pkg.signature.key_id, signer.get_full_name())|safe }}{% else %}Unknown ({{ pgp_key_link(pkg.signature.key_id)|safe }}){% endif %}{% endwith %}
Signature Date: {{ pkg.signature.creation_time|date("DATETIME_FORMAT") }} UTC
Signed By: Unsigned
Last Updated: {{ pkg.last_update|date("DATETIME_FORMAT") }} UTC
Last Flag Request: From {{ flag_request.who() }} on {{ flag_request.created|date }}:
{{ flag_request.message|linebreaksbr|default("{no message}") }}
{% with deps = pkg.get_depends() %}

Dependencies ({{deps|length}})

{% if deps %}
    {% for depend in deps %}{% include "packages/details_depend.html.jinja" %}{% endfor %}
{% endif %}
{% endwith %} {% with rqdby = pkg.get_requiredby() %}

Required By ({{rqdby|length}})

{% if rqdby %}
    {% for req in rqdby %}{% include "packages/details_requiredby.html.jinja" %}{% endfor %}
{% endif %}
{% endwith %}