From 674679645084133e5d2098e4b5e6cad7b69a9746 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Fri, 1 Sep 2023 03:16:08 +0100 Subject: [PATCH] Add 'plain' link from blobs to nav bar --- statics/sass/style.scss | 5 +++++ templates/base.html | 10 +++++++++- templates/repo/base.html | 22 +++++++++++++++------- templates/repo/file.html | 4 ++++ 4 files changed, 33 insertions(+), 8 deletions(-) diff --git a/statics/sass/style.scss b/statics/sass/style.scss index 75b5c61..58012fe 100644 --- a/statics/sass/style.scss +++ b/statics/sass/style.scss @@ -28,6 +28,11 @@ header { nav { margin-top: 2rem; border-bottom: solid 3px #ccc; + display: flex; + + .grow { + flex-grow: 1; + } @media (prefers-color-scheme: dark) { border-bottom-color: $darkModeHighlightColour; diff --git a/templates/base.html b/templates/base.html index 3f49e28..4c02da1 100644 --- a/templates/base.html +++ b/templates/base.html @@ -18,7 +18,15 @@ {%- block nav -%} {%- endblock -%} diff --git a/templates/repo/base.html b/templates/repo/base.html index b4b58dc..30a7456 100644 --- a/templates/repo/base.html +++ b/templates/repo/base.html @@ -8,12 +8,20 @@ {% block nav %} {% endblock %} diff --git a/templates/repo/file.html b/templates/repo/file.html index b933f81..d2727ec 100644 --- a/templates/repo/file.html +++ b/templates/repo/file.html @@ -7,6 +7,10 @@ {% block tree_nav_class %}active{% endblock %} +{% block extra_nav_links %} + plain +{% endblock %} + {% block content %}
{{ file.content|safe }}
{% endblock %} -- libgit2 1.7.2