From 46897de2cab6ff20c90a7e1330c7cef0a6576b83 Mon Sep 17 00:00:00 2001 From: Chris Lawton <chris.lawton@torchbox.com> Date: Thu, 1 Feb 2018 15:06:14 +0000 Subject: [PATCH] moving the sticky apply button in to it's own template --- opentech/templates/base.html | 5 ++++- opentech/templates/includes/apply_button.html | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 opentech/templates/includes/apply_button.html diff --git a/opentech/templates/base.html b/opentech/templates/base.html index d395b3456..fa045c38f 100644 --- a/opentech/templates/base.html +++ b/opentech/templates/base.html @@ -75,7 +75,10 @@ <header class="header header--standard {% block header_modifier %}{% endblock %}"> {% endif %} - <a href="#" class="link link--fixed-apply">Apply</a> + {% block apply_button %} + {% include "includes/apply_button.html" %} + {% endblock %} + <div class="header__inner wrapper wrapper--large"> <a href="{% slugurl 'home' %}" aria-label="Home link"> <svg class="header__logo header__logo--desktop header__logo--desktop-light"><use xlink:href="#logo-desktop"></use></svg> diff --git a/opentech/templates/includes/apply_button.html b/opentech/templates/includes/apply_button.html new file mode 100644 index 000000000..477d0ed90 --- /dev/null +++ b/opentech/templates/includes/apply_button.html @@ -0,0 +1 @@ +<a href="#" class="link link--fixed-apply">Apply</a> -- GitLab