-
Notifications
You must be signed in to change notification settings - Fork 80
/
u_base.html
228 lines (218 loc) · 9.25 KB
/
u_base.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
{% load settings_value %}
{% load static %}
{% load social_links %}
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="DC.title" content="{{ site.name }}" />
<title>{% block title %}{% block sub-title %}{% endblock %}{{ site.name }}{% endblock %}</title>
<link rel="shortcut icon" href="{% static 'img/favicon.ico' %}">
<link rel="stylesheet" href="{% static 'css/jquery-ui.min.css' %}" />
<link rel="stylesheet" href="{% static 'js/jquery-custom.css' %}">
<link rel='stylesheet' href="{% static 'js/fullcalendar/fullcalendar.css' %}" />
<link rel = 'stylesheet' href="{% static 'css/jquery.timepicker.min.css' %}" />
<link href="https://fonts.googleapis.com/css?family=Oswald" rel="stylesheet">
<link href="{% static 'css/cropper.min.css' %}" rel="stylesheet">
<!--[if IE]>
<script src="{{ STATIC_URL }}html5.js"></script>
<![endif]-->
<script src="{% static 'js/jquery-3.1.1.min.js' %}"></script>
<script src="{% static 'js/jquery-ui.min.js' %}"></script>
<script src="{% static 'js/fullcalendar/lib/moment.min.js' %}"></script>
<script src="{% static 'js/fullcalendar/fullcalendar.min.js' %}"></script>
<script src="{% static 'js/fullcalendar/gcal.js' %}"></script>
<script src="{% static 'js/timepicker/jquery.timepicker.min.js' %}"></script>
<script src="{% static 'js/jquery.formset.js' %}"></script>
<script src="{% static 'js/cropper.min.js' %}"></script>
{% block scripts %}
<!-- Compiled and minified CSS -->
<link rel="stylesheet" href="{% static 'css/materialize.min.css' %}" />
<!-- Compiled and minified JavaScript -->
<script src="{% static 'js/materialize.min.js' %}"></script>
<!-- Fonts are fun -->
<link hrf="{% static 'fonts/Roboto' %}" rel="stylesheet">
{% endblock %}
<link rel="stylesheet" type="text/css" href= "{% static 'css/members.css'%}" />
{% if not request.user.is_staff %}
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', '{% settings_value "GOOGLE_ANALYTICS_ID" %}', 'auto');
ga('send', 'pageview');
</script>
{% endif %}
{%block sub-head %}{% endblock %}
<style>
{% block style %}{% endblock %}
</style>
</head>
<body>
{% block body %}
{% block top_div %}{% endblock %}
<!-- Page -->
<div id="header_container">
<div id="header">
{% block top_nav %}
<nav class='row' id='main-nav'>
<div class='nav-wrapper'>
<div id='logo'>
<a href="{% url 'member:home' %}" class='brand-logo' id="home">
<img class='sec-logo' src="{% static 'img/logo-line.png' %}"/>
</a>
</div>
<a href='#' data-activates="mobile" class="button-collapse"><img class='menu-img' src="{% static 'img/hamburger.png' %}"/></a>
<ul id="nav-mobile" class="right hide-on-med-and-down">
{% endblock %}
<li><a href="{% url 'member:profile:redirect' %}">Profile</a></li>
{% if not request.user.is_authenticated %}
<li><a>Members</a></li>
<li><a>Organizations</a></li>
<li><a>Events</a></li>
<li><a>Mailing Lists</a></li>
<li><a>Slack</a></li>
<li><a>FAQ</a></li>
<li><a>Login</a></li>
{% elif request.user.profile.is_active %}
<li><a class='dropdown-button' data-hover="true" data-beloworigin="true" data-activates='dropdown1' href="{% url 'member:members' %}">Members</a>
<ul id='dropdown1' class='dropdown-content'>
<li><a href="{% url 'member:members' %}">Active Members</a></li>
<li><a href="{% url 'member:tag:cloud' 'members' %}">Tags</a></li>
</ul>
</li>
<li><a class='dropdown-button' data-hover="true" data-beloworigin="true" data-activates='dropdown2' href="{% url 'member:org:list' %}">Organizations</a>
<ul id='dropdown2' class='dropdown-content'>
<li><a href="{% url 'member:org:list' %}">Active Organizations</a></li>
<li><a href="{% url 'member:tag:cloud' 'organizations' %}">Tags</a></li>
</ul>
</li>
<li><a href="{% url 'member:event:calendar' %}">Events</a></li>
<li><a href="{% url 'member:connect:email_lists' %}">Mailing Lists</a></li>
<li><a class='slack-a' href="{% url 'member:connect:slack' user.username %}">Slack</a></li>
<li><a href="{% url 'member:faq' %}">FAQ</a></li>
<li><a class='dropdown-button' data-hover="true" data-beloworigin="true" data-activates='dropdown3' href="{% url 'logout' %}">Logout</a>
<ul id='dropdown3' class='dropdown-content'>
{% if request.user.is_staff %} <li><a href="{% url 'staff:home' %}">Staff</a></li>
<li><a href="{% url 'admin:index' %}">Admin</a></li>
{% endif %}
</ul>
</li>
{% else %}
<li><a href="{% url 'member:not_active' %}">Members</a></li>
<li><a href="{% url 'member:not_active' %}">Organizations</a></li>
<li><a href="{% url 'member:not_active' %}">Events</a></li>
<li><a href="{% url 'member:not_active' %}">Mailing Lists</a></li>
<li><a href="{% url 'member:not_active' %}">Slack</a></li>
<li><a href="{% url 'member:not_active' %}">FAQ</a></li>
<li><a href="{% url 'logout' %}">Logout</a></li>
{% endif %}
</ul>
{% block side-nav %}
<ul class="side-nav" id="mobile">
<li><a href="{% url 'member:profile:redirect' %}">Profile</a></li>
{% if not request.user.is_authenticated %}
<li><a>Members</a></li>
<li><a>Organizations</a></li>
<li><a>Events</a></li>
<li><a>Mailing Lists</a></li>
<li><a>Slack</a></li>
<li><a>FAQ</a></li>
<li><a>Login</a></li>
{% elif request.user.profile.is_active %}
<li><a href="{% url 'member:members' %}">Members</a></li>
<li><a href="{% url 'member:org:list' %}">Organizations</a></li>
<li><a href="{% url 'member:event:calendar' %}">Events</a></li>
<li><a href="{% url 'member:connect:email_lists' %}">Mailing Lists</a></li>
<li><a class='slack-a' href="{% url 'member:connect:slack' user.username %}">Slack</a></li>
<li><a href="{% url 'member:faq' %}">FAQ</a></li>
<li><a href="{% url 'logout' %}">Logout</a></li>
{% else %}
<li><a href="{% url 'member:not_active' %}">Members</a></li>
<li><a href="{% url 'member:not_active' %}">Organizations</a></li>
<li><a href="{% url 'member:not_active' %}">Events</a></li>
<li><a href="{% url 'member:not_active' %}">Tags</a></li>
<li><a href="{% url 'member:not_active' %}">Mailing Lists</a></li>
<li><a href="{% url 'member:not_active' %}">Slack</a></li>
<li><a href="{% url 'member:not_active' %}">FAQ</a></li>
<li><a href="{% url 'logout' %}">Logout</a></li>
{% endif %}
</ul>
{% endblock %}
</div>
</nav>
{% block lower_nav %}{% endblock %}
</div>
</div>
{% block main_body %}
<div>
<div class='row main'>
<div class="lightbg col s10 offset-s1">
<div id="content">
{% if messages %}
<div class="messages">
{% for message in messages %}
<div {% if message.tags %} class="{{ message.tags }}"{% endif %}>{{ message }}</div>
{% endfor %}
</div>
{% endif %}
{% block content %}{% endblock %}
</div>
</div>
</div>
</div>
{% endblock %}
{% block footer %}
<!-- Footer -->
{% block footer-class %}
<footer class="page-footer main-footer" id="footer">
{% endblock %}
<div class="footer-copyright setwidth container">
<div id="copyright">
© 2016 | Office Nomads | <a id='nadine-link' href="http://nadineproject.org/" target="_new">The Nadine Project</a>
</div>
{% block lowerfooter %}
{% load_social_urls as social %}
<div class='grey-text text-lighten-4 right' id="social">
{% if social.facebook %}
<a id="fb" target="_blank" href="{{ social.facebook }}">fb</a>
{% endif %}
{% if social.twitter %}
<a id="tw" target="_blank" href="{{ social.twitter }}">tw</a>
{% endif %}
{% if social.yelp %}
<a id="ye" target="_blank" href="{{ social.yelp }}">ye</a>
{% endif %}
{% if social.instagram %}
<a id='inst' target='_blank' href="{{ social.instagram }}">inst</a>
{% endif %}
</div>
{% endblock %}
</div>
</div>
</footer>
{% endblock %}
<!-- End Page -->
</div>
{% block bottom_div %} {% endblock %}
{% endblock %}
{% block extrajs %}
<script>
$(document).ready(function(){
$('.button-collapse').sideNav();
$('.dropdown-button').dropdown();
if($('.main').height() < 900) {
$('footer').attr('class', 'sticky-footer');
} else {
if($('footer').hasClass('sticky-footer')) {
$('footer').attr('page-footer main-footer');
}
}
});
</script>
{% endblock %}
</body>
</html>