/
index.html
83 lines (81 loc) · 4.14 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
<!DOCTYPE html>
<html ng-app="Elections" ng-csp>
<head>
<title>RPI Elections</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no"/>
<base href="/">
<link rel="icon" href="favicon.png">
</head>
<body ng-cloak ng-controller="MainController">
<nav class="navbar navbar-default navbar-static-top">
<div class="container">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">RPI Elections</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav" ng-if="!maintenanceMode || editPermissions">
<li ng-class="{'active':isCurrentPage('offices') || isCurrentPage('candidate')}">
<a href="/offices">Offices <span class="sr-only">(current)</span></a>
</li>
<li ng-if="partiesEnabled" ng-class="{'active':isCurrentPage('parties') || isCurrentPage('party')}">
<a href="/parties">Parties</a>
</li>
<li ng-class="{'active':isCurrentPage('faculty')}">
<a href="/faculty">Faculty</a>
</li>
<li ng-class="{'active':isCurrentPage('events')}">
<a href="/events">Events</a>
</li>
<li ng-class="{'active':isCurrentPage('amendments')}">
<a href="/amendments">Amendments</a>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
aria-expanded="false">Run for Office <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="https://rpi.box.com/s/0c10q7g15rvzw8bcjxo7gvd7twf4hfag">Necessary Forms</a></li>
<li><a href="/handbook">Elections Handbook</a></li>
<li role="separator" class="divider"></li>
<li><a href="https://rpi.box.com/s/0c10q7g15rvzw8bcjxo7gvd7twf4hfag">Updates, Violations, & Decisions</a></li>
<li><a href="/about">About EC & WTG</a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li ng-if="!authenticated">
<a href="/login" target="_self">
<span ng-if="!maintenanceMode">Candidate</span>
<span ng-if="maintenanceMode">Admin</span>
Login
</a>
</li>
<li class="dropdown" ng-if="authenticated">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true"
aria-expanded="false">
Signed in as <i ng-bind="username"></i> <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<!--<li><a href="/">Edit Content</a></li>-->
<!--<li><a href="/">Moderate Submissions</a></li>-->
<li ng-if="editPermissions"><a href="/settings">Admin Settings</a></li>
<li role="separator" class="divider"></li>
<li><a href="/logout" target="_self">Sign out</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<ng-include ng-if="maintenanceMode" src="'maintenance.html'"></ng-include>
<ng-view ng-hide="maintenanceMode && !editPermissions"></ng-view>
</body>
</html>