From ab66293eb54c7fbb20a584d3238a76b1ea55f8f0 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Apr 04 2019 11:49:58 +0000 Subject: Fix showing branches having unicode characters in their names Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/repo_branches.html b/pagure/templates/repo_branches.html index ef77f0b..55698f5 100644 --- a/pagure/templates/repo_branches.html +++ b/pagure/templates/repo_branches.html @@ -39,7 +39,7 @@ {% endif %} {% for branch in g.branches if branch != head %} -
+
@@ -48,7 +48,7 @@ username=username, namespace=repo.namespace, identifier=branch) }}" - title="{{ branch }}" data-toggle="tooltip">{{ branch }} + title="{{ branch | unicode }}" data-toggle="tooltip">{{ branch | unicode }}
@@ -78,7 +78,7 @@ config.get('ALLOW_DELETE_BRANCH', True) or repo.is_fork) %}
+ onsubmit="return confirm('Are you sure you want to remove the branch: {{ branch | unicode }}?\nThis cannot be un-done!');"> {{ g.confirmationform.csrf_token }}