/
base.html
184 lines (176 loc) · 6.6 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
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
{% load i18n static compress %}
<!DOCTYPE html>
<html>
<head lang="pt-br">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
<title>Cadê meu Bicho | {% block page_title %}{% trans 'Missing and for adoption pets' %}{% endblock %}</title>
{% compress css %}
<link rel="stylesheet" href="{% static 'css/bootstrap.min.css' %}"/>
<link rel="stylesheet" href="{% static 'css/pets.css' %}"/>
<link rel="stylesheet" href="{% static 'css/lightbox.css' %}"/>
<link rel="stylesheet" href="{% static 'css/font-awesome.min.css' %}">
{% endcompress %}
{% block metatags %}{% endblock %}
{% if not debug %}
<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', 'UA-49489257-3', 'auto');
{% block ga_log_not_found %}
ga('send', 'pageview');
{% endblock %}
</script>
{% endif %}
</head>
<body>
<div class="navbar {% block extra_navbar_css %}{% endblock %}" role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse"
data-target=".navbar-collapse">
<span class="sr-only">{% trans 'Toggle navigation' %}</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{% url 'common:homepage' %}">
Cadê meu Bicho
</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="{% url 'meupet:index' %}">{% trans 'Pets' %}</a></li>
<li><a href="{% url 'meupet:register' %}">{% trans 'Register Pet' %}</a></li>
{% if user.is_authenticated %}
<li><a href="{% url 'users:profile' %}">{% trans 'Profile' %}</a></li>
<li><a href="{% url 'users:logout' %}">{% trans 'Logout' %}</a></li>
{% else %}
<li><a href="{% url 'users:create' %}">{% trans 'Create Account' %}</a></li>
<li><a href="{% url 'users:login' %}">{% trans 'Login' %}</a></li>
{% endif %}
<li><a href="{% url 'common:about' %}">{% trans 'About' %}</a></li>
<li><a href="{% url 'meupet:search' %}">{% trans 'Search' %}</a></li>
</ul>
</div>
</div>
</div>
{% block heading %}
<div class="heading">
<h3 class="title-text text-center">{% block title %}{% endblock %}</h3>
</div>
{% endblock %}
{% block page %}
<div class="container">
<div class="row">
{% if messages %}
<div class="col-md-12">
{% for message in messages %}
<div class="alert
{% if message.tags %}
{% if 'error' in message.tags %}
alert-danger
{% else %}
alert-{{ message.tags }}
{% endif %}
{% endif %}" role="alert">
{{ message|safe }}
</div>
{% endfor %}
</div>
{% endif %}
{% block body %}
<div class="col-md-2">
<div class="sidebar">
<h3 class="title-text">{% trans 'Missing' context 'plural' %}</h3>
<ul class="nav">
{% for kind in kind_lost %}
<li><a href="{% url 'meupet:lost' kind.slug %}">
{{ kind }} <span class="badge">{{ kind.num_pets }}</span></a>
</li>
{% endfor %}
</ul>
<h3 class="title-text">{% trans 'For Adoption' %}</h3>
<ul class="nav">
{% for kind in kind_adoption %}
<li><a href="{% url 'meupet:adoption' kind.slug %}">
{{ kind }} <span class="badge">{{ kind.num_pets }}</span></a>
</li>
{% endfor %}
</ul>
</div>
</div>
<div class="col-md-10">
{% block content %}
{% endblock content %}
</div>
{% endblock body %}
</div>
</div>
{% endblock %}
<div class="footer hidden-print">
<div class="footer-head">
<div class="container">
<div class="row">
<div class="col-sm-6">
<h2 class="title-text">Cadê meu Bicho</h2>
</div>
<div class="col-sm-6 text-right small-text">
{% trans 'Made with ♥ in Araras, São Paulo' %}
</div>
</div>
</div>
</div>
<div class="footer-body">
<div class="container">
<div class="row">
<div class="col-md-4">
<h4 class="title-text">{% trans 'About' %}</h4>
<p>{% trans 'The purpose of Cadê meu Bicho is to provide the encounter between the best or future best friends. :)' %}</p>
</div>
<div class="col-md-4 text-center">
<h4 class="title-text">{% trans 'Contact' %}</h4>
<ul class='list-unstyled'>
<li>
<a href="mailto:contato@cademeubicho.com">contato@cademeubicho.com</a>
</li>
</ul>
</div>
<div class="col-md-4">
<div class="fb-page" data-href="https://www.facebook.com/kdmeubicho/" data-small-header="true"
data-adapt-container-width="true" data-hide-cover="true" data-show-facepile="true">
<div class="fb-xfbml-parse-ignore">
<blockquote cite="https://www.facebook.com/kdmeubicho/">
<a href="https://www.facebook.com/kdmeubicho/">Cadê meu Bicho</a>
</blockquote>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
{% compress js %}
<script src="{% static 'js/jquery-2.1.1.min.js' %}"></script>
<script src="{% static 'js/bootstrap.min.js' %}"></script>
<script src="{% static 'js/lightbox.js' %}"></script>
<script src="{% static 'js/matchMedia.js' %}"></script>
<script src="{% static 'js/pets.js' %}"></script>
{% if not debug %}
<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 = "//connect.facebook.net/pt_BR/sdk.js#xfbml=1&version=v2.5&appId=388312971328768 ";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
{% endif %}
{% endcompress %}
{% block morescripts %}{% endblock %}
</body>
</html>