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:
parent
9409d5a0a6
commit
47a8c8b7a0
@ -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',
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user