From 1f6fa0d59fa20191ab30929619e653bea784cf5e Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Mon, 20 May 2019 15:00:27 -0400 Subject: [PATCH] Bug 1552720 - Linkify bug summaries on My Dashboard query table --- extensions/MyDashboard/web/js/query.js | 8 +++++--- extensions/MyDashboard/web/styles/mydashboard.css | 3 ++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/extensions/MyDashboard/web/js/query.js b/extensions/MyDashboard/web/js/query.js index 6a4338389..fe7a28a76 100644 --- a/extensions/MyDashboard/web/js/query.js +++ b/extensions/MyDashboard/web/js/query.js @@ -147,6 +147,9 @@ $(function() { o.data.changeddate_fancy.htmlEncode() + ''; }; + const link_formatter = ({ data, value }) => + ` + ${String(value).htmlEncode()}`; lastChangesQuery = new Y.DataSource.IO({ source: `${BUGZILLA.config.basepath}jsonrpc.cgi` }); @@ -173,12 +176,11 @@ $(function() { { key: "bug_type", label: "T", allowHTML: true, sortable: true, formatter: '' }, - { key: "bug_id", label: "Bug", allowHTML: true, sortable: true, - formatter: `{value}` }, + { key: "bug_id", label: "Bug", sortable: true, allowHTML: true, formatter: link_formatter }, { key: "changeddate", label: "Updated", formatter: updatedFormatter, allowHTML: true, sortable: true }, { key: "bug_status", label: "Status", sortable: true }, - { key: "short_desc", label: "Summary", sortable: true }, + { key: "short_desc", label: "Summary", sortable: true, allowHTML: true, formatter: link_formatter }, ], strings: { emptyMessage: 'Zarro Boogs found' diff --git a/extensions/MyDashboard/web/styles/mydashboard.css b/extensions/MyDashboard/web/styles/mydashboard.css index 1f90c4d39..689689b39 100644 --- a/extensions/MyDashboard/web/styles/mydashboard.css +++ b/extensions/MyDashboard/web/styles/mydashboard.css @@ -22,7 +22,8 @@ white-space: nowrap; } -.yui3-datatable-col-short_desc { +.yui3-datatable-col-short_desc a { + color: inherit !important; font-size: var(--font-size-large) !important; } -- 2.47.3