2021-02-04 15:07:55 +01:00
|
|
|
{% extends "admin.html" %}
|
|
|
|
|
|
|
|
{% block admin %}
|
2021-02-09 14:19:48 +01:00
|
|
|
<div class="center">
|
|
|
|
<h1>{{ link.title }}</h1>
|
|
|
|
<table>
|
|
|
|
<tr>
|
2021-03-30 18:05:03 +02:00
|
|
|
<td>{{ fluent(key="link-description", lang=user.language)
|
|
|
|
}}:</td>
|
2021-02-09 14:19:48 +01:00
|
|
|
<td>{{ link.title }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2021-03-30 18:05:03 +02:00
|
|
|
<td>{{ fluent(key="link-code", lang=user.language)
|
|
|
|
}}:</td>
|
2021-02-09 14:19:48 +01:00
|
|
|
<td>{{ link.code }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2021-03-30 18:05:03 +02:00
|
|
|
<td>{{ fluent(key="shortlink", lang=user.language)
|
|
|
|
}}:</td>
|
2021-02-14 22:28:34 +01:00
|
|
|
<td><a href="{{ protocol }}://{{ host }}/{{ link.code }}">{{ protocol }}://{{ host }}/{{ link.code }}</a>
|
|
|
|
</td>
|
2021-02-09 14:19:48 +01:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2021-03-30 18:05:03 +02:00
|
|
|
<td>{{ fluent(key="link-target", lang=user.language)
|
|
|
|
}}:</td>
|
2021-02-09 14:19:48 +01:00
|
|
|
<td>{{ link.target }}</td>
|
|
|
|
</tr>
|
|
|
|
<tr>
|
2021-03-30 18:05:03 +02:00
|
|
|
<td>{{ fluent(key="qr-code", lang=user.language)
|
|
|
|
}}</td>
|
2021-02-09 14:19:48 +01:00
|
|
|
<td><a href="/admin/download/png/{{ link.code }}" download="{{ link.title | slugify }}.png">
|
|
|
|
{{ qr | trim_start_matches(pat=
|
|
|
|
'.*?>')
|
|
|
|
| safe }}
|
|
|
|
</a>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2021-02-14 22:28:34 +01:00
|
|
|
{% if user.role == 2 or user.id == link.author %}
|
2021-02-09 14:19:48 +01:00
|
|
|
<div class="actions">
|
2021-03-30 18:05:03 +02:00
|
|
|
<a class="button" href="/admin/edit/link/{{ link.code }}">{{ fluent(key="edit-link", lang=user.language)
|
|
|
|
}}</a>
|
2021-02-09 14:19:48 +01:00
|
|
|
</div>
|
2021-02-14 22:28:34 +01:00
|
|
|
{% endif %}
|
2021-02-08 20:44:32 +01:00
|
|
|
</div>
|
2021-02-04 15:07:55 +01:00
|
|
|
{% endblock %}
|