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
dda63b86
Commit
dda63b86
authored
May 16, 2018
by
Guilhem Saurel
Browse files
Images table: show name & url
parent
84e2b020
Pipeline
#725
passed with stages
in 43 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
rainboard/tables.py
View file @
dda63b86
...
...
@@ -90,9 +90,15 @@ class BranchTable(StrippedTable):
class
ImageTable
(
StrippedTable
):
name
=
tables
.
Column
(
accessor
=
'get_image_name'
,
orderable
=
False
)
class
Meta
:
model
=
models
.
Image
fields
=
(
'robotpkg'
,
'target'
,
'image'
,
'py3'
,
'created'
)
fields
=
(
'name'
,
'robotpkg'
,
'target'
,
'image'
,
'py3'
,
'created'
)
def
render_name
(
self
,
record
,
value
):
if
value
:
return
mark_safe
(
f
'<a href="
{
record
.
get_image_url
}
">
{
value
}
</a>'
)
class
ContributorTable
(
StrippedTable
):
...
...
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