Skip to content

Commit

Permalink
fix: misunderstood what stretched-link is.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Dec 3, 2024
1 parent 5e65877 commit 9e85d19
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions website/web/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1970,7 +1970,7 @@ def __prepare_node_view(capture_uuid: str, nodes: set[str], from_popup: bool=Fal
for node in nodes:
to_return += '<li>'
if from_popup:
to_return += f"""<a href="#" class="stretched-link openNewTab" data-capture="{capture_uuid}" data-hostnode="{node}">{node}</a>"""
to_return += f"""<a href="#" class="openNewTab" data-capture="{capture_uuid}" data-hostnode="{node}">{node}</a>"""
else:
to_return += f'<a href="{url_for("tree", tree_uuid=capture_uuid, node_uuid=node)}">{node}</a>'
to_return += '</li>'
Expand All @@ -1995,7 +1995,7 @@ def post_table(table_name: str, value: str) -> Response:
'url': f"""<span class="d-inline-block text-break" style="max-width: 400px;">{url}</span>"""
}
if from_popup:
to_append['capture_title'] = f""" <a href="#" class="stretched-link openNewTab" data-capture="{capture_uuid}" data-hostnode="{hostnode_uuid}">{title}</a>"""
to_append['capture_title'] = f""" <a href="#" class="openNewTab" data-capture="{capture_uuid}" data-hostnode="{hostnode_uuid}">{title}</a>"""
else:
to_append['capture_title'] = f"""<a href="{url_for('tree', tree_uuid=capture_uuid, node_uuid=hostnode_uuid)}">{title}</a>"""
prepared_captures.append(to_append)
Expand All @@ -2012,7 +2012,7 @@ def post_table(table_name: str, value: str) -> Response:
'landing_page': f"""<span class="d-inline-block text-break" style="max-width: 400px;">{landing_page}</span>"""
}
if from_popup:
to_append['capture_title'] = f"""<a href="#" class="stretched-link openNewTab" data-capture="{capture_uuid}">{title}</a>"""
to_append['capture_title'] = f"""<a href="#" class="openNewTab" data-capture="{capture_uuid}">{title}</a>"""
else:
to_append['capture_title'] = f"""<a href="{url_for('tree', tree_uuid=capture_uuid)}">{title}</a>"""
to_append['capture_title'] += f'</br>{_nodes}'
Expand All @@ -2029,7 +2029,7 @@ def post_table(table_name: str, value: str) -> Response:
'url': f"""<span class="d-inline-block text-break" style="max-width: 400px;">{url}</span>"""
}
if from_popup:
to_append['capture_title'] = f""" <a href="#" class="stretched-link openNewTab" data-capture="{capture_uuid}" data-hostnode="{hostnode_uuid}">{title}</a>"""
to_append['capture_title'] = f""" <a href="#" class="openNewTab" data-capture="{capture_uuid}" data-hostnode="{hostnode_uuid}">{title}</a>"""
else:
to_append['capture_title'] = f"""<a href="{url_for('tree', tree_uuid=capture_uuid, node_uuid=hostnode_uuid)}">{title}</a>"""
prepared_captures.append(to_append)
Expand Down

0 comments on commit 9e85d19

Please sign in to comment.