diff --git a/server.py b/server.py index b6d9b8c..6787fd3 100644 --- a/server.py +++ b/server.py @@ -4064,10 +4064,14 @@ async def ui_publish_run(run_id: str, request: Request): l2_https = l2_server.replace("http://", "https://") asset_name = result["asset"]["name"] short_name = asset_name[:16] + "..." if len(asset_name) > 20 else asset_name + # Link to activity (the published run) rather than just the asset + activity = result.get("activity") + activity_id = activity.get("activity_id") if activity else None + l2_link = f"{l2_https}/activities/{activity_id}" if activity_id else f"{l2_https}/assets/{asset_name}" return HTMLResponse(f'''
Published to L2 as {short_name}! - View on L2 + View on L2
''') except http_requests.exceptions.HTTPError as e: