~sircmpwn/sr.ht-dev

This thread contains a patchset. You're looking at the original emails, but you may wish to use the patch review UI. Review patch
1

[PATCH v3] show ref in title

Details
Message ID
<20231204083101.94513-1-gabriel@augendre.info>
DKIM signature
missing
Download raw message
Patch: +3 -3
Signed-off-by: Gabriel Augendre <gabriel@augendre.info>
---
Dropped the "ref: " text, leaving just the reference inside the parens

 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..42aad5d 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.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..48e9e2a 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.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..e4b0092 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.decode("utf-8", "replace") }}): {{path_join(*path)}}/ - {{cfg("sr.ht", "site-name")}} git</title>
{% endblock %}
{% block content %}
<div class="header-extension">
-- 
2.42.1
Details
Message ID
<CXFGRTUH7XC8.2DVBO8XA2GFW@taiga>
In-Reply-To
<20231204083101.94513-1-gabriel@augendre.info> (view parent)
DKIM signature
missing
Download raw message
Thanks!

To git@git.sr.ht:~sircmpwn/git.sr.ht
   4f0a8ec..4278f32  master -> master
Reply to thread Export thread (mbox)