Merge branch 'master' of dev.sourcefabric.org:campcaster
This commit is contained in:
commit
86d60dda9e
8 changed files with 78 additions and 28 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
||||||
*.pyc
|
*.pyc
|
||||||
files/
|
files/
|
||||||
pypo/liquidsoap/liquidsoap
|
pypo/liquidsoap/liquidsoap
|
||||||
|
build/build.properties
|
||||||
|
|
|
@ -9,24 +9,11 @@
|
||||||
*/
|
*/
|
||||||
$pages = array(
|
$pages = array(
|
||||||
array(
|
array(
|
||||||
'label' => 'Now Playing',
|
'label' => 'Now Playing',
|
||||||
'uri' => 'javascript:void(null)',
|
'module' => 'default',
|
||||||
'pages' => array(
|
'controller' => 'Nowplaying',
|
||||||
array(
|
'action' => 'index',
|
||||||
'label' => 'Current',
|
'resource' => 'Nowplaying'
|
||||||
'module' => 'default',
|
|
||||||
'controller' => 'Nowplaying',
|
|
||||||
'action' => 'index',
|
|
||||||
'resource' => 'Nowplaying'
|
|
||||||
),
|
|
||||||
array(
|
|
||||||
'label' => 'Daily View',
|
|
||||||
'module' => 'default',
|
|
||||||
'controller' => 'Nowplaying',
|
|
||||||
'action' => 'day-view',
|
|
||||||
'resource' => 'Nowplaying'
|
|
||||||
)
|
|
||||||
)
|
|
||||||
),
|
),
|
||||||
array(
|
array(
|
||||||
'label' => 'Schedule',
|
'label' => 'Schedule',
|
||||||
|
|
|
@ -12,6 +12,10 @@ class Application_Model_DateHelper
|
||||||
return date("Y-m-d H:i:s", $this->_timestamp);
|
return date("Y-m-d H:i:s", $this->_timestamp);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function getTime(){
|
||||||
|
return date("H:i:s", $this->_timestamp);
|
||||||
|
}
|
||||||
|
|
||||||
function setDate($dateString){
|
function setDate($dateString){
|
||||||
$this->_timestamp = strtotime($dateString);
|
$this->_timestamp = strtotime($dateString);
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,7 +59,8 @@ class Application_Model_Nowplaying
|
||||||
$next = Schedule::Get_Scheduled_Item_Data($timeNow, 1, 10, "24 hours");
|
$next = Schedule::Get_Scheduled_Item_Data($timeNow, 1, 10, "24 hours");
|
||||||
} else {
|
} else {
|
||||||
$date = new Application_Model_DateHelper;
|
$date = new Application_Model_DateHelper;
|
||||||
$date->setDate($dateString);
|
$time = $date->getTime();
|
||||||
|
$date->setDate($dateString." ".$time);
|
||||||
$timeNow = $date->getDate();
|
$timeNow = $date->getDate();
|
||||||
|
|
||||||
$previous = array_reverse(Schedule::Get_Scheduled_Item_Data($timeNow, -1, "ALL", $date->getNowDayStartDiff()." seconds"));
|
$previous = array_reverse(Schedule::Get_Scheduled_Item_Data($timeNow, -1, "ALL", $date->getNowDayStartDiff()." seconds"));
|
||||||
|
|
|
@ -1,2 +1,5 @@
|
||||||
<input type="text" id="datepicker" class="input_text">
|
<div class="button-bar-top">
|
||||||
|
Date:<input type="text" id="datepicker" class="input_text">
|
||||||
|
<a href="javascript:void(0)" class="toggle-button" id="now_view">Now View</a><a href="javascript:void(0)" class="toggle-button-active end-button" id="day_view">Day View</a>
|
||||||
|
</div>
|
||||||
<div id='demo'></div>
|
<div id='demo'></div>
|
||||||
|
|
|
@ -1 +1,4 @@
|
||||||
|
<div class="button-bar-top">
|
||||||
|
<a href="javascript:void(0)" class="toggle-button-active end-button" id="now_view">Now View</a><a href="javascript:void(0)" class="toggle-button" id="day_view">Day View</a>
|
||||||
|
</div>
|
||||||
<div id='demo'></div>
|
<div id='demo'></div>
|
||||||
|
|
|
@ -867,7 +867,6 @@ div.ui-datepicker {
|
||||||
margin-right:22px;
|
margin-right:22px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#schedule_playlist_chosen li > div > div > span {
|
#schedule_playlist_chosen li > div > div > span {
|
||||||
float: right;
|
float: right;
|
||||||
margin-right:46px;
|
margin-right:46px;
|
||||||
|
@ -932,7 +931,7 @@ h2#scheduled_playlist_name span {
|
||||||
}
|
}
|
||||||
|
|
||||||
.time {
|
.time {
|
||||||
width: 100px;
|
width: 80px;
|
||||||
margin: 5px;
|
margin: 5px;
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
@ -1083,15 +1082,21 @@ button, input {
|
||||||
|
|
||||||
.user-management {
|
.user-management {
|
||||||
width:810px;
|
width:810px;
|
||||||
|
width:380px;
|
||||||
|
}
|
||||||
|
.user-management-expanded {
|
||||||
|
width:810px;
|
||||||
}
|
}
|
||||||
.user-data {
|
.user-data {
|
||||||
float:left;
|
float:left;
|
||||||
width:420px;
|
width:420px;
|
||||||
|
margin-left:10px;
|
||||||
|
display:none;
|
||||||
}
|
}
|
||||||
.user-list-wrapper {
|
.user-list-wrapper {
|
||||||
float:left;
|
float:left;
|
||||||
width:380px;
|
width:380px;
|
||||||
margin-right:10px;
|
/*margin-right:10px;*/
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-management div.user-list-wrapper .ui-widget-header:first-child {
|
.user-management div.user-list-wrapper .ui-widget-header:first-child {
|
||||||
|
@ -1105,10 +1110,11 @@ button, input {
|
||||||
}
|
}
|
||||||
.user-management h2 {
|
.user-management h2 {
|
||||||
font-size: 1.7em;
|
font-size: 1.7em;
|
||||||
padding-bottom: 16px;
|
padding-bottom: 12px;
|
||||||
}
|
}
|
||||||
.user-management .dataTables_filter input {
|
.user-management .dataTables_filter input {
|
||||||
width: 378px;
|
width: 378px;
|
||||||
|
margin-bottom:8px;
|
||||||
}
|
}
|
||||||
.user-data.simple-formblock dd {
|
.user-data.simple-formblock dd {
|
||||||
width: 73%;
|
width: 73%;
|
||||||
|
@ -1122,8 +1128,9 @@ button, input {
|
||||||
}
|
}
|
||||||
|
|
||||||
.user-list-wrapper .button-holder {
|
.user-list-wrapper .button-holder {
|
||||||
padding:8px 0;
|
padding:0;
|
||||||
text-align:right;
|
text-align:right;
|
||||||
|
height:37px;
|
||||||
}
|
}
|
||||||
.user-list-wrapper .button-holder .ui-button {
|
.user-list-wrapper .button-holder .ui-button {
|
||||||
margin:0;
|
margin:0;
|
||||||
|
@ -1141,3 +1148,39 @@ button, input {
|
||||||
|
|
||||||
#ui-datepicker-div { z-index: 10 !important }
|
#ui-datepicker-div { z-index: 10 !important }
|
||||||
|
|
||||||
|
.button-bar-top {
|
||||||
|
text-align:right;
|
||||||
|
height:30px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle-button, .toggle-button-active {
|
||||||
|
border: 1px solid #505050;
|
||||||
|
background-color: #5e5e5e;
|
||||||
|
background: -moz-linear-gradient(top, #757575 0, #5e5e5e 100%);
|
||||||
|
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #757575), color-stop(100%, #5e5e5e));
|
||||||
|
color: #ffffff;
|
||||||
|
margin:0;
|
||||||
|
font-size:12px;
|
||||||
|
padding:5px 12px;
|
||||||
|
text-decoration:none;
|
||||||
|
text-shadow: #343434 0px -1px;
|
||||||
|
border-width:1px 0 1px 1px;
|
||||||
|
}
|
||||||
|
.toggle-button:hover {
|
||||||
|
background-color: #292929;
|
||||||
|
background: -moz-linear-gradient(top, #3b3b3b 0, #292929 100%);
|
||||||
|
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #3b3b3b), color-stop(100%, #292929));
|
||||||
|
text-shadow: #000000 0px -1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.toggle-button-active {
|
||||||
|
background-color: #c6c6c6;
|
||||||
|
background: -moz-linear-gradient(top, #767676 0, #c6c6c6 20%, #c6c6c6 35%, #a0a0a0 100%);
|
||||||
|
background: -webkit-gradient(linear, left top, left bottom, color-stop(0, #767676), color-stop(20%, #c6c6c6), color-stop(35%, #c6c6c6), color-stop(100%, #a0a0a0));
|
||||||
|
color: #2e2e2e;
|
||||||
|
cursor:default;
|
||||||
|
text-shadow: #d8d8d8 0px 1px;
|
||||||
|
}
|
||||||
|
.end-button {
|
||||||
|
border-width:1px;
|
||||||
|
}
|
|
@ -123,12 +123,20 @@ function init2(){
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function redirect(url){
|
||||||
|
document.location.href = url;
|
||||||
|
}
|
||||||
|
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
if (viewType == "day"){
|
if (viewType == "day"){
|
||||||
|
$('#now_view').click(function(){redirect('/Nowplaying/index')});
|
||||||
|
|
||||||
$("#datepicker").datepicker({
|
$("#datepicker").datepicker({
|
||||||
onSelect: function(dateText, inst) { updateData();}});
|
onSelect: function(dateText, inst)
|
||||||
var date = new Date();
|
{ updateData();}});
|
||||||
$("#datepicker").datepicker("setDate", date);
|
$("#datepicker").datepicker("setDate", new Date());
|
||||||
|
} else {
|
||||||
|
$('#day_view').click(function(){redirect('/Nowplaying/day-view')});
|
||||||
}
|
}
|
||||||
|
|
||||||
init2();
|
init2();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue