-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase.html
156 lines (118 loc) · 7.4 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
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
{% load static %}
<html>
<head>
<title>Django blog</title>
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400"\
rel="stylesheet">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link href="{% static 'css/base.css' %}" rel="stylesheet">
<link href="{% static 'css/style.css' %}" rel="stylesheet">
<link rel="icon" type="image/png" sizes="32x32" href="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTkhM4Qu5c_JFhQ2hleY4r_eodHp8OSyLzqP8A3B-HAvjp3OJxY0A">
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.10/css/all.css" integrity="sha384-+d0P83n9kaQMCwj8F4RJB66tzIwOKmrdb46+porD/OvrJ+37WqIM7UoBtwHO6Nlg" crossorigin="anonymous">
</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = 'https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v3.2';
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<div>
<nav class="navbar navbar-expand-lg navbar-light bg-light fixed-top" >
<a class="navbar-brand" href="#">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTkhM4Qu5c_JFhQ2hleY4r_eodHp8OSyLzqP8A3B-HAvjp3OJxY0A" width="70" height="70" alt="">
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNav">
<ul class="navbar-nav mx-auto">
<li class="nav-item active">
<strong> <a class="nav-link text-dark" href="/">Home <span class="sr-only">(current)</span></a></strong>
</li>
<li class="nav-item">
<strong> <a href="{% url 'contact' %}" class="nav-link text-dark">Contact</a></strong>
</li>
<!--{% comment %} <li class="nav-item">-->
<!--<a class="nav-link" href="/signup">Project</a>-->
<!--</li> {% endcomment %}-->
<li class="nav-item">
<!--{% comment %} <a class="nav-link" href="/home">Login</a> {% endcomment %}-->
</li>
{% if user.is_authenticated %}
<li class="nav-item">
<strong> <a href="{% url 'post_new' %}" class="nav-link text-dark">+ New Post</a></strong>
</li>
<li class="nav-item">
<strong> <a href="{% url 'home' %}" class="nav-link text-dark">My Blog</a></strong>
</li>
<li class="nav-item">
<strong> <a href="{% url 'polls:list' %}" class="nav-link text-dark">Poll</a></strong>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdownPortfolio" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" >
<button class="btn btn-success "> {{ user.get_full_name }}</button>
</a>
<div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdownPortfolio">
{% comment %} <a class="dropdown-item" href="/login">Login</a>
<a class="dropdown-item" href="#">2 Column Portfolio</a> {% endcomment %}
<a href="{% url 'logout' %}" class="dropdown-item">logout</a>
<a href="{% url 'detail' %}" class="dropdown-item">Profile</a>
<a href="{% url 'settings' %}" class="dropdown-item">settings</a>
<a href="{% url 'password' %}" class="dropdown-item">change password</a>
</div>
</li>
{% else %}
<li class="nav-item">
<strong> <a href="{% url 'login' %}" class="nav-link text-dark">MY Blog</a></strong>
</li>
<li class="nav-item">
<strong> <a href="{% url 'polls:list1' %}" class="nav-link text-dark">Poll</a></strong>
</li>
<li class="nav-item">
<button class="btn btn-primary " style="height: 40px; font-weight: bolder;"> <a href="{% url 'login' %}" class="nav-link" style="line-height: 10px; color: white ">login</a> </button>
</li>
<li class="nav-item" style="margin-left: 10px;">
<button class="btn btn-warning " style="height: 40px; font-weight: bolder; "><a href="{% url 'signup' %}" class="nav-link" style="line-height: 10px;">Enroll</a></button>
</li>
{% endif %}
</ul>
<ul class="navbar-nav">
<li class="nav-item">
<a class="nav-link" href="https://www.linkedin.com/in/iamrraj/" target="_blank">
<img src="http://www.ergodomus.it/wp-content/uploads/2017/02/linkedin-logo-copy.png" width="30" height="30"/>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="#" target="_blank">
<!--{% comment %} <img src="{% static 'mysite/images/instagram.png' %}" width="30" height="30"/> {% endcomment %}-->
<img src="http://www.isiccard.ie/wp-content/uploads/2018/02/instagram.jpg" width="30" height="30"/>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="http://www.facebook.com/iamrraj" target="_blank">
<img src="https://www.facebook.com/images/fb_icon_325x325.png" width="30" height="30"/>
</a>
</li>
<li class="nav-item">
<a class="nav-link" href="http://www.github.com/iamrraj" target="_blank">
<img src="https://png.pngtree.com/svg/20161104/github_600875.png" width="30" height="30" alt="Github"/>
</a>
</li>
</ul>
</div>
</nav>
</div>
{% block content %}
{% endblock content %}
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
{% block js %}{% endblock %}
</div>
</body>
</html>