67 lines
2.7 KiB
Plaintext
67 lines
2.7 KiB
Plaintext
-set page = 'Preferences'
|
|
-extends 'base.haml'
|
|
-from 'macro.haml' import config_checkbox, config_textbox, config_dropdown, config_number
|
|
|
|
-block meta
|
|
%link rel='stylesheet' type='text/css' href='{{var.local}}/css/preferences.css'
|
|
|
|
-block content
|
|
%form.buttons action='{{var.local}}/preferences/update' onsubmit='event.preventDefault();'
|
|
%a.button onclick='toggle_all_details("category", true)' << Open
|
|
%a.button onclick='toggle_all_details("category", false)' << Close
|
|
%input type='hidden' name='redir' value='/preferences'
|
|
|
|
%details.category.section open
|
|
%summary << General
|
|
.container
|
|
%p -> =config_textbox('Homepage', 'homepage', config.homepage)
|
|
|
|
%details.category.section open
|
|
%summary << Tabs
|
|
.container
|
|
%p -> =config_checkbox('Open new tabs after current tab', 'tab_after_current', config.tab_after_current)
|
|
%p -> =config_checkbox('Load all tabs on startup', 'load_tabs', config.load_tabs)
|
|
%p -> =config_checkbox('Load tab when switching if it is unloaded', 'load_switch', config.load_switch)
|
|
|
|
%details.category.section open
|
|
%summary << Passwor Storage
|
|
.container
|
|
%p -> =config_dropdown('Password storage backend', 'pass_type', config.pass_type, pass_backends)
|
|
|
|
%details.category.section {{'open' if app.password.storage_type == 'bitwarden' else ''}}
|
|
%summary << Password Storage: Bitwarden
|
|
.container
|
|
-if app.password.storage_type == 'bitwarden'
|
|
%p
|
|
Account E-Mail:
|
|
%input type='text' value='{{app.password.account}}' disabled
|
|
|
|
%p
|
|
Unlocked:
|
|
-if app.password.session_key
|
|
%input type='checkbox' disabled checked
|
|
|
|
-else
|
|
%input type='checkbox' disabled
|
|
|
|
%hr
|
|
|
|
%p -> =config_textbox('Hostname for the api server to listen on', 'bw_host', config.bw_host)
|
|
%p
|
|
=config_number('Port for the api server to listen on', 'bw_port', config.bw_port, 1024, 65535)
|
|
%input type='button' onclick='document.getElementById("bw_port").value = "0";trigger_event("bw_port", "focusout")' value='Random'
|
|
|
|
%p -> =config_checkbox('Use an external api server', 'bw_external', config.bw_external)
|
|
|
|
%details.category.section open
|
|
%summary << Advanced
|
|
.container
|
|
%p -> =config_checkbox('Detach the Web Inspector from the main window', 'detach_inspector', config.detach_inspector)
|
|
%p -> =config_checkbox('Allow self-signed certs for local pages', 'allow_local_unsigned', config.allow_local_unsigned)
|
|
%p -> =config_checkbox('Use HTTPS by default', 'https_force', config.https_force)
|
|
|
|
%details.category.section open
|
|
%summary << Experimental
|
|
.container
|
|
%p -> =config_checkbox('Enable url auto-completion (not recommended yet)', 'enable_autocomplete', config.enable_autocomplete)
|