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
5a98f9f6
Commit
5a98f9f6
authored
Sep 07, 2018
by
Guilhem Saurel
Browse files
oops
parent
00c79fb8
Pipeline
#1421
passed with stages
in 1 minute and 2 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/tables.py
View file @
5a98f9f6
...
...
@@ -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
):
...
...
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