show ref in title

Signed-off-by: Gabriel Augendre <gabriel@augendre.info>
This commit is contained in:
Gabriel Augendre 2023-12-04 09:30:32 +01:00 committed by Drew DeVault
parent 8249531f38
commit 32c466e8a7
3 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
{% extends "repo-full.html" %}
{% import "utils.html" as utils %}
{% block title %}
<title>{{repo.owner.canonical_name}}/{{repo.name}}: {{path_join(*path)}} blame - {{cfg("sr.ht", "site-name")}} git</title>
<title>{{repo.owner.canonical_name}}/{{repo.name}} ({{ ref.decode("utf-8", "replace") }}): {{path_join(*path)}} blame - {{cfg("sr.ht", "site-name")}} git</title>
{% endblock %}
{% block repohead %}
<style>

View File

@ -1,7 +1,7 @@
{% extends "repo-full.html" %}
{% import "utils.html" as utils %}
{% block title %}
<title>{{repo.owner.canonical_name}}/{{repo.name}}: {{path_join(*path)}} - {{cfg("sr.ht", "site-name")}} git</title>
<title>{{repo.owner.canonical_name}}/{{repo.name}} ({{ ref.decode("utf-8", "replace") }}): {{path_join(*path)}} - {{cfg("sr.ht", "site-name")}} git</title>
{% endblock %}
{% block repohead %}
<style>

View File

@ -1,7 +1,7 @@
{% extends "repo.html" %}
{% import "utils.html" as utils %}
{% block title %}
<title>{{repo.owner.canonical_name}}/{{repo.name}}: {{path_join(*path)}}/ - {{cfg("sr.ht", "site-name")}} git</title>
<title>{{repo.owner.canonical_name}}/{{repo.name}} ({{ ref.decode("utf-8", "replace") }}): {{path_join(*path)}}/ - {{cfg("sr.ht", "site-name")}} git</title>
{% endblock %}
{% block content %}
<div class="header-extension">