Commit dda63b86 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

Images table: show name & url

parent 84e2b020
Pipeline #725 passed with stages
in 43 seconds
......@@ -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):
Supports Markdown
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