2021-07-24 03:30:43 +02:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ _("Aliases") }}
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block link %}
|
2021-07-24 05:30:14 +02:00
|
|
|
<a href="{{ package.getURL("packages.view") }}">{{ package.title }}</a>
|
2021-07-24 03:30:43 +02:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2022-01-08 00:27:00 +01:00
|
|
|
<a class="btn btn-primary float-right" href="{{ package.getURL("packages.alias_create_edit") }}">
|
|
|
|
{{ _("Create") }}
|
|
|
|
</a>
|
2021-07-24 03:30:43 +02:00
|
|
|
<h1>{{ _("Aliases for %(title)s by %(author)s", title=self.link(), author=package.author.display_name) }}</h1>
|
|
|
|
|
|
|
|
<div class="list-group">
|
|
|
|
{% for alias in package.aliases %}
|
|
|
|
<a class="list-group-item list-group-item-action" href="{{ alias.getEditURL() }}">
|
|
|
|
{{ alias.author }} / {{ alias.name }}
|
|
|
|
</a>
|
|
|
|
{% else %}
|
|
|
|
<div class="list-group-item">
|
2022-01-08 00:27:00 +01:00
|
|
|
{{ _("No aliases") }}
|
2021-07-24 03:30:43 +02:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{% endblock %}
|