diff --git a/frontend.py b/frontend.py index f046dcd..38354a6 100755 --- a/frontend.py +++ b/frontend.py @@ -272,9 +272,6 @@ logger.addHandler(fh) application = bottle.default_app() bottle.install(SessionPlugin('/')) -for bot in listdir('bots'): - bottle.TEMPLATE_PATH.insert(0, path.join('bots', bot, 'settings.tpl')) - if __name__ == '__main__': bottle.run(host="0.0.0.0", port=config["web"]["port"]) else: diff --git a/template/settings.tpl b/template/settings.tpl index 35935c1..49baacd 100644 --- a/template/settings.tpl +++ b/template/settings.tpl @@ -8,14 +8,13 @@ % end <% - # import all the settings templates from bots/*/settings.tpl import os bots = os.listdir('bots') for bot in bots: - include('/home/b3yond/git/ticketfrei/bots/' + bot + '/settings.tpl', csrf=csrf, city=city) - + include('bots/' + bot + '/settings.tpl', csrf=csrf, city=city) +end %>
@@ -43,24 +42,6 @@ for bot in bots:
-
-

Edit your mail subscription page

-

- There is also a page where users can subscribe to mail notifications: - Ticketfrei {{city}}. - You can change what your users will read there, and adjust it to your - needs. -

-

- So this is the default text we suggest: -

-
- - - -
-
-

Edit your trigger patterns