~edwargix/git.sr.ht

4ded12ed216e3f4a865b4b932e06841851bbd256 — Nguyễn Gia Phong 3 years ago 26cc906
Decode ref in HTML rendering

This fixes the refs being rendered as b'ref' in HTML.
1 files changed, 2 insertions(+), 2 deletions(-)

M gitsrht/templates/log.html
M gitsrht/templates/log.html => gitsrht/templates/log.html +2 -2
@@ 1,12 1,12 @@
{% extends "repo.html" %}
{% import "utils.html" as utils with context %}
{% block title %}
<title>{{repo.owner.canonical_name}}/{{repo.name}}: {% if path != [''] %}{{path_join(*path)}} {% endif %}{{ref}} - {{cfg("sr.ht", "site-name")}} git</title>
<title>{{repo.owner.canonical_name}}/{{repo.name}}: {% if path != [''] %}{{path_join(*path)}} {% endif %}{{ ref.decode() }} - {{cfg("sr.ht", "site-name")}} git</title>
{% endblock %}

{% block head %}
  <link rel="alternate"
    title="{{ repo.owner.canonical_name }}/{{ repo.name }}: {{ ref }} log"
    title="{{ repo.owner.canonical_name }}/{{ repo.name }}: {{ ref.decode() }} log"
    type="application/rss+xml"
    href="{{ root }}{{ repo|log_rss_url(ref=ref) }}">
{% endblock %}