diff --git a/ircradio/templates/base.html b/ircradio/templates/base.html index d774c3b..4b7ba98 100644 --- a/ircradio/templates/base.html +++ b/ircradio/templates/base.html @@ -31,7 +31,7 @@ - {% if ENABLE_SEARCH_ROUTE %} + {% if ENABLE_SEARCH_ROUTE or SHOW_PREVIOUS_TRACKS %} diff --git a/ircradio/templates/index.html b/ircradio/templates/index.html index e96a388..bee78c4 100644 --- a/ircradio/templates/index.html +++ b/ircradio/templates/index.html @@ -17,9 +17,11 @@

Now playing:

Nothing here yet
+ {% if SHOW_PREVIOUS_TRACKS %}
Previous:
Nothing here yet
+ {% endif %}

Command list:

diff --git a/settings.py_example b/settings.py_example index 6adff01..aeb10e4 100644 --- a/settings.py_example +++ b/settings.py_example @@ -17,6 +17,7 @@ timezone = "Europe/Amsterdam" dir_music = os.environ.get("DIR_MUSIC", os.path.join(cwd, "data", "music")) enable_search_route = bool_env(os.environ.get("ENABLE_SEARCH_ROUTE", False)) +show_previous_tracks = bool_env(os.environ.get("SHOW_PREVIOUS_TRACKS", False)) irc_admins_nicknames = ["dsc_"] irc_host = os.environ.get('IRC_HOST', 'localhost')