From c7ba6e6fd358bd49a95f29cb19231890341baec9 Mon Sep 17 00:00:00 2001 From: OpenClaw Sub-agent Date: Sat, 1 Aug 2026 20:58:07 +1000 Subject: [PATCH] fix: show Action badge for ACTION links in detail and list views link_detail.html and _link_row.html only handled Template/LINK types, so ACTION links fell through to the Custom badge. Add badge-action branch + CSS so go/link/235/ (alias=ask) displays Action, matching the Action tab in the link form. --- links/templates/links/_link_row.html | 2 ++ links/templates/links/link_detail.html | 3 +++ links/templates/links/link_list.html | 1 + 3 files changed, 6 insertions(+) diff --git a/links/templates/links/_link_row.html b/links/templates/links/_link_row.html index bf090b3..72cca5d 100644 --- a/links/templates/links/_link_row.html +++ b/links/templates/links/_link_row.html @@ -11,6 +11,8 @@ {% trans "Template" %} {% elif link.link_type == 'LINK' %} {% trans "Link" %} + {% elif link.link_type == 'ACTION' %} + {% trans "Action" %} {% else %} {% trans "Custom" %} {% endif %} diff --git a/links/templates/links/link_detail.html b/links/templates/links/link_detail.html index b60f3fa..611e2d6 100644 --- a/links/templates/links/link_detail.html +++ b/links/templates/links/link_detail.html @@ -14,6 +14,8 @@ {% trans "Template" %} {% elif link.link_type == 'LINK' %} {% trans "Link" %} + {% elif link.link_type == 'ACTION' %} + {% trans "Action" %} {% else %} {% trans "Custom" %} {% endif %} @@ -427,6 +429,7 @@ .badge-template { background: rgba(191, 90, 242, 0.12); color: #8944ab; } .badge-link { background: rgba(0, 113, 227, 0.10); color: var(--apple-blue); } .badge-custom { background: rgba(48, 209, 88, 0.15); color: #1e7b34; } + .badge-action { background: rgba(191, 90, 242, 0.12); color: #8944ab; } .action-btn { display: inline-flex; align-items: center; gap: 0.4rem; diff --git a/links/templates/links/link_list.html b/links/templates/links/link_list.html index a09a2ea..a078a63 100644 --- a/links/templates/links/link_list.html +++ b/links/templates/links/link_list.html @@ -259,6 +259,7 @@ .badge-template { background: rgba(191, 90, 242, 0.12); color: #8944ab; } .badge-link { background: rgba(0, 113, 227, 0.10); color: var(--apple-blue); } .badge-custom { background: rgba(48, 209, 88, 0.15); color: #1e7b34; } + .badge-action { background: rgba(191, 90, 242, 0.12); color: #8944ab; } .icon-btn { display: inline-flex; align-items: center; justify-content: center;