Skip to content

Commit

Permalink
added gtag
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-allaway committed Jul 16, 2024
1 parent 63ea7cd commit 77c094f
Show file tree
Hide file tree
Showing 2 changed files with 158 additions and 0 deletions.
8 changes: 8 additions & 0 deletions django/core/templates/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,14 @@
<!-- JavaScript -->
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-5XT7FT7XK0"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-5XT7FT7XK0');
</script>
<!-- Cookies popup message -->
<script src="{% static 'js/cookiesmsg.js' %}"></script>

Expand Down
150 changes: 150 additions & 0 deletions django/core/templates/base1.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
{% load static %}

<!DOCTYPE html>
<html lang="en">

<head>

<title>Post-Socialist Britain?</title>

<!--Meta-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="Post-Socialist Britain? research project website">
<meta name="author" content="University of Birmingham">

<!-- Fonts -->
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;600&display=swap" rel="stylesheet">

<!-- CSS -->
<!-- Bootstrap -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">

<!-- Font Awesome -->
<link rel="stylesheet"
href="https://use.fontawesome.com/releases/v5.3.1/css/all.css"
integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU"
crossorigin="anonymous">

<!-- Custom -->
<link rel="stylesheet" type="text/css" href="{% static 'css/custom.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/custom_small.css' %}">
<link rel="stylesheet" type="text/css" href="{% static 'css/custom_large.css' %}">

<!--Set the favicon-->
<link rel="icon" type="image/png" href="{% static 'images/favicon.png' %}">

</head>

<body>

<!-- jQuery (has to load at start of page, as some templates that extend from this base template include jQuery in them) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>

<!-- Navigation bar -->
<nav class="navbar fixed-top navbar-expand-lg">
<!-- Logo -->
<a class="navbar-brand" href="{% url 'general:welcome' %}"><h1><strong>Post-Socialist</strong> <span>Britain?</span></h1></a>
<!-- Nav toggle button (for small screens) -->
<button class="navbar-toggler" type="button" title="navbartoggle" data-toggle="collapse" data-target="#navbarNavDropdown" aria-controls="navbarNavDropdown" aria-expanded="false">
<i class="fas fa-bars"></i>
</button>
<!-- Nav list -->
<div class="collapse navbar-collapse" id="navbarNavDropdown">
<ul class="navbar-nav ml-auto">
<!-- Welcome -->
<li class="nav-item">
<a class="nav-link{% if request.path == '/' or request.path == '/ld/' %} active{% endif %}" href="{% url 'general:welcome' %}">
Welcome
</a>
</li>
<!-- About -->
<li class="nav-item">
<a class="nav-link{% if '/about/' in request.path %} active{% endif %}" href="{% url 'general:about' %}">
About
</a>
</li>
<!-- Communities -->
<li class="nav-item">
<a class="nav-link{% if '/communities/' in request.path %} active{% endif %}" href="{% url 'communities:story-list' %}">
Communities
</a>
</li>
<!-- Engagement -->
<li class="nav-item">
<a class="nav-link{% if '/engagement/' in request.path %} active{% endif %}" href="{% url 'general:engagement' %}">
Engagement
</a>
</li>
<!-- Events -->
<li class="nav-item">
<a class="nav-link{% if '/events/' in request.path %} active{% endif %}" href="{% url 'events:event-list' %}">
Events
</a>
</li>
<!-- Outputs -->
<li class="nav-item">
<a class="nav-link{% if '/outputs/' in request.path %} active{% endif %}" href="{% url 'outputs:output-list' %}">
Outputs
</a>
</li>
<!-- Education -->
<li class="nav-item">
<a class="nav-link{% if '/education/' in request.path %} active{% endif %}" href="{% url 'general:education' %}">
Education
</a>
</li>
</ul>
</div>
</nav>

<!-- Main -->
<main id="main">
<div id="main-content">
{% block main %}
{% endblock %}
</div>
</main>

<!-- Footer -->
<footer class="container-fluid">
<!-- Content -->
<div id="footer-content" class="container">
<div id="footer-content-logos">
<!-- University of Birmingham -->
<a href="https://www.birmingham.ac.uk/" target="_blank"><img src="{% static 'images/logos/uob-cal.png' %}" alt="University of Birmingham"></a>
<!-- Nottingham Trent University -->
<a href="https://www.ntu.ac.uk/" target="_blank"><img src="{% static 'images/logos/ntu.jpg' %}" alt="Nottingham Trent University"></a>
<!-- AHRC -->
<a href="https://ahrc.ukri.org/" target="_blank"><img src="{% static 'images/logos/ahrc.png' %}" alt="AHRC"></a>
</div>
<p>
<strong>Post-Socialist Britain?</strong> is a research project led by <a href="https://www.birmingham.ac.uk/staff/profiles/languages/jones-sara.aspx">Professor Sara Jones</a> at the <a href="http://www.birmingham.ac.uk">University of Birmingham</a>
</p>
<p>
This website has been developed by the <a href="http://www.birmingham.ac.uk/bear-software">Research Software Group</a> for the <a href="https://www.birmingham.ac.uk/university/colleges/artslaw/index.aspx">College of Arts and Law</a>
</p>
<p>
<a href="https://www.birmingham.ac.uk/privacy/index.aspx" target="_blank">Privacy</a> |
<a href="https://www.birmingham.ac.uk/legal/index.aspx" target="_blank">Legal</a> |
<a href="https://www.birmingham.ac.uk/university/governance/policies-regs/information/index.aspx" target="_blank">Freedom of Information</a> |
<a href="{% url 'general:cookies' %}">Cookies</a> |
<a href="https://accessibility.bear.bham.ac.uk/statements-cal.html" target="_blank">Accessibility</a>
</p>
<p>
© University of Birmingham {% now "Y" %}
</p>
</div>
</footer>

<!-- JavaScript -->
<!-- Bootstrap JS -->
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<!-- Cookies popup message -->
<script src="{% static 'js/cookiesmsg.js' %}"></script>

</body>

</html>

0 comments on commit 77c094f

Please sign in to comment.