Commit 00c79fb8 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

fix branch view

parent 527a4ed8
Pipeline #1420 failed with stages
in 1 minute and 1 second
......@@ -69,7 +69,8 @@ class BranchTable(StrippedTable):
def render_name(self, record, value):
if record.repo is None:
return value
name = record.name.split('/', maxsplit=2)[2]
if '/' in name:
name = record.name.split('/', maxsplit=2)[2]
return mark_safe(f'<a href="{record.repo.url}/tree/{name}">{name}</a>')
def render_forge(self, value):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment