Make slack report notifier, donate page, irc page and radio page use configuration variables instead of hard coding values.

This commit is contained in:
Benjamin Southall 2016-10-02 01:15:34 +09:00
parent c58e37ce39
commit 03075e7a8c
10 changed files with 242 additions and 228 deletions

View file

@ -17,7 +17,12 @@ $theme = array(
array('title' => 'File',
'name' => 'file',
'type' => 'text',
'default' => 'radio.html')),
'default' => 'radio.html'),
array('title' => 'Radio Status URL',
'name' => 'radiostatus',
'type' => 'text',
'default' => '/radio_assets/status.xsl')),
'build_function' => 'radio_build');
?>
?>

View file

@ -16,7 +16,7 @@ $(document).ready(function(){
});
function check_status(){
$.get("/radio_assets/status.xsl", function(data){
$.get("{{ settings.radiostatus }}", function(data){
var el = $( '<div></div>' );
el.html(data);
var sd = el.find(".streamdata");