407
by Dan Garner
Schedule page, Layout page and Campaign Page. Added basics in on various forms. |
1 |
{#
|
2 |
/*
|
|
3 |
* Spring Signage Ltd - http://www.springsignage.com
|
|
4 |
* Copyright (C) 2015 Spring Signage Ltd
|
|
5 |
* (${FILE_NAME})
|
|
6 |
*/
|
|
7 |
||
8 |
#}
|
|
9 |
{% extends "authed.twig" %} |
|
10 |
{% import "inline.twig" as inline %} |
|
11 |
||
12 |
{% block pageContent %} |
|
13 |
<div class="row"> |
|
14 |
<div class="col-lg-3 col-md-6 col-xs-12"> |
|
15 |
<div class="widget"> |
|
16 |
<div class="widget-body"> |
|
17 |
<div class="widget-icon orange pull-left"> |
|
18 |
<i class="fa fa-desktop"></i> |
|
19 |
</div> |
|
20 |
<div class="widget-content pull-left"> |
|
21 |
<div class="title">{{ displays|length }}</div> |
|
22 |
<div class="comment">{% if displays|length == 1 %}{% trans "Display" %}{% else %}{% trans "Displays" %}{% endif %}</div> |
|
23 |
</div> |
|
24 |
<div class="clearfix"></div> |
|
25 |
</div> |
|
26 |
</div> |
|
27 |
</div> |
|
28 |
<div class="col-lg-3 col-md-6 col-xs-12"> |
|
29 |
<div class="widget"> |
|
30 |
<div class="widget-body"> |
|
31 |
<div class="widget-icon red pull-left"> |
|
32 |
<i class="fa fa-tasks"></i> |
|
33 |
</div> |
|
34 |
<div class="widget-content pull-left"> |
|
35 |
<div class="title">{{ librarySize }}</div> |
|
36 |
<div class="comment">{% trans "Library Size" %}</div> |
|
37 |
</div> |
|
38 |
<div class="clearfix"></div> |
|
39 |
</div> |
|
40 |
</div> |
|
41 |
</div> |
|
42 |
<div class="col-lg-3 col-md-6 col-xs-12"> |
|
43 |
<div class="widget"> |
|
44 |
<div class="widget-body"> |
|
45 |
<div class="widget-icon green pull-left"> |
|
46 |
<i class="fa fa-users"></i> |
|
47 |
</div> |
|
48 |
<div class="widget-content pull-left"> |
|
49 |
<div class="title">{{ countUsers }}</div> |
|
50 |
<div class="comment">{% if countUsers == 1 %}{% trans "User" %}{% else %}{% trans "Users" %}{% endif %}</div> |
|
51 |
</div> |
|
52 |
<div class="clearfix"></div> |
|
53 |
</div> |
|
54 |
</div> |
|
55 |
</div> |
|
56 |
<div class="col-lg-3 col-md-6 col-xs-12"> |
|
57 |
<div class="widget"> |
|
58 |
<div class="widget-body"> |
|
59 |
<div class="widget-icon blue pull-left"> |
|
60 |
<i class="fa fa-cogs"></i> |
|
61 |
</div> |
|
62 |
<div class="widget-content pull-left"> |
|
63 |
{% if embedded-widget != "" %} |
|
64 |
{{ embedded-widget|raw }} |
|
65 |
{% else %} |
|
66 |
<div class="title">{{ nowShowing }}</div> |
|
67 |
<div class="comment">{% trans "Now Showing" %}</div> |
|
68 |
{% endif %} |
|
69 |
</div> |
|
70 |
<div class="clearfix"></div> |
|
71 |
</div> |
|
72 |
</div> |
|
73 |
</div> |
|
74 |
</div> |
|
75 |
<div class="row"> |
|
76 |
<div class="col-lg-6"> |
|
77 |
<div class="widget"> |
|
78 |
<div class="widget-title"> |
|
79 |
<i class="fa fa-cloud-download"></i> |
|
80 |
{% if xmdsLimit != "" %} |
|
81 |
{% trans %}Bandwidth Usage. Limit {{ xmdsLimit }}{% endtrans %} |
|
82 |
{% else %} |
|
83 |
{% trans %}Bandwidth Usage ({{ bandwidthSuffix }}){% endtrans %} |
|
84 |
{% endif %} |
|
454.1.46
by Dan Garner
Make status dashboard specific to the user logged in |
85 |
{% if currentUser.routeViewable("/stats") %} |
421
by Dan Garner
Changed route name naming convention so we can better support ACL |
86 |
<a class="pull-right" href="{{ urlFor("stats.view") }}">{% trans "More Statistics" %}</a> |
454.1.46
by Dan Garner
Make status dashboard specific to the user logged in |
87 |
{% endif %} |
407
by Dan Garner
Schedule page, Layout page and Campaign Page. Added basics in on various forms. |
88 |
<div class="clearfix"></div> |
89 |
</div> |
|
90 |
<div class="widget-body medium no-padding"> |
|
91 |
<div id="bandwidthChart" class="morrisChart" style="width:99%; height: 230px;"></div> |
|
92 |
</div> |
|
93 |
</div> |
|
94 |
</div> |
|
95 |
<div class="col-lg-6"> |
|
96 |
<div class="widget"> |
|
97 |
<div class="widget-title"> |
|
98 |
<i class="fa fa-tasks"></i> |
|
99 |
{% if libraryLimitSet != "" %} |
|
100 |
{% trans %}Library Usage. Limit {{ libraryLimit }}{% endtrans %} |
|
101 |
{% else %} |
|
102 |
{% trans "Library Usage" %} |
|
103 |
{% endif %} |
|
104 |
<div class="clearfix"></div> |
|
105 |
</div> |
|
106 |
<div class="widget-body medium no-padding"> |
|
107 |
<div id="libraryChart" class="morrisChart" style="width:99%; height: 230px;"></div> |
|
108 |
</div> |
|
109 |
</div> |
|
110 |
</div> |
|
111 |
</div> |
|
112 |
<div class="row"> |
|
113 |
<div class="col-lg-6"> |
|
114 |
<div class="widget"> |
|
115 |
<div class="widget-title"> |
|
116 |
<i class="fa fa-desktop"></i> |
|
117 |
{% trans "Display Activity" %} |
|
118 |
<div class="clearfix"></div> |
|
119 |
</div> |
|
120 |
<div class="widget-body medium no-padding"> |
|
121 |
<div class="table-responsive"> |
|
122 |
<table class="table"> |
|
123 |
<thead> |
|
124 |
<tr> |
|
125 |
<th>{% trans "Display" %}</th> |
|
126 |
<th>{% trans "Logged In" %}</th> |
|
507.1.12
by Dan Garner
Change licenced term to Authorised on displays. |
127 |
<th>{% trans "Authorised" %}</th> |
407
by Dan Garner
Schedule page, Layout page and Campaign Page. Added basics in on various forms. |
128 |
</tr> |
129 |
</thead> |
|
130 |
<tbody> |
|
131 |
{% for row in displays %} |
|
441.1.30
by Dan Garner
Fix status dashboard display widget |
132 |
{% if row.mediaInventoryStatus == 1 %} |
133 |
{% set class = "success" %} |
|
134 |
{% elseif row.mediaInventoryStatus == 2 %} |
|
135 |
{% set class = "danger" %} |
|
136 |
{% else %} |
|
137 |
{% set class = "warning" %} |
|
138 |
{% endif %} |
|
139 |
<tr class="{{ class }}"> |
|
140 |
<td>{{ row.display }}</td> |
|
529.1.21
by Dan Garner
Fix logged in tick on status dashboard |
141 |
<td><span class="glyphicon {% if row.loggedIn == 1 %}glyphicon-ok{% else %}glyphicon-remove{% endif %}"></span></td> |
441.1.30
by Dan Garner
Fix status dashboard display widget |
142 |
<td><span class="glyphicon {% if row.licensed == 1 %}glyphicon-ok{% else %}glyphicon-remove{% endif %}"></span></td> |
143 |
</tr> |
|
407
by Dan Garner
Schedule page, Layout page and Campaign Page. Added basics in on various forms. |
144 |
{% endfor %} |
145 |
</tbody> |
|
146 |
</table> |
|
147 |
</div> |
|
148 |
</div> |
|
149 |
</div> |
|
150 |
</div> |
|
151 |
<div class="col-lg-6"> |
|
152 |
<div class="widget news-widget"> |
|
153 |
<div class="widget-title"> |
|
154 |
<i class="fa fa-book"></i> |
|
155 |
{% trans "Latest News" %} |
|
156 |
<div class="clearfix"></div> |
|
157 |
</div> |
|
158 |
<div class="widget-body medium"> |
|
159 |
{% if latestNews|length > 0 %} |
|
160 |
{% for news in latestNews %} |
|
161 |
<div class="article"> |
|
162 |
<h4 class="article_title">{{ news.title }}</h4> |
|
163 |
<p>{{ news.description|raw }} {% if news.link %}<a href="{{ news.link }}" title="Read" target="_blank">{% trans "Full Article" %}</a>.{% endif %}</p> |
|
164 |
</div> |
|
165 |
{% endfor %} |
|
166 |
{% endif %} |
|
167 |
</div> |
|
168 |
</div> |
|
169 |
</div> |
|
170 |
</div> |
|
171 |
{% endblock %} |
|
172 |
||
173 |
{% block javaScript %} |
|
174 |
<script type="text/javascript"> |
|
175 |
||
176 |
{% if xmdsLimitSet %} |
|
441.1.3
by Dan Garner
Fix many to many relationship between regions and playlists. |
177 |
var yKeys = ['value','limit']; |
178 |
var labels = ['{% trans "Value" %}','{% trans "Remaining" %}']; |
|
179 |
{% else %} |
|
407
by Dan Garner
Schedule page, Layout page and Campaign Page. Added basics in on various forms. |
180 |
var yKeys = ['value']; |
181 |
var labels = ['{% trans "Value" %}']; |
|
182 |
{% endif %} |
|
183 |
||
184 |
var bandwidthChart = { |
|
185 |
type: 'bar', |
|
186 |
data: { |
|
187 |
element: 'bandwidthChart', |
|
188 |
data: {{ bandwidthWidget|raw }}, |
|
189 |
xkey: 'label', |
|
190 |
ykeys: yKeys, |
|
191 |
labels: labels, |
|
441.1.3
by Dan Garner
Fix many to many relationship between regions and playlists. |
192 |
stacked: {% if xmdsLimitSet %}true{% else %}false{% endif %} |
407
by Dan Garner
Schedule page, Layout page and Campaign Page. Added basics in on various forms. |
193 |
}
|
194 |
};
|
|
195 |
||
196 |
var libraryChart = { |
|
197 |
type: 'donut', |
|
198 |
data: { |
|
199 |
element: 'libraryChart', |
|
200 |
data: {{ libraryWidget|raw }}, |
|
201 |
formatter: function (y, data) { return y + "{{ librarySuffix }}"; } |
|
202 |
}
|
|
203 |
};
|
|
204 |
</script> |
|
205 |
{% endblock %} |