Skip to content

Commit

Permalink
Linking thumbnails in tables for easier navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderWatzinger committed Jan 21, 2025
1 parent 0f4da1c commit 4aab3d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion openatlas/views/entity_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ def get_table(view: str) -> tuple[Table, str]:
entity.get_file_ext(),
entity.description]
if show_table_icons():
data.insert(1, file_preview(entity.id))
data.insert(
1,
f'<a href="{url_for("view", id_=entity.id)}">'
f'{file_preview(entity.id)}</a>')
table.rows.append(data)
file_info = (
uc_first(_('files')) + ': ' +
Expand Down

0 comments on commit 4aab3d2

Please sign in to comment.