diff --git a/airtime_mvc/application/views/helpers/TrialRemaining.php b/airtime_mvc/application/views/helpers/TrialRemaining.php
index baa1ac9e2..64a703a1c 100644
--- a/airtime_mvc/application/views/helpers/TrialRemaining.php
+++ b/airtime_mvc/application/views/helpers/TrialRemaining.php
@@ -11,6 +11,6 @@ class Airtime_View_Helper_TrialRemaining extends Zend_View_Helper_Abstract
if($interval->format('%R') == '-'){
return "Trial expired.";
}
- return $interval->format('%a days');
+ return $interval->format('%a');
}
}
diff --git a/airtime_mvc/application/views/scripts/partialviews/header.phtml b/airtime_mvc/application/views/scripts/partialviews/header.phtml
index 019f1dd4a..41c3053aa 100644
--- a/airtime_mvc/application/views/scripts/partialviews/header.phtml
+++ b/airtime_mvc/application/views/scripts/partialviews/header.phtml
@@ -22,6 +22,7 @@
-
- is_trial){?>
-
-
- - Trial remaining
- - trial_remain?>
-
-
-
+ is_trial){?>
+
+
Your Trial expires in
+
+
trial_remain?>
+
days
+
+
+
+
diff --git a/airtime_mvc/public/js/airtime/preferences/streamsetting.js b/airtime_mvc/public/js/airtime/preferences/streamsetting.js
index a97df38ca..d4198868f 100644
--- a/airtime_mvc/public/js/airtime/preferences/streamsetting.js
+++ b/airtime_mvc/public/js/airtime/preferences/streamsetting.js
@@ -86,7 +86,15 @@ function checkLiquidsoapStatus(){
status = obj[key];
}
}
- $("#s"+id+"Liquidsoap-error-msg-element").html(status);
+ var html
+ if(status == "OK"){
+ html = 'Streaming server connection is working
'
+ }else if(status == "N/A"){
+ html = 'Cannot connect to the streaming server
This stream is disabled
'
+ }else{
+ html = 'Can not connect to the streaming server
'+status+'
'
+ }
+ $("#s"+id+"Liquidsoap-error-msg-element").html(html);
}
});
}
@@ -150,6 +158,6 @@ $(document).ready(function() {
})
showErrorSections()
- setInterval('checkLiquidsoapStatus()', 5000)
+ setInterval('checkLiquidsoapStatus()', 7000)
});
\ No newline at end of file