forked from frkosurf/html-voot-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
138 lines (125 loc) · 4.7 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Group Membership</title>
<link href="ext/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="ext/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
<style>
ul.emails { margin: 0; list-style: none; }
</style>
</head>
<body>
<div class="container">
<h1>Group Membership</h1>
<p class="lead">This application makes it possible to view the groups you are a member of and its members.</p>
<div id="groupList">
<div id="groupListPagination">
</div>
<div id="groupListTable">
</div>
</div>
<div id="memberList">
<div id="memberListModal" tabindex="-1" class="modal hide">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3>Member List</h3>
</div>
<div class="modal-body">
<div id="memberListPagination">
</div>
<div id="memberListTable">
</div>
</div>
<div class="modal-footer">
<a href="#" class="btn" data-toggle="modal" data-target="#memberListModal">Close</a>
</div>
</div>
</div>
</div> <!-- /container -->
<script id="groupListTemplate" type="text/x-jsrender">
<table class="table table-striped table-bordered">
<thead>
<tr><th>Group</th><th>Role</th></tr>
</thead>
<tbody>
{{for entry}}
<tr>
<td>
<a href="#" data-group-id="{{>id}}" title="{{>id}}">{{>title}}</a>
{{if description}}
<small class="muted">{{>description}}</small>
{{/if}}
</td>
<td>{{>voot_membership_role}}</td>
</tr>
{{/for}}
</tbody>
<tfoot>
<tr>
<td colspan="2">
<small class="muted">You are member of <em>{{>totalResults}}</em> {{if totalResults === 1}}group{{else}}groups{{/if}}.</small>
</td>
</tr>
</tfoot>
</table>
</script>
<script id="memberListTemplate" type="text/x-jsrender">
<table class="table table-striped table-bordered">
<thead>
<tr><th>Member</th><th>Role</th></tr>
</thead>
<tbody>
{{for entry}}
<tr>
<td>
{{if displayName}}
<span title="{{>id}}">{{>displayName}}</span>
{{else}}
<span>{{>id}}</span>
{{/if}}
{{if emails}}
<ul class="emails">
{{for emails}}
<li><small class="muted"><a href="mailto:{{>value}}">{{>value}}</a> ({{>type}})</small></li>
{{/for}}
</ul>
{{/if}}
</td>
<td>{{>voot_membership_role}}</td>
</tr>
{{/for}}
</tbody>
<tfoot>
<tr>
<td colspan="2">
<small class="muted">This group has <em>{{>totalResults}}</em> {{if totalResults === 1}}member{{else}}members{{/if}}.</small>
</td>
</tr>
</tfoot>
</table>
</script>
<script id="paginationTemplate" type="text/x-jsrender">
<div class="pagination pagination-mini pagination-centered">
<ul>
{{for numberList}}
{{if activePage === pageNumber}}
<li class="disabled">
{{else}}
<li>
{{/if}}
<a href="#" data-group-id="{{>groupId}}" data-page-number="{{>pageNumber}}">{{>pageNumber+1}}</a>
</li>
{{/for}}
</ul>
</div>
</script>
<script src="ext/js/jquery.js"></script>
<script src="ext/js/jsrender.js"></script>
<script src="ext/js/jso.js"></script>
<script src="ext/bootstrap/js/bootstrap.min.js"></script>
<script src="config/config.js"></script>
<script src="js/voot.js"></script>
</body>
</html>