Signed-off-by: Gabriel Augendre <gabriel@augendre.info>
---
Text has been updated to be more generic according to feedback.
gitsrht/templates/blame.html | 2 +-
gitsrht/templates/blob.html | 2 +-
gitsrht/templates/tree.html | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gitsrht/templates/blame.html b/gitsrht/templates/blame.html
index 2c09ea5..f99df22 100644
--- a/gitsrht/templates/blame.html
+++ b/gitsrht/templates/blame.html
@@ -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: {{ ref.decode("utf-8", "replace") }}): {{path_join(*path)}} blame - {{cfg("sr.ht", "site-name")}} git</title>
{% endblock %}
{% block repohead %}
<style>
diff --git a/gitsrht/templates/blob.html b/gitsrht/templates/blob.html
index aabd676..1275ac6 100644
--- a/gitsrht/templates/blob.html
+++ b/gitsrht/templates/blob.html
@@ -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: {{ ref.decode("utf-8", "replace") }}): {{path_join(*path)}} - {{cfg("sr.ht", "site-name")}} git</title>
{% endblock %}
{% block repohead %}
<style>
diff --git a/gitsrht/templates/tree.html b/gitsrht/templates/tree.html
index c5db400..1bf7505 100644
--- a/gitsrht/templates/tree.html
+++ b/gitsrht/templates/tree.html
@@ -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: {{ ref.decode("utf-8", "replace") }}): {{path_join(*path)}}/ - {{cfg("sr.ht", "site-name")}} git</title>
{% endblock %}
{% block content %}
<div class="header-extension">
--
2.42.1
Sorry to come back in for a v3 but I think this would be better if we
just dropped "ref: " and did "repo/user (master) ..." kind of deal
instead.