mirror of
https://github.com/sanderfoobar/ircradio.git
synced 2025-01-26 20:24:35 +01:00
Merge pull request 'Add SHOW_PREVIOUS_TRACKS env var. Subtle style change. Launch new tabs on history/library.' (#4) from scoobybejesus/ircradio:script-or into master
Reviewed-on: https://git.wownero.com/dsc/ircradio/pulls/4
This commit is contained in:
commit
077ce3f3b7
@ -31,7 +31,7 @@
|
||||
|
||||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
|
||||
|
||||
{% if ENABLE_SEARCH_ROUTE %}
|
||||
{% if ENABLE_SEARCH_ROUTE or SHOW_PREVIOUS_TRACKS %}
|
||||
<link rel="stylesheet" href="https://code.jquery.com/ui/1.12.1/themes/base/jquery-ui.css"></link>
|
||||
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
|
||||
|
@ -4,7 +4,7 @@
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<!-- Post Content Column -->
|
||||
<div class="col-lg-12">
|
||||
<div class="col-lg-9">
|
||||
<!-- Title -->
|
||||
<h1 class="mt-4" style="margin-bottom: 2rem;">
|
||||
IRC!Radio
|
||||
@ -17,9 +17,11 @@
|
||||
<h3>Now playing: </h3>
|
||||
<div id="now_playing" style="padding-top:6px; margin-bottom:1.75rem;">Nothing here yet</div>
|
||||
|
||||
{% if SHOW_PREVIOUS_TRACKS %}
|
||||
<h5>Previous: </h5>
|
||||
<div id="prev_one" style="font-size:12px;">Nothing here yet</div>
|
||||
<div id="prev_two" style="font-size:12px;"></div>
|
||||
{% endif %}
|
||||
<hr>
|
||||
|
||||
<h4>Command list:</h4>
|
||||
@ -43,14 +45,14 @@
|
||||
<div class="row">
|
||||
<div class="col-md-3">
|
||||
<h4>History</h4>
|
||||
<a href="/history.txt">history.txt</a>
|
||||
<a href="/history.txt" target="_blank">View in new tab</a>
|
||||
</div>
|
||||
|
||||
<div class="col-md-5">
|
||||
<h4>Library
|
||||
<small style="font-size:12px">(by user)</small>
|
||||
<h4>View User Library
|
||||
<small style="font-size:12px"></small>
|
||||
</h4>
|
||||
<form method="GET" action="/library">
|
||||
<form target="_blank" method="GET" action="/library">
|
||||
<div class="input-group mb-3 style=no-gutters">
|
||||
<input type="text" class="form-control" id="name" name="name" placeholder="username...">
|
||||
<div class="input-group-append">
|
||||
|
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user