From: Kohei Yoshino Date: Mon, 20 May 2019 19:00:27 +0000 (-0400) Subject: Bug 1552720 - Linkify bug summaries on My Dashboard query table X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=1f6fa0d59fa20191ab30929619e653bea784cf5e;p=thirdparty%2Fbugzilla.git Bug 1552720 - Linkify bug summaries on My Dashboard query table --- 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; }