mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
0120c24927
commit
b67890d15d
3 changed files with 30 additions and 0 deletions
|
|
@ -25,6 +25,7 @@ from .utils import (
|
|||
escape_sqlite_table_name,
|
||||
filters_should_redirect,
|
||||
get_all_foreign_keys,
|
||||
is_url,
|
||||
InvalidSql,
|
||||
path_from_row_pks,
|
||||
path_with_added_args,
|
||||
|
|
@ -443,6 +444,10 @@ class RowTableShared(BaseView):
|
|||
)
|
||||
elif value is None:
|
||||
display_value = jinja2.Markup(' ')
|
||||
elif is_url(str(value).strip()):
|
||||
display_value = jinja2.Markup(
|
||||
'<a href="{url}">{url}</a>'.format(url=value.strip())
|
||||
)
|
||||
else:
|
||||
display_value = str(value)
|
||||
cells.append({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue