Commit 5a98f9f6 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

oops

parent 00c79fb8
Pipeline #1421 passed with stages
in 1 minute and 2 seconds
......@@ -69,8 +69,7 @@ class BranchTable(StrippedTable):
def render_name(self, record, value):
if record.repo is None:
return value
if '/' in name:
name = record.name.split('/', maxsplit=2)[2]
name = record.name.split('/', maxsplit=2)[2] if '/' in record.name else record.name
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