-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.html
More file actions
52 lines (49 loc) · 1.35 KB
/
Copy pathbase.html
File metadata and controls
52 lines (49 loc) · 1.35 KB
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
{% load static %}
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
<style>
#header {
background-color:antiquewhite;text-align:center; color:red;
}
#sidebar {
float:left;width:200px; background-color:aqua;
}
#content {
float:left; ;background-color:gainsboro;
}
</style>
<script src="{%static "assets/jquery-2.0.3.js" %}"></script>
<script src="{%static "assets/ajax.js" %}"></script>
</head>
<body>
<div id="header">
<h1>Example</h1> Hello {{user.first_name}}
</div>
<div id="Sidebar">
{% block sidebar %}
<ul>
<li>
<a href="/article/all">Articles</a>
</li>
<li>
<a href="/admin">Admin</a>
</li>
<li>
{% if user.is_authenticated %}
<a href="/accounts/logout">Logout</a>
{% else %}
<a href="/accounts/login">Login</a>
{% endif %}
</li>
</ul>
{% endblock %}
</div>
<div id="content">
{% block content %}
{% endblock %}
</div>
</body>
</html>