translate view_link, view_profile

This commit is contained in:
2021-03-30 18:05:03 +02:00
parent aac653f6cb
commit c6c56a5ea2
4 changed files with 44 additions and 18 deletions
+12 -6
View File
@@ -5,24 +5,29 @@
<h1>{{ link.title }}</h1>
<table>
<tr>
<td>Beschreibung:</td>
<td>{{ fluent(key="link-description", lang=user.language)
}}:</td>
<td>{{ link.title }}</td>
</tr>
<tr>
<td>Code:</td>
<td>{{ fluent(key="link-code", lang=user.language)
}}:</td>
<td>{{ link.code }}</td>
</tr>
<tr>
<td>Kurzlink:</td>
<td>{{ fluent(key="shortlink", lang=user.language)
}}:</td>
<td><a href="{{ protocol }}://{{ host }}/{{ link.code }}">{{ protocol }}://{{ host }}/{{ link.code }}</a>
</td>
</tr>
<tr>
<td>Ziel:</td>
<td>{{ fluent(key="link-target", lang=user.language)
}}:</td>
<td>{{ link.target }}</td>
</tr>
<tr>
<td>QR-Code</td>
<td>{{ fluent(key="qr-code", lang=user.language)
}}</td>
<td><a href="/admin/download/png/{{ link.code }}" download="{{ link.title | slugify }}.png">
{{ qr | trim_start_matches(pat=
'.*?>')
@@ -33,7 +38,8 @@
</table>
{% if user.role == 2 or user.id == link.author %}
<div class="actions">
<a class="button" href="/admin/edit/link/{{ link.code }}">Editieren</a>
<a class="button" href="/admin/edit/link/{{ link.code }}">{{ fluent(key="edit-link", lang=user.language)
}}</a>
</div>
{% endif %}
</div>