Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hypha
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ots
hypha
Commits
8984bf87
Commit
8984bf87
authored
7 years ago
by
Chris Lawton
Browse files
Options
Downloads
Patches
Plain Diff
adding base admin html template
parent
ee1fcae9
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
opentech/templates/base-admin.html
+79
-0
79 additions, 0 deletions
opentech/templates/base-admin.html
with
79 additions
and
0 deletions
opentech/templates/base-admin.html
0 → 100644
+
79
−
0
View file @
8984bf87
{% load static wagtailuserbar wagtailcore_tags wagtailimages_tags navigation_tags util_tags %}
<!doctype html>
<html
class=
"no-js"
lang=
"en"
>
<head>
{# TODO fallbacks if page is not defined e.g. for 404 page #}
<meta
charset=
"utf-8"
/>
<title>
{% block title_prefix %}{{ TITLE_PREFIX }}{% endblock %}{% block title %}{% if page.seo_title %}{{ page.seo_title }}{% else %}{{ page.title }}{% endif %}{% endblock %}{% block title_suffix %}{{ TITLE_SUFFIX }}{% endblock %}
</title>
<meta
name=
"description"
content=
"{% if page.search_description %}{{ page.search_description }}{% else %}{{ page.listing_summary }}{% endif %}"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1"
/>
{% if GOOGLE_TAG_MANAGER_ID %}
{# To enable GTM code you need to specify GOOGLE_TAG_MANAGER_ID in production.py or in local.py #}
<!-- Google Tag Manager -->
<script>
(
function
(
w
,
d
,
s
,
l
,
i
){
w
[
l
]
=
w
[
l
]
||
[];
w
[
l
].
push
({
'
gtm.start
'
:
new
Date
().
getTime
(),
event
:
'
gtm.js
'
});
var
f
=
d
.
getElementsByTagName
(
s
)[
0
],
j
=
d
.
createElement
(
s
),
dl
=
l
!=
'
dataLayer
'
?
'
&l=
'
+
l
:
''
;
j
.
async
=
true
;
j
.
src
=
'
https://www.googletagmanager.com/gtm.js?id=
'
+
i
+
dl
;
f
.
parentNode
.
insertBefore
(
j
,
f
);
})(
window
,
document
,
'
script
'
,
'
dataLayer
'
,
'
{{ GOOGLE_TAG_MANAGER_ID|escapejs }}
'
);
</script>
<!-- End Google Tag Manager -->
{% endif %}
<!-- favicons -->
{% comment %}
Generate favicons by http://realfavicongenerator.net using the following path: settings.STATIC_URL + img/favicons.
Then favicon.ico should be copied to a directory called "public" in the application root and puppet does some magic to serve it up at the site root.
{% endcomment %}
{% block extra_css %}{% endblock %}
<link
rel=
"stylesheet"
type=
"text/css"
href=
"{% static 'css/main.css' %}"
>
</head>
<body
class=
"light-grey-bg {% block body_class %}template-{{ page.get_verbose_name|slugify }}{% endblock %}"
>
{% if GOOGLE_TAG_MANAGER_ID %}
{# To enable GTM code you need to specify GOOGLE_TAG_MANAGER_ID in production.py or in local.py #}
<!-- Google Tag Manager (noscript) -->
<noscript><iframe
src=
"https://www.googletagmanager.com/ns.html?id={{ GOOGLE_TAG_MANAGER_ID|escapejs }}"
height=
"0"
width=
"0"
style=
"display:none;visibility:hidden"
></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
{% endif %}
{% include "includes/sprites.html" %}
{% wagtailuserbar %}
<header
class=
"header header--narrow header--white-bg header--light-bg"
>
<div
class=
"header__inner wrapper wrapper--large"
>
<a
href=
"{% slugurl 'home' %}"
aria-label=
"Home link"
>
<svg
class=
"header__logo header__logo--desktop"
><use
xlink:href=
"#logo-desktop--dark"
></use></svg>
<svg
class=
"header__logo header__logo--mobile"
><use
xlink:href=
"#logo-mobile"
></use></svg>
</a>
<div
class=
"header__inner header__inner--mobile-buttons"
>
<button
class=
"button button--left-space js-mobile-menu-toggle"
aria-haspopup=
"true"
>
<svg
class=
"icon icon--mobile-menu"
><use
xlink:href=
"#mobile-menu-toggle"
></use></svg>
</button>
</div>
<div
class=
"header__button-container"
>
<a
href=
"#"
class=
"button button--transparent button--narrow button--contains-icons"
>
<svg
class=
"icon icon--person"
><use
xlink:href=
"#person-icon"
></use></svg>
Joe Bloggs
</a>
<a
href=
"#"
class=
"button button--transparent button--narrow"
>
Log Out
</a>
</div>
</div>
</header>
<main
class=
"wrapper wrapper--large wrapper--main"
>
{% block content %}{% endblock %}
</main>
<footer
class=
"footer"
></footer>
<script
type=
"text/javascript"
src=
"{% static 'js/main.js' %}"
></script>
{% block extra_js %}{% endblock %}
</body>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment