Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Gepetto
dashboard
Commits
00c79fb8
Commit
00c79fb8
authored
Sep 07, 2018
by
Guilhem Saurel
Browse files
fix branch view
parent
527a4ed8
Pipeline
#1420
failed with stages
in 1 minute and 1 second
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/tables.py
View file @
00c79fb8
...
...
@@ -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
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment