summaryrefslogtreecommitdiffstats
path: root/extensions
diff options
context:
space:
mode:
authordklawren <dklawren@users.noreply.github.com>2018-08-08 16:39:53 +0200
committerGitHub <noreply@github.com>2018-08-08 16:39:53 +0200
commit9bd9f9038b3b469f07d1567156b7feb5bda2af18 (patch)
tree7837711d0420ef48ac6a53ee00576c4baf01e3a2 /extensions
parent3576979f62c112c43b1387b211cefd5b14984ff0 (diff)
downloadbugzilla-9bd9f9038b3b469f07d1567156b7feb5bda2af18.tar.gz
bugzilla-9bd9f9038b3b469f07d1567156b7feb5bda2af18.tar.xz
Bug 1480891 my dashboard does not show the revision id and title for phabricator review requests
Diffstat (limited to 'extensions')
-rw-r--r--extensions/MyDashboard/web/js/flags.js11
1 files changed, 6 insertions, 5 deletions
diff --git a/extensions/MyDashboard/web/js/flags.js b/extensions/MyDashboard/web/js/flags.js
index 425e42e57..8931e277a 100644
--- a/extensions/MyDashboard/web/js/flags.js
+++ b/extensions/MyDashboard/web/js/flags.js
@@ -154,11 +154,10 @@ $(function () {
'<tr class="' + row.getAttribute('class') + '">' +
'<td class="yui3-datatable-cell" colspan="4">' +
'<a href="' + o.data.url + '" target="_blank">' +
- Y.Escape.html('D' + o.data.id + ' - ' + o.data.title) +
- '</a></td></tr>',
- 'before');
+ Y.Escape.html(o.data.title) + '</a></td></tr>',
+ 'after');
- o.cell.set('text', o.data.status == 'added' ? 'pending' : o.data.status);
+ o.cell.setHTML('<a href="' + o.data.url + '">D' + o.data.id + '</a>');
return false;
};
@@ -179,7 +178,9 @@ $(function () {
dataTable.reviews = new Y.DataTable({
columns: [
{ key: 'author_email', label: 'Requester', sortable: true,
- formattter: phabAuthorFormatter, allowHTML: true },
+ formatter: phabAuthorFormatter, allowHTML: true },
+ { key: 'id', label: 'Revision', sortable: true,
+ nodeFormatter: phabRowFormatter, allowHTML: true },
{ key: 'bug_id', label: 'Bug', sortable: true,
formatter: bugLinkFormatter, allowHTML: true },
{ key: 'updated', label: 'Updated', sortable: true,