add target="_blank" to links

This commit is contained in:
Xu 2024-02-18 11:34:47 +01:00 committed by Igor Scheller
parent 759a4f9a14
commit ec7fb0615c
6 changed files with 11 additions and 11 deletions

View File

@ -374,7 +374,7 @@ function ical_hint()
return heading(__('iCal export and API') . ' ' . button_help('user/ical'), 2)
. '<p>' . sprintf(
__('Export your own shifts. <a href="%s">iCal format</a> or <a href="%s">JSON format</a> available (please keep secret, otherwise <a href="%s">reset the api key</a>).'),
__('Export your own shifts. <a href="%s" target="_blank">iCal format</a> or <a href="%s" target="_blank">JSON format</a> available (please keep secret, otherwise <a href="%s">reset the api key</a>).'),
url('/ical', ['key' => $user->api_key]),
url('/shifts-json-export', ['key' => $user->api_key]),
url('/user-myshifts', ['reset' => 1])

View File

@ -837,12 +837,12 @@ msgid "iCal export and API"
msgstr "iCal Export und API"
msgid ""
"Export your own shifts. <a href=\"%s\">iCal format</a> or <a href=\"%s"
"\">JSON format</a> available (please keep secret, otherwise <a href=\"%s"
"Export your own shifts. <a href=\"%s\" target=\"_blank\">iCal format</a> or <a href=\"%s"
"\" target=\"_blank\">JSON format</a> available (please keep secret, otherwise <a href=\"%s"
"\">reset the api key</a>)."
msgstr ""
"Exportiere Deine Schichten. <a href=\"%s\">iCal Format</a> oder <a href=\"%s"
"\">JSON Format</a> verfügbar (Link bitte geheimhalten, sonst <a href=\"%s"
"Exportiere Deine Schichten. <a href=\"%s\" target=\"_blank\">iCal Format</a> oder <a href=\"%s"
"\" target=\"_blank\">JSON Format</a> verfügbar (Link bitte geheimhalten, sonst <a href=\"%s"
"\">API-Key zurücksetzen</a>)."
msgid "Show API Key"

View File

@ -35,7 +35,7 @@
{% for schedule in schedules %}
<tr>
<td>{{ schedule.name }}</td>
<td><a href="{{ schedule.url }}" target="_blank">{{ schedule.url }}</a></td>
<td><a href="{{ schedule.url }}" target="_blank" rel="noopener">{{ schedule.url }}</a></td>
<td>
<form method="post" action="{{ url('/admin/schedule/edit/' ~ schedule.id) }}">
{{ csrf() }}

View File

@ -64,8 +64,8 @@
</div>
<div>
<a href="https://github.com/engelsystem/engelsystem/issues">Bugs / Features</a>
· <a href="https://github.com/engelsystem/engelsystem/">Development Platform</a>
<a href="https://github.com/engelsystem/engelsystem/issues" target="_blank" rel="noopener">Bugs / Features</a>
· <a href="https://github.com/engelsystem/engelsystem/" target="_blank" rel="noopener">Development Platform</a>
</div>
</div>

View File

@ -46,8 +46,8 @@
</a> ·
{% endif %}
{% endfor %}
<a href="https://github.com/engelsystem/engelsystem/issues">{{ __('footer.issues') }}</a>
· <a href="https://github.com/engelsystem/engelsystem/">{{ __('footer.github') }}</a>
<a href="https://github.com/engelsystem/engelsystem/issues" target="_blank" rel="noopener">{{ __('footer.issues') }}</a>
· <a href="https://github.com/engelsystem/engelsystem/" target="_blank" rel="noopener">{{ __('footer.github') }}</a>
· <a href="{{ url('/credits') }}">{{ __('credits.title') }}</a>
</div>
</div>

View File

@ -160,7 +160,7 @@
'form_text': (tShirtLink ? m.icon('info-circle')
~ ' <a href="'
~ tShirtLink|escape('html_attr')
~ '">'
~ '" target="_blank" rel="noopener">'
~ __('settings.profile.shirt.link')|e
~ '</a>' : ''),
}) }}