~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to theme/default/libraries/calendar/tmpls/day.html

  • Committer: Dan Garner
  • Date: 2015-03-26 14:08:33 UTC
  • Revision ID: git-v1:70d14044444f8dc5d602b99890d59dea46d9470c
Moved web servable files to web folder

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<div id="cal-day-box">
2
 
        <div class="row-fluid clearfix cal-row-head">
3
 
                <div class="span1 col-xs-1 cal-cell"><%= cal.locale.time %></div>
4
 
                <div class="span11 col-xs-11 cal-cell"><%= cal.locale.events %></div>
5
 
        </div>
6
 
        <% if(all_day.length) {%>
7
 
                <div class="row-fluid clearfix cal-day-hour">
8
 
                        <div class="span1 col-xs-1"><b><%= cal.locale.all_day %></b></div>
9
 
                        <div class="span11 col-xs-11">
10
 
                                <% _.each(all_day, function(event){ %>
11
 
                                        <div class="day-highlight dh-<%= event['class'] %>">
12
 
                                                <a href="<%= event.url ? event.url : 'javascript:void(0)' %>" data-event-id="<%= event.id %>"
13
 
                                                   data-event-class="<%= event['class'] %>" class="event-item">
14
 
                                                        <%= event.title %></a>
15
 
                                        </div>
16
 
                                <% }); %>
17
 
                        </div>
18
 
                </div>
19
 
        <% }; %>
20
 
        <% if(before_time.length) {%>
21
 
                <div class="row-fluid clearfix cal-day-hour">
22
 
                        <div class="span1 col-xs-3"><b><%= cal.locale.before_time %></b></div>
23
 
                        <div class="span5 col-xs-5">
24
 
                                <% _.each(before_time, function(event){ %>
25
 
                                        <div class="day-highlight dh-<%= event['class'] %>">
26
 
                                                <span class="cal-hours pull-right"><%= event.end_hour %></span>
27
 
                                                <a href="<%= event.url ? event.url : 'javascript:void(0)' %>" data-event-id="<%= event.id %>"
28
 
                                                   data-event-class="<%= event['class'] %>" class="event-item">
29
 
                                                        <%= event.title %></a>
30
 
                                        </div>
31
 
                                <% }); %>
32
 
                        </div>
33
 
                </div>
34
 
        <% }; %>
35
 
        <div id="cal-day-panel" class="clearfix">
36
 
                <div id="cal-day-panel-hour">
37
 
                        <% for(i = 0; i < hours; i++){ %>
38
 
                                <div class="cal-day-hour">
39
 
                                        <% for(l = 0; l < cal._hour_min(i); l++){ %>
40
 
                                                <div class="row-fluid cal-day-hour-part">
41
 
                                                        <div class="span1 col-xs-1"><b><%= cal._hour(i, l) %></b></div>
42
 
                                                        <div class="span11 col-xs-11"></div>
43
 
                                                </div>
44
 
                                <% }; %>
45
 
                                </div>
46
 
                        <% }; %>
47
 
                </div>
48
 
                
49
 
                <% _.each(by_hour, function(event){ %>
50
 
                        <div class="pull-left day-event day-highlight dh-<%= event['class'] %>" style="margin-top: <%= (event.top * 30) %>px; height: <%= (event.lines * 30) %>px">
51
 
                                <span class="cal-hours"><%= event.start_hour %> - <%= event.end_hour %></span>
52
 
                                <a href="<%= event.url ? event.url : 'javascript:void(0)' %>" data-event-id="<%= event.id %>"
53
 
                                   data-event-class="<%= event['class'] %>" class="event-item">
54
 
                                        <%= event.title %></a>
55
 
                        </div>
56
 
                <% }); %>
57
 
        </div>
58
 
        <% if(after_time.length) {%>
59
 
        <div class="row-fluid clearfix cal-day-hour">
60
 
                <div class="span1 col-xs-3"><b><%= cal.locale.after_time %></b></div>
61
 
                <div class="span11 col-xs-9">
62
 
                        <% _.each(after_time, function(event){ %>
63
 
                        <div class="day-highlight dh-<%= event['class'] %>">
64
 
                                <span class="cal-hours"><%= event.start_hour %></span>
65
 
                                <a href="<%= event.url ? event.url : 'javascript:void(0)' %>" data-event-id="<%= event.id %>"
66
 
                                   data-event-class="<%= event['class'] %>" class="event-item">
67
 
                                        <%= event.title %></a>
68
 
                        </div>
69
 
                        <% }); %>
70
 
                </div>
71
 
        </div>
72
 
        <% }; %>
73
 
</div>