mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-22 18:19:34 +00:00
Added a link to view external version from attachment edit
This commit is contained in:
parent
ae5dfbfc52
commit
41ae9b5f75
3 changed files with 21 additions and 2 deletions
|
|
@ -58,7 +58,7 @@
|
|||
<td><div class="btn-group" role="group" aria-label="">
|
||||
<a {% if attachment.hasExternal() %}href="{{ attachment.externalPath }}"{% endif %} target="_blank"
|
||||
class="btn btn-secondary {% if not attachment.hasExternal() %}disabled{% endif %}"
|
||||
data-turbo="false" title="View at {{ attachment.host }}" rel="noopener"> {# TODO: translate #}
|
||||
data-turbo="false" title="{% trans with {"%host%": attachment.host} %}attachment.view_external.view_at{% endtrans %}" rel="noopener">
|
||||
<i class="fas fa-globe fa-fw"></i>
|
||||
</a>
|
||||
<a {% if attachment_manager.isInternalFileExisting(attachment) %}href="{{ entity_url(attachment, 'file_view') }}"{% endif %} target="_blank"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue