-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbase.html
122 lines (118 loc) · 5.09 KB
/
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Kno - {{ title|default('ADD A TITLE') }}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="{{ static('css/bootstrap.min.css') }}">
<link rel="stylesheet" href="{{ static('css/style.css') }}">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
{% block morehead %}{% endblock %}
</head>
<body>
<nav class="navbar navbar-inverse navbar-static-top header">
<div class="container">
<a class="navbar-brand" href="{{ url('index') }}">Kno</a>
{% if user is not none %}
<form class="navbar-form navbar-left form-search col-md-7" action="{{ url('search') }}"
method="get">
<div class="input-group" style="width:300px">
<input type="search" class="form-control" placeholder="Search" name="query">
<span class="input-group-btn">
<button class="btn"><span class="glyphicon glyphicon-search"></span></button>
</span>
</div>
</form>
{% endif %}
<button class="navbar-toggle" data-toggle="collapse" data-target=".navHeaderCollapse">
<span class="icon-bar"></span><span class="icon-bar"></span><span class="icon-bar"></span>
</button>
<div class="collapse navbar-collapse navHeaderCollapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="mailto:[email protected]?Subject=Kno" target="_top">Contact Us</a></li>
{% if user is none %}
<li><a href="#ForgotPwd" data-toggle="modal">Reset Password</a></li>
<li><a href="#Login" data-toggle="modal">Login</a></li>
<li><a href="#Register" data-toggle="modal">Sign Up</a></li>
{% else %}
<li><a href="#JoinCourse" data-toggle="modal">Join Course</a></li>
<li><a href="{{ url('listcourses') }}">Courses</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Create <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#CreateCourse" data-toggle="modal">Course</a></li>
</ul>
</li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
Welcome, {{ user.fname }} <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="{{ url('profile', user.id) }}">Profile</a></li>
<li><a href="{{ url('settings') }}">Settings</a></li>
<li><a href="{{ url('logout') }}">Logout</a></li>
</ul>
</li>
{% endif %}
</ul>
</div>
</div>
</nav>
{% if user != None %}{% set notifications=user.notifications.all() %}{% endif %}
<div class="container">
<div class="row">
{% if user != None and notifications %}<div class="col-lg-9">{% endif %}
<div class="panel panel-default">
<div class="panel-body">
<div class="page-header h1">{{ title }}</div>
{% block content %}ADD SOME CONTENT{% endblock %}
</div>
</div>
{% if user != None and notifications %}
</div>
<div class="col-lg-3">
<div class="list-group">
{% for notif in notifications %}
<a href="{{ url('notify', notif.id) }}" class="list-group-item">
<div class="list-group-item-heading">{{ notif.heading }}</div>
<button type="button" class="close notify-delete" data-dismiss="alert">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<div class="list-group-item-text">{{ notif.text }}</div>
</a>
{% endfor %}
</div>
</div>
{% endif %}
</div>
</div>
<noscript>
For full functionality of this site it is necessary to enable JavaScript.
Here are the <a href="http://www.enable-javascript.com/">
instructions how to enable JavaScript in your web browser</a>.
</noscript>
<nav class="navbar navbar-default navbar-static-bottom footer">
<div class="container">
<ul class="nav navbar-nav navbar-left"><li>
<img src="{{ static('images/html5.png') }}" class="navbar-text text-left" alt="html5 valid">
</li></ul>
<ul class="nav navbar-nav navbar-right"><li>
<img src="{{ static('images/css3.png') }}" class="navbar-text text-right" alt="css3 valid">
</li></ul>
</div>
</nav>
<script src="{{ static('js/jquery-2.0.3.min.js') }}"></script>
<script src="{{ static('js/formplugin.js') }}"></script>
<script src="{{ static('js/bootstrap.min.js') }}"></script>
<script src="{{ static('js/page.js') }}"></script>
{% block js %}{% endblock %}
{{ as_modal('ForgotPwd', info)|safe }}
{{ as_modal('Login', info)|safe }}
{{ as_modal('Register', info)|safe }}
{{ as_modal('CreateCourse', info)|safe }}
{{ as_modal('JoinCourse', info)|safe }}
</body>
</html>