1
0
mirror of https://github.com/Kovah/LinkAce.git synced 2025-02-24 19:22:35 +01:00

Add new setting for opening links in new tabs (#97)

This commit is contained in:
Kovah 2020-03-05 22:37:26 +01:00
parent 9409d5a0a6
commit 47a8c8b7a0
No known key found for this signature in database
GPG Key ID: AAAA031BA9830D7B
2 changed files with 22 additions and 0 deletions

View File

@ -11,6 +11,8 @@ return [
'time_format' => 'Time Format',
'listitem_count' => 'Number of Items in Lists',
'links_new_tab' => 'Open external links in new tabs',
'private_default' => 'Private Links by default',
'private_default_help' => 'Enabling this will make all new links private by default',

View File

@ -33,6 +33,26 @@
</div>
<div class="col">
<div class="form-group">
<label for="links_new_tab">
@lang('settings.links_new_tab')
</label>
<select id="links_new_tab" name="links_new_tab"
class="simple-select {{ $errors->has('links_new_tab') ? ' is-invalid' : '' }}">
<option value="0" @if($user->settings()->get('links_new_tab') === '0') selected @endif>
@lang('linkace.no')
</option>
<option value="1" @if($user->settings()->get('links_new_tab') === '1') selected @endif>
@lang('linkace.yes')
</option>
</select>
@if ($errors->has('links_new_tab'))
<p class="invalid-feedback" role="alert">
{{ $errors->first('links_new_tab') }}
</p>
@endif
</div>
</div>
</div>