-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
113 lines (110 loc) · 4.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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1.0, user-scalable=yes">
<title>O.R.A.</title>
<script src="components/webcomponentsjs/webcomponents.js"></script>
<link rel="import" href="components/font-roboto/roboto.html">
<link rel="import" href="components/core-drawer-panel/core-drawer-panel.html">
<link rel="import" href="components/core-header-panel/core-header-panel.html">
<link rel="import" href="components/core-toolbar/core-toolbar.html">
<link rel="import" href="components/core-menu/core-menu.html">
<link rel="import" href="components/core-icons/core-icons.html">
<link rel="import" href="components/core-ajax/core-ajax.html">
<link rel="import" href="components/paper-item/paper-item.html">
<link rel="import" href="components/paper-tabs/paper-tabs.html">
<link rel="import" href="components/paper-shadow/paper-shadow.html">
<link rel="import" href="components/paper-icon-button/paper-icon-button.html">
<link rel="import" href="components/core-animated-pages/core-animated-pages.html">
<link rel="import" href="components/core-animated-pages/transitions/slide-from-right.html">
<link rel="import" href="components/flatiron-director/flatiron-director.html">
<link rel="stylesheet" href="css/style.css" shim-shadowdom>
</head>
<body unresolved fullbleed>
<template is="auto-binding">
<flatiron-director route="{{route}}" autoHash></flatiron-director>
<core-ajax
auto
url="data/memberships.json"
handleAs="json"
response="{{ memberships }}"
></core-ajax>
<core-drawer-panel id="drawerPanel">
<core-header-panel drawer>
<core-menu valueattr="hash" selected="{{ route }}">
<paper-item hash="flow" noink>
<core-icon icon="flow"></core-icon>
<a href="#flow">Flow</a>
</paper-item>
<template repeat="{{ membership in memberships._embedded['ora:organization-membership'] }}">
<paper-item hash="{{ membership.organization.id }}" noink>
<core-icon icon="label-outline"></core-icon>
<a href="#{{ membership.organization.id }}">{{ membership.organization.name }}</a>
</paper-item>
</template>
<paper-item hash="settings" noink>
<core-icon icon="settings"></core-icon>
<a href="#settings">Settings</a>
</paper-item>
<paper-item hash="account" noink>
<core-icon icon="account-box"></core-icon>
<a href="#account">Account</a>
</paper-item>
</core-menu>
</core-header-panel>
<core-header-panel main>
<core-toolbar class="medium-tall">
<span flex>{{ route }}</span>
<paper-icon-button icon="refresh"></paper-icon-button>
<paper-icon-button icon="add"></paper-icon-button>
<paper-tabs class="bottom fit" selected="0">
<paper-tab>Items</paper-tab>
<paper-tab>Credits</paper-tab>
<paper-tab>Decisions</paper-tab>
<paper-tab>People</paper-tab>
</paper-tabs>
</core-toolbar>
<div vertical layout fit>
<core-animated-pages valueattr="hash" selected="{{ route }}" transitions="slide-from-right">
<section hash="flow" layout vertical center-center>
<div>Flow</div>
</section>
<template repeat="{{ membership in memberships._embedded['ora:organization-membership'] }}">
<section hash="{{ membership.organization.id }}" layout vertical>
<core-ajax
auto
url="data/task-management/tasks.json"
handleAs="json"
response="{{ tasks }}"
></core-ajax>
<template repeat="{{ task in tasks._embedded['ora:task'] }}">
<paper-shadow z="1" class="card">
<core-toolbar>
<div flex>{{ task.subject }}</div>
<paper-icon-button icon="more-vert" on-tap="{{ }}"></paper-icon-button>
</core-tootlbar>
</paper-shadow>
</template>
</section>
</template>
<section hash="settings" layout vertical center-center>
<div>Settings</div>
</section>
<section hash="account" layout vertical center-center>
<div>Accounts</div>
</section>
</core-animated-pages>
</div>
</core-header-panel>
</core-drawer-panel>
</template>
<script>
var template = document.querySelector('template[is="auto-binding"]');
template.addEventListener('template-bound', function(e) {
// Use URL hash for initial route. Otherwise, use the first page.
this.route = this.route || 'flow';
});
</script>
</body>
</html>