Skip to content

Commit 95b2072

Browse files
committed
Formatted base.html using djhtml
1 parent 7f68308 commit 95b2072

File tree

1 file changed

+60
-53
lines changed

1 file changed

+60
-53
lines changed
Lines changed: 60 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,66 @@
11
{%load commitfest%}
22
<!DOCTYPE html>
33
<html>
4-
<head>
5-
<title>{{title|default:'Commitfest' }}</title>
6-
<link rel="stylesheet" href="/media/commitfest/css/jquery-ui.css" type="text/css">
7-
<link rel="stylesheet" href="/media/commitfest/css/bootstrap.css" />
8-
<link rel="stylesheet" href="/media/commitfest/css/bootstrap-theme.min.css" />
9-
<link rel="stylesheet" href="/media/commitfest/css/commitfest.css?{% static_file_param %}" />
10-
<link rel="shortcut icon" href="/media/commitfest/favicon.ico" />
11-
{%block extrahead%}{%endblock%}
12-
{%if rss_alternate%} <link rel="alternate" type="application/rss+xml" title="{{rss_alternate_title}}" href="{{rss_alternate}}" />{%endif%}
13-
</head>
14-
<body>
15-
<div class="container-fluid">
16-
<ul class="breadcrumb">
17-
{%if title %}
18-
<li><a href="/">Home</a></li>
19-
{%for c in breadcrumbs%}
20-
<li><a href="{{c.href}}">{{c.title}}</a></li>
21-
{%endfor%}
22-
<li class="active">{{title}}</li>
23-
{%else%}
24-
<li class="active">Home</li>
25-
{%endif%}
26-
<li class="pull-right active">
27-
{%if user.is_authenticated%}
28-
Logged in as {{user}} (<a href="/account/profile/">edit profile</a> | <a href="/account/logout/">log out</a>{%if user.is_staff%} | <a href="/admin/">administration</a>{%endif%})
29-
{%else%}
30-
<a href="/account/login/?next={{request.path}}">Log in</a>
31-
{%endif%}
32-
</li>
33-
<li class="pull-right active">
34-
<a href="https://github.com/postgres/pgcommitfest" target="_blank" style="color: white; padding: 8px 12px; background-color: #24292e; border-radius: 5px; text-decoration: none;">
35-
Contribute on GitHub
36-
</a>
37-
</li>
38-
{%if header_activity%} <li class="pull-right active"><a href="{{header_activity_link}}">{{header_activity}}</a></li>{%endif%}
39-
</ul>
404

41-
{%if title %}
42-
<h1>{{title}}</h1>
43-
{%endif%}
5+
<head>
6+
<title>{{title|default:'Commitfest' }}</title>
7+
<link rel="stylesheet" href="/media/commitfest/css/jquery-ui.css" type="text/css">
8+
<link rel="stylesheet" href="/media/commitfest/css/bootstrap.css" />
9+
<link rel="stylesheet" href="/media/commitfest/css/bootstrap-theme.min.css" />
10+
<link rel="stylesheet" href="/media/commitfest/css/commitfest.css?{% static_file_param %}" />
11+
<link rel="shortcut icon" href="/media/commitfest/favicon.ico" />
12+
{%block extrahead%}{%endblock%}
13+
{%if rss_alternate%}
14+
<link rel="alternate" type="application/rss+xml" title="{{rss_alternate_title}}" href="{{rss_alternate}}" />{%endif%}
15+
</head>
4416

45-
{%if messages%}
46-
{%for m in messages%}
47-
<div class="alert {{m.tags|alertmap}}">{{m}}</div>
48-
{%endfor%}
49-
{%endif%}
17+
<body>
18+
<div class="container-fluid">
19+
<ul class="breadcrumb">
20+
{%if title %}
21+
<li><a href="/">Home</a></li>
22+
{%for c in breadcrumbs%}
23+
<li><a href="{{c.href}}">{{c.title}}</a></li>
24+
{%endfor%}
25+
<li class="active">{{title}}</li>
26+
{%else%}
27+
<li class="active">Home</li>
28+
{%endif%}
29+
<li class="pull-right active">
30+
{%if user.is_authenticated%}
31+
Logged in as {{user}} (<a href="/account/profile/">edit profile</a> | <a href="/account/logout/">log out</a>{%if
32+
user.is_staff%} | <a href="/admin/">administration</a>{%endif%})
33+
{%else%}
34+
<a href="/account/login/?next={{request.path}}">Log in</a>
35+
{%endif%}
36+
</li>
37+
<li class="pull-right active">
38+
<a href="https://github.com/postgres/pgcommitfest" target="_blank"
39+
style="color: white; padding: 8px 12px; background-color: #24292e; border-radius: 5px; text-decoration: none;">
40+
Contribute on GitHub
41+
</a>
42+
</li>
43+
{%if header_activity%} <li class="pull-right active"><a href="{{header_activity_link}}">{{header_activity}}</a>
44+
</li>{%endif%}
45+
</ul>
5046

51-
{%block contents%}
52-
{%endblock%}
53-
</div>
54-
<script src="/media/commitfest/js/jquery.js"></script>
55-
<script src="/media/commitfest/js/jquery-ui.js"></script>
56-
<script src="/media/commitfest/js/bootstrap.js"></script>
57-
<script src="/media/commitfest/js/commitfest.js?{% static_file_param %}"></script>
58-
{%block morescript%}{%endblock%}
59-
</html>
47+
{%if title %}
48+
<h1>{{title}}</h1>
49+
{%endif%}
50+
51+
{%if messages%}
52+
{%for m in messages%}
53+
<div class="alert {{m.tags|alertmap}}">{{m}}</div>
54+
{%endfor%}
55+
{%endif%}
56+
57+
{%block contents%}
58+
{%endblock%}
59+
</div>
60+
<script src="/media/commitfest/js/jquery.js"></script>
61+
<script src="/media/commitfest/js/jquery-ui.js"></script>
62+
<script src="/media/commitfest/js/bootstrap.js"></script>
63+
<script src="/media/commitfest/js/commitfest.js?{% static_file_param %}"></script>
64+
{%block morescript%}{%endblock%}
65+
66+
</html>

0 commit comments

Comments
 (0)