Skip to content

Commit

Permalink
feat(tables): add labelstudio link to annotations table
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Jan 8, 2025
1 parent e8ec9d7 commit 56bb5bb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
Binary file added apis_instance_nsvis/static/img/labelstudio.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions apis_instance_nsvis/tables.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import django_tables2 as tables
from apis_core.apis_entities.tables import AbstractEntityTable


class AnnotationTable(AbstractEntityTable):
labelstudio = tables.TemplateColumn(template_name="columns/labelstudio_link.html")
3 changes: 3 additions & 0 deletions apis_instance_nsvis/templates/columns/labelstudio_link.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<a href="https://label-studio.acdh-dev.oeaw.ac.at/projects/{{record.data.project_id}}/data?task={{ record.lst_task_id }}" target="_blank">
<img src="/static/img/labelstudio.png">
</a>

0 comments on commit 56bb5bb

Please sign in to comment.