mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-17 05:47:50 +00:00
show_keyword_search pref
This commit is contained in:
parent
7b3f6a31f6
commit
88ac0cba11
@ -93,6 +93,7 @@ class Sidebar(config_forms.WebCfgForm):
|
||||
title = _("Sidebar")
|
||||
sidebar_show_zero = forms.CheckBox(_("Show zero hits"))
|
||||
sidebar_show_trackers = forms.CheckBox(_("Show trackers"))
|
||||
show_keyword_search = forms.CheckBox(_("Show keyword search"))
|
||||
|
||||
config_page.register('webui','template', Template)
|
||||
config_page.register('webui','server',Server)
|
||||
|
@ -6,12 +6,13 @@ $def with (filter_items)
|
||||
<input type="hidden" name="filter_cat" value="keyword">
|
||||
<div id="organize_block">
|
||||
<div id="organize_state">
|
||||
|
||||
$if get_config("show_keyword_search"):
|
||||
<div class="title">$_('Keyword')</div>
|
||||
<input type="text" name="filter_value" id="filter_value"
|
||||
$if get('filter_cat') == "keyword":
|
||||
value="$get('filter_value')"
|
||||
style="width:100px;padding:0px" title="$_('Filter on a keyword')"/>
|
||||
|
||||
$if get('filter_cat') == "keyword":
|
||||
$if get('filter_value'):
|
||||
<img src="$base/static/images/tango/edit-clear.png" alt="$_('Clear')"
|
||||
|
@ -63,5 +63,6 @@ CONFIG_DEFAULTS = {
|
||||
"disallow":{},
|
||||
"sessions":[],
|
||||
"sidebar_show_zero":False,
|
||||
"sidebar_show_trackers":False
|
||||
"sidebar_show_trackers":False,
|
||||
"show_keyword_search":False
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user