-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcalendarfeed.html
175 lines (165 loc) · 6.12 KB
/
calendarfeed.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
<!-- CSS -->
<link rel="stylesheet" type="text/css"
href="/devwidgets/calendarfeed/css/calendarfeed.css" />
<div class="calendarfeed_widget">
<!-- WIDGET CONTENT CONTAINER -->
<div class="s3d-widget-content">
<!-- Stuff for JS templating -->
<div id="agenda_template" style="display: none;"><!--
<div>
<h1 id="title" class="header1 lecture-subject">
${title}
<a style="display: none;" href="${webcalFeedUrl}"
title="__MSG__WEBCAL_LINK_TITLE__">
<img src="/devwidgets/calendarfeed/images/external.png">
</a>
</h1>
<div id="calendarfeed_lectures">
<table id="agenda">
{if days.length === 0 && totalFeedEvents > 0}
<div class="info-box warning-box">
<h4 class="info-title">__MSG__ALL_FILTERED_TITLE__</h4>
<p>__MSG__ALL_FILTERED_MESSAGE__</p>
</div>
{/if}
{for day in days}
{var events = day[1]}
<tbody>
{for event in events}
<tr class="agenda-row">
{if event_index == 0}
<td rowspan="${events.length}"
{if event.dayDelta < 2 && event.dayDelta >= -5}
class="date relative"
title="${event.absDate}">${event.relDate}
</td>
{else}
class="date absolute"
title="${event.relDate}">${event.absDate}
</td>
{/if}
{/if}
<td class="time">${event.time}</td>
<td class="description">
<div class="summary compact link expandable">
${event.summary}
</div>
<div class="full">
{for para in event.description}
<p>${para}</p>
{/for}
<table class="info-block">
{if event.url}
<tr>
<td>
<span class="label">
__MSG__EVENT_DETAIL_LABEL_URL__:
</span>
</td>
<td>
<a target="_blank" href="${event.url}"
class="value link">${event.url}</a>
</td>
</tr>
{/if}
{if event.location}
<tr>
<td>
<span class="label">
__MSG__EVENT_DETAIL_LABEL_LOCATION__:
</span>
</td>
<td>
<a target="_blank"
href="http://maps.google.co.uk/maps?q=${encodeURIComponent(event.location)}"
class="value link">${event.location}</a>
</td>
</tr>
{/if}
{if event.contact}
<tr>
<td>
<span class="label">
__MSG__EVENT_DETAIL_LABEL_CONTACT__:
</span>
</td>
<td>
<span class="value">${event.contact}</span>
</td>
</tr>
{/if}
</table>
</div>
</td>
</tr>
{/for}
</tbody>
{/for}
</table>
</div>
</div>
--></div>
<!-- MAIN VIEW -->
<div id="calendarfeed_main" style="display:none;">
<div class="loading" style="display: none;">
<img class="center" alt="loading.." src="/dev/images/ajax_load.gif">
</div>
<div class="ajax-content"></div>
<div id="error_msg" style="display: none;">
</div>
<div id="template_error_msg"><!--
<div class="info-box error-box error_container">
<h4 class="info-title">${title}</h4>
${body}
</div>
--></div>
</div>
<!-- SETTINGS VIEW -->
<div id="calendarfeed_settings" style="display:none;">
<p>__MSG__SETTINGS_HEADER_INTRO__</p>
<form id="calendarfeed_settings_form">
<div class="s3d-form-field-wrapper">
<label for="calendarfeed_settings_txtTitle"
class="s3d-input-label s3d-input-label-above">
__MSG__SETTINGS_FORM_LABEL_CALENDAR_TITLE__:
</label>
<input type="text" id="calendarfeed_settings_txtTitle"
name="rss_settings_txtTitle"
class="required s3d-input-full-width" />
<label for="calendarfeed_settings_txtUrl"
class="s3d-input-label s3d-input-label-above">
__MSG__SETTINGS_FORM_LABEL_CALENDAR_FEED_URL__:
</label>
<input type="text" id="calendarfeed_settings_txtUrl"
name="rss_settings_txtUrl"
class="required url s3d-input-full-width" />
<label class="s3d-input-label s3d-input-label-above">
__MSG__SETTINGS_FORM_LABEL_CALENDAR_DISPLAY_RANGE__:
</label>
<div class="date-slider-wrapper">
<label id="calendarfeed_settings_daterangeslider_label">
__MSG__SETTINGS_FORM_LABEL_CALENDAR_DISPLAY_RANGE_DESCRIPTION__
</label>
<!-- populated by jqueryui -->
<div id="daterangeslider">
</div>
</div>
<div class="dialog_buttons"
id="calendarfeed_settings_save_cancel_container"
style="display: block; ">
<button type="button" id="calendarfeed_settings_cancel"
class="s3d-bold s3d-link-button">
__MSG__SETTINGS_BUTTON_CANCEL__
</button>
<button type="button" id="calendarfeed_settings_save"
class="s3d-button s3d-overlay-action-button">
__MSG__SETTINGS_BUTTON_SAVE__
</button>
</div>
</div>
</form>
</div>
</div>
</div>
<!-- JAVASCRIPT -->
<script type="text/javascript" src="/devwidgets/calendarfeed/javascript/calendarfeed.js"></script>