From: Kohei Yoshino Date: Mon, 8 Apr 2019 22:27:56 +0000 (-0400) Subject: Bug 1531481 - Add bug type labels to My Dashboard X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cf12451c348f2a396912b42efaf0eedd0d591a01;p=thirdparty%2Fbugzilla.git Bug 1531481 - Add bug type labels to My Dashboard --- diff --git a/extensions/MyDashboard/lib/Queries.pm b/extensions/MyDashboard/lib/Queries.pm index 59cb4f14e..83cc84b83 100644 --- a/extensions/MyDashboard/lib/Queries.pm +++ b/extensions/MyDashboard/lib/Queries.pm @@ -39,6 +39,7 @@ use constant QUERY_ORDER => ("changeddate desc", "bug_id"); # Share with buglist.cgi? use constant SELECT_COLUMNS => qw( bug_id + bug_type bug_status short_desc changeddate diff --git a/extensions/MyDashboard/web/js/query.js b/extensions/MyDashboard/web/js/query.js index 1f1836b7b..6a4338389 100644 --- a/extensions/MyDashboard/web/js/query.js +++ b/extensions/MyDashboard/web/js/query.js @@ -53,7 +53,7 @@ $(function() { bugQuery.plug(Y.Plugin.DataSourceJSONSchema, { schema: { resultListLocator: "result.result.bugs", - resultFields: ["bug_id", "changeddate", "changeddate_fancy", + resultFields: ["bug_id", "bug_type", "changeddate", "changeddate_fancy", "bug_status", "short_desc", "changeddate_api" ], metaFields: { description: "result.result.description", @@ -170,6 +170,9 @@ $(function() { bugQueryTable = new Y.DataTable({ columns: [ { key: Y.Plugin.DataTableRowExpansion.column_key, label: ' ', sortable: false }, + { key: "bug_type", label: "T", allowHTML: true, sortable: true, + formatter: '' }, { key: "bug_id", label: "Bug", allowHTML: true, sortable: true, formatter: `{value}` }, { key: "changeddate", label: "Updated", formatter: updatedFormatter, diff --git a/extensions/MyDashboard/web/styles/mydashboard.css b/extensions/MyDashboard/web/styles/mydashboard.css index f5ccfec19..d7bb34712 100644 --- a/extensions/MyDashboard/web/styles/mydashboard.css +++ b/extensions/MyDashboard/web/styles/mydashboard.css @@ -13,6 +13,10 @@ width: 100%; } +.yui3-datatable-col-bug_type { + text-align: center; +} + .yui3-datatable-col-changeddate, .yui3-datatable-col-created { white-space: nowrap;