]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1480891 my dashboard does not show the revision id and title for phabricator...
authordklawren <dklawren@users.noreply.github.com>
Wed, 8 Aug 2018 14:39:53 +0000 (10:39 -0400)
committerGitHub <noreply@github.com>
Wed, 8 Aug 2018 14:39:53 +0000 (10:39 -0400)
extensions/MyDashboard/web/js/flags.js

index 425e42e57a1807dd231ed306912f844dce3201c6..8931e277ad44a339c98a92bd48f120b9f2b15976 100644 (file)
@@ -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,