Skip to content

Added GitHub contribution link in the header #54

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 3 commits into from
Closed
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
108 changes: 60 additions & 48 deletions pgcommitfest/commitfest/templates/base.html
Original file line number Diff line number Diff line change
@@ -1,54 +1,66 @@
{%load commitfest%}
<!DOCTYPE html>
<html>
<head>
<title>{{title|default:'Commitfest' }}</title>
<link rel="stylesheet" href="/media/commitfest/css/jquery-ui.css" type="text/css">
<link rel="stylesheet" href="/media/commitfest/css/bootstrap.css" />
<link rel="stylesheet" href="/media/commitfest/css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="/media/commitfest/css/commitfest.css?{% static_file_param %}" />
<link rel="shortcut icon" href="/media/commitfest/favicon.ico" />
{%block extrahead%}{%endblock%}
{%if rss_alternate%} <link rel="alternate" type="application/rss+xml" title="{{rss_alternate_title}}" href="{{rss_alternate}}" />{%endif%}
</head>
<body>
<div class="container-fluid">
<ul class="breadcrumb">
{%if title %}
<li><a href="/">Home</a></li>
{%for c in breadcrumbs%}
<li><a href="{{c.href}}">{{c.title}}</a></li>
{%endfor%}
<li class="active">{{title}}</li>
{%else%}
<li class="active">Home</li>
{%endif%}
<li class="pull-right active">
{%if user.is_authenticated%}
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%})
{%else%}
<a href="/account/login/?next={{request.path}}">Log in</a>
{%endif%}
</li>
{%if header_activity%} <li class="pull-right active"><a href="{{header_activity_link}}">{{header_activity}}</a></li>{%endif%}
</ul>

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated change

{%if title %}
<h1>{{title}}</h1>
{%endif%}
<head>
<title>{{title|default:'Commitfest' }}</title>
<link rel="stylesheet" href="/media/commitfest/css/jquery-ui.css" type="text/css">
<link rel="stylesheet" href="/media/commitfest/css/bootstrap.css" />
<link rel="stylesheet" href="/media/commitfest/css/bootstrap-theme.min.css" />
<link rel="stylesheet" href="/media/commitfest/css/commitfest.css?{% static_file_param %}" />
<link rel="shortcut icon" href="/media/commitfest/favicon.ico" />
{%block extrahead%}{%endblock%}
{%if rss_alternate%}
<link rel="alternate" type="application/rss+xml" title="{{rss_alternate_title}}" href="{{rss_alternate}}" />{%endif%}
</head>

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated change

{%if messages%}
{%for m in messages%}
<div class="alert {{m.tags|alertmap}}">{{m}}</div>
{%endfor%}
{%endif%}
<body>
<div class="container-fluid">
<ul class="breadcrumb">
{%if title %}
<li><a href="/">Home</a></li>
{%for c in breadcrumbs%}
<li><a href="{{c.href}}">{{c.title}}</a></li>
{%endfor%}
<li class="active">{{title}}</li>
{%else%}
<li class="active">Home</li>
{%endif%}
<li class="pull-right active">
{%if user.is_authenticated%}
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%})
{%else%}
<a href="/account/login/?next={{request.path}}">Log in</a>
{%endif%}
</li>
<li class="pull-right active">
<a href="https://github.com/postgres/pgcommitfest" target="_blank"
style="color: white; padding: 8px 12px; background-color: #24292e; border-radius: 5px; text-decoration: none;">
Contribute on GitHub
</a>
</li>
{%if header_activity%} <li class="pull-right active"><a href="{{header_activity_link}}">{{header_activity}}</a>
</li>{%endif%}
</ul>

{%block contents%}
{%endblock%}
</div>
<script src="/media/commitfest/js/jquery.js"></script>
<script src="/media/commitfest/js/jquery-ui.js"></script>
<script src="/media/commitfest/js/bootstrap.js"></script>
<script src="/media/commitfest/js/commitfest.js?{% static_file_param %}"></script>
{%block morescript%}{%endblock%}
</html>
{%if title %}
<h1>{{title}}</h1>
{%endif%}

{%if messages%}
{%for m in messages%}
<div class="alert {{m.tags|alertmap}}">{{m}}</div>
{%endfor%}
{%endif%}

{%block contents%}
{%endblock%}
</div>
<script src="/media/commitfest/js/jquery.js"></script>
<script src="/media/commitfest/js/jquery-ui.js"></script>
<script src="/media/commitfest/js/bootstrap.js"></script>
<script src="/media/commitfest/js/commitfest.js?{% static_file_param %}"></script>
{%block morescript%}{%endblock%}

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

unrelated change

</html>
Loading