[mod] oscar theme /preferences: reorganize the preferences

close #115
This commit is contained in:
Alexandre Flament 2021-06-01 16:21:56 +02:00 committed by Markus Heiser
parent 92c68fe636
commit f83b64270c
5 changed files with 164 additions and 130 deletions

View file

@ -19,7 +19,9 @@ import re
name = gettext('Self Informations')
description = gettext('Displays your IP if the query is "ip" and your user agent if the query contains "user agent".')
default_on = True
preference_section = 'query'
query_keywords = ['user-agent']
query_examples = ''
# Self User Agent regex
p = re.compile('.*user[ -]agent.*', re.IGNORECASE)