40 lines
1.1 KiB
HTML
40 lines
1.1 KiB
HTML
{% extends "admin.html" %}
|
|
|
|
{% block admin %}
|
|
<div class="center">
|
|
<h1>{{ link.title }}</h1>
|
|
<table>
|
|
<tr>
|
|
<td>Beschreibung:</td>
|
|
<td>{{ link.title }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Code:</td>
|
|
<td>{{ link.code }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Kurzlink:</td>
|
|
<td><a href="{{ protocol }}://{{ host }}/{{ link.code }}">{{ protocol }}://{{ host }}/{{ link.code }}</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Ziel:</td>
|
|
<td>{{ link.target }}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>QR-Code</td>
|
|
<td><a href="/admin/download/png/{{ link.code }}" download="{{ link.title | slugify }}.png">
|
|
{{ qr | trim_start_matches(pat=
|
|
'.*?>')
|
|
| safe }}
|
|
</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
{% if user.role == 2 or user.id == link.author %}
|
|
<div class="actions">
|
|
<a class="button" href="/admin/edit/link/{{ link.code }}">Editieren</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
{% endblock %} |