-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
230 lines (191 loc) · 9.31 KB
/
index.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
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
<!doctype html>
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
<html lang="">
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="generator" content="Polymer Starter Kit" />
<title>The Mill Admin App</title>
<!-- Place favicon.ico in the `app/` directory -->
<!-- Chrome for Android theme color -->
<meta name="theme-color" content="#2E3AA1">
<!-- Web Application Manifest -->
<link rel="manifest" href="manifest.json">
<!-- Tile color for Win8 -->
<meta name="msapplication-TileColor" content="#3372DF">
<!-- Add to homescreen for Chrome on Android -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="application-name" content="PSK">
<link rel="icon" sizes="192x192" href="images/touch/chrome-touch-icon-192x192.png">
<!-- Add to homescreen for Safari on iOS -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Polymer Starter Kit">
<link rel="apple-touch-icon" href="images/touch/apple-touch-icon.png">
<!-- Tile icon for Win8 (144x144) -->
<meta name="msapplication-TileImage" content="images/touch/ms-touch-icon-144x144-precomposed.png">
<style media="screen">
body {
background: #fafafa;
font-family: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
color: #333;
}
</style>
<script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<script>
String.prototype.replaceAll = function(search, replacement) {
var target = this;
return target.replace(new RegExp(search, 'g'), replacement);
};
</script>
<!-- endbuild -->
<!-- will be replaced with elements/elements.vulcanized.html -->
<!-- Iron elements -->
<link rel="import" href="bower_components/iron-flex-layout/classes/iron-flex-layout.html">
<link rel="import" href="bower_components/iron-icons/iron-icons.html">
<link rel="import" href="bower_components/iron-icons/communication-icons.html">
<link rel="import" href="bower_components/iron-pages/iron-pages.html">
<link rel="import" href="bower_components/iron-selector/iron-selector.html">
<!-- Paper elements -->
<link rel="import" href="bower_components/paper-drawer-panel/paper-drawer-panel.html">
<link rel="import" href="bower_components/paper-icon-button/paper-icon-button.html">
<link rel="import" href="bower_components/paper-item/paper-item.html">
<link rel="import" href="bower_components/paper-material/paper-material.html">
<link rel="import" href="bower_components/paper-menu/paper-menu.html">
<link rel="import" href="bower_components/paper-scroll-header-panel/paper-scroll-header-panel.html">
<link rel="import" href="bower_components/paper-styles/paper-styles-classes.html">
<link rel="import" href="bower_components/paper-toast/paper-toast.html">
<link rel="import" href="bower_components/paper-toolbar/paper-toolbar.html">
<!-- Uncomment next block to enable Service Worker Support (2/2) -->
<!--
<link rel="import" href="../bower_components/platinum-sw/platinum-sw-cache.html">
<link rel="import" href="../bower_components/platinum-sw/platinum-sw-register.html">
-->
<!-- Configure your routes here -->
<link rel="import" href="src/routing.html">
<!-- Add your elements here -->
<link rel="import" href="src/styles/app-theme.html">
<link rel="import" href="src/styles/shared-styles.html">
<link rel="import" href="src/mill-data.html">
<link rel="import" href="src/mill-view-announcements.html">
<link rel="import" href="src/mill-item-event.html">
<link rel="import" href="src/mill-item-prayer.html">
<link rel="import" href="src/mill-item-stdate.html">
<link rel="import" href="src/app-nav.html">
<link rel="import" href="bower_components/ship-squarespace-slides/ship-squarespace-slides.html">
<script src="bower_components/moment/moment.js" charset="utf-8"></script>
<!-- endreplace-->
<!-- For shared styles, shared-styles.html import in elements.html -->
<style is="custom-style" include="shared-styles"></style>
<style>
#logo-header {
width: 100px;
margin-right: 30px;
}
[hidden] {
display: none;
}
[hideall] #drawer {
width: 0 !important;
}
[hideall] #main {
left: 0 !important;
}
</style>
</head>
<body unresolved class="fullbleed layout vertical">
<span id="browser-sync-binding"></span>
<template is="dom-bind" id="app">
<paper-drawer-panel id="paperDrawerPanel" hideall$="[[hideall]]">
<!-- Drawer Scroll Header Panel -->
<paper-scroll-header-panel drawer fixed hidden$='[[hideall]]'>
<!-- Drawer Toolbar -->
<paper-toolbar id="drawerToolbar">
<span class="paper-font-title">Menu</span>
</paper-toolbar>
<!-- Drawer Content -->
<paper-menu class="list" attr-for-selected="data-route" selected="[[route]]">
<a data-route="announcements" href="/" on-click="onDataRouteClick">
<iron-icon icon="communication:email"></iron-icon>
<span>Announcements</span>
</a>
<a data-route="stratfordEvents" href="/edgarevents" on-click="onDataRouteClick">
<iron-icon icon="image:slideshow"></iron-icon>
<span>Edgar Events</span>
</a>
<a data-route="edgarEvents" href="/stratfordevents" on-click="onDataRouteClick">
<iron-icon icon="image:slideshow"></iron-icon>
<span>Stratford Events</span>
</a>
</paper-menu>
</paper-scroll-header-panel>
<!-- Main Area -->
<paper-scroll-header-panel main condenses keep-condensed-header>
<!-- Main Toolbar -->
<paper-toolbar id="mainToolbar" class="tall" hidden$='[[hideall]]'>
<paper-icon-button id="paperToggle" icon="menu" paper-drawer-toggle></paper-icon-button>
<span class="flex"></span>
<!-- Toolbar icons -->
<!--<paper-icon-button icon="refresh"></paper-icon-button>-->
<!--<paper-icon-button icon="search"></paper-icon-button>-->
<!-- Application name -->
<div class="middle middle-container center horizontal layout flex">
<img id="logo-header" src="src/images/TMC15_Logo02_FULL_WHITE.png">
<div class="app-name flex">The Mill Admin</div>
<app-nav route="{{headerRoute}}"></app-nav>
</div>
<!-- Application sub title -->
<div class="bottom bottom-container center horizontal layout">
<div class="bottom-title paper-font-subhead">Turn-key solutions to awesomeness</div>
</div>
</paper-toolbar>
<!-- Main Content -->
<div class="content">
<iron-pages attr-for-selected="data-route" selected="{{route}}">
<section data-route="announcements">
<mill-data events="{{events}}" prayers="{{prayers}}" announcements="{{announcements}}"></mill-data>
<mill-view-announcements
events="{{events.upcoming}}"
prayers="{{prayers.items}}"
announcements="{{announcements.items}}"
route="{{headerRoute}}"></mill-view-announcements>
</section>
<section data-route="edgarEvents">
<ship-squarespace-slides events-url="https://themill.church/events" events-categories="All Church,Edgar" announcements-url="https://themill.church/announcements"></ship-squarespace-slides>
</section>
<section data-route="stratfordEvents">
<ship-squarespace-slides events-url="https://themill.church/events" events-categories="All Church,Stratford" announcements-url="https://themill.church/announcements"></ship-squarespace-slides>
</section>
</iron-pages>
</div>
</paper-scroll-header-panel>
</paper-drawer-panel>
<!-- Uncomment next block to enable Service Worker support (1/2) -->
<!--
<paper-toast id="caching-complete"
duration="6000"
text="Caching complete! This app will work offline.">
</paper-toast>
<platinum-sw-register auto-register
clients-claim
skip-waiting
on-service-worker-installed="displayInstalledToast">
<platinum-sw-cache default-cache-strategy="fastest"
cache-config-file="cache-config.json">
</platinum-sw-cache>
</platinum-sw-register>
-->
</template>
<script src="src/scripts/app.js"></script>
<!-- endbuild-->
</body>
</html>