]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1552720 - Linkify bug summaries on My Dashboard query table
authorKohei Yoshino <kohei.yoshino@gmail.com>
Mon, 20 May 2019 19:00:27 +0000 (15:00 -0400)
committerGitHub <noreply@github.com>
Mon, 20 May 2019 19:00:27 +0000 (15:00 -0400)
extensions/MyDashboard/web/js/query.js
extensions/MyDashboard/web/styles/mydashboard.css

index 6a4338389f23b2125cda4fa56a0a00ac8fd64f90..fe7a28a76635a50ccd6b2356f994ce8d8ede7f7e 100644 (file)
@@ -147,6 +147,9 @@ $(function() {
                 o.data.changeddate_fancy.htmlEncode() + '</span>';
         };
 
+        const link_formatter = ({ data, value }) =>
+          `<a href="${BUGZILLA.config.basepath}show_bug.cgi?id=${data.bug_id}" target="_blank">
+          ${String(value).htmlEncode()}</a>`;
 
         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: '<span class="bug-type-label iconic" title="{value}" aria-label="{value}" ' +
                            'data-type="{value}"><span class="icon" aria-hidden="true"></span></span>' },
-                { key: "bug_id", label: "Bug", allowHTML: true, sortable: true,
-                formatter: `<a href="${BUGZILLA.config.basepath}show_bug.cgi?id={value}" target="_blank">{value}</a>` },
+                { 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'
index 1f90c4d398bed4fc6ccc7ff2343093f61d802b10..689689b39e577f2b8239b6b31975f9c8c34e9dd0 100644 (file)
@@ -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;
 }