-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbase.html
More file actions
83 lines (82 loc) · 4.15 KB
/
base.html
File metadata and controls
83 lines (82 loc) · 4.15 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
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
{% load static %}
{% load staticfiles %}
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap -->
<link rel="stylesheet" type=" text/css" href="{% static 'shabook/home/bootstrap.min.css' %}">
<link rel="stylesheet" type=" text/css" href="{% static 'shabook/home/style.css' %}">
{% if title %}
<title>شبوک | {{ title }}</title>
{% else %}
<title>شبوک</title>
{% endif %}
</head>
<body style="background-image: url('{% static 'shabook/home/img/about.jpg' %}')";>
<nav class="navbar navbar-expand-lg">
<a class="navbar-brand" href="#">
<img src="{% static 'shabook/home/img/books.png' %}" width="30" height="30" class="d-inline-block align-top" alt="">
شبوک
</a>
<form method='GET' action='{% url "query" %}' class="form my-2 my-lg-0 search-form">
<div class='input-group'>
<input class="form-control" type="text" placeholder="Search" name='q' aria-label="Search" value='{{ request.GET.q }}'>
<span class='input-group-btn'>
<button class="btn btn-outline-success" type="submit">Search</button>
</span>
</div>
</form>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
{% if user.is_authenticated %}
<li class="nav-item active">
<a class="nav-link" href="{% url 'post-create' %}">
<img src="{% static 'shabook/home/img/plus.png' %}" width="30" height="30" class="d-inline-block align-top" alt="">
<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="{% url 'profile' %}">
<img src="{% static 'shabook/home/img/user.png' %}" width="30" height="30" class="d-inline-block align-top" alt="">
<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-item nav-link" href="{% url 'in-box' user.username %}">
<img src="{% static 'shabook/home/img/mail.png' %}" width="30" height="30" class="d-inline-block align-top" alt="">
</a>
</li>
<li class="nav-item active">
<a class="nav-item nav-link" href="{% url 'out-box' user.username %}">
<img src="{% static 'shabook/home/img/mail-4.png' %}" width="30" height="30" class="d-inline-block align-top" alt="">
</a>
</li>
<li class="nav-item active">
<a class="nav-link" href="{% url 'shabook-home' %}" name = "home">
<img src="{% static 'shabook/home/img/home.png' %}" width="30" height="30" class="d-inline-block align-top" alt="">
<span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="{% url 'logout' %}">
<img src="{% static 'shabook/home/img/logout.png' %}" width="30" height="30" class="d-inline-block align-top" alt="">
<span class="sr-only">(current)</span></a>
</li>
{% else %}
<li class="nav-item active">
<a class="nav-link" href="#">صفحه ی اصلی <span class="sr-only">(current)</span></a>
</li>
<li class="nav-item active">
<a class="nav-link" href="{% url 'login' %}"> ورود به سایت<span class="sr-only">(current)</span></a>
</li>
{% endif %}
</div>
</nav>
<div class = "container">
{% block content %}{% endblock %}
</div>
</body>
</html>