From 4ded12ed216e3f4a865b4b932e06841851bbd256 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Sun, 28 Feb 2021 21:37:42 +0700 Subject: [PATCH] Decode ref in HTML rendering This fixes the refs being rendered as b'ref' in HTML. --- gitsrht/templates/log.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gitsrht/templates/log.html b/gitsrht/templates/log.html index d559455..6d34db2 100644 --- a/gitsrht/templates/log.html +++ b/gitsrht/templates/log.html @@ -1,12 +1,12 @@ {% extends "repo.html" %} {% import "utils.html" as utils with context %} {% block title %} -{{repo.owner.canonical_name}}/{{repo.name}}: {% if path != [''] %}{{path_join(*path)}} {% endif %}{{ref}} - {{cfg("sr.ht", "site-name")}} git +{{repo.owner.canonical_name}}/{{repo.name}}: {% if path != [''] %}{{path_join(*path)}} {% endif %}{{ ref.decode() }} - {{cfg("sr.ht", "site-name")}} git {% endblock %} {% block head %} {% endblock %} -- 2.38.4