Skip to content

Commit

Permalink
Update help for Center Report component.
Browse files Browse the repository at this point in the history
Also switch to using the standard inheritance model.
  • Loading branch information
jpwhite4 committed Sep 17, 2019
1 parent 60422d6 commit ed0d080
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 40 deletions.
1 change: 1 addition & 0 deletions html/gui/images/help/centerreport-component.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 6 additions & 40 deletions html/gui/js/modules/dashboard/CenterReportCardComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,57 +31,23 @@ Ext.namespace('XDMoD.Module.Dashboard');
* - `this.gridstore.listeners.load`
* - `this.gridstore.listeners.exception`
*/
XDMoD.Module.Dashboard.CenterReportCardComponent = Ext.extend(Ext.ux.Portlet, {
XDMoD.Module.Dashboard.CenterReportCardComponent = Ext.extend(CCR.xdmod.ui.Portlet, {

layout: 'fit',
autoScroll: true,
titleBase: 'Center Report Card',

tools: [
{
id: 'help',
qtip: [
'<ul>',
'<li style="padding-top:6px;margin-bottom:6px;">',
'<span style="width:20px;background:#ff0000;display:inline-block">&nbsp;</span>',
'<span><b>Failed Runs</b></span>',
'<ul>',
'<li style="margin-left:6px;">A run in which the app kernel failed to complete successfully.</li>',
'</ul>',
'</li>',
'<li style="margin-top:6px;margin-bottom:6px;">',
'<span style="width: 20px;background:#ffb336;display:inline-block">&nbsp;</span>',
'<span><b>Under Performing Runs</b></span>',
'<ul>',
'<li style="margin-left:6px;">A run in which the app kernel completed successfully but performed below the established control region.</li>',
'</ul>',
'</li>',
'<li style="margin-top:6px;margin-bottom:6px;">',
'<span style="width: 20px;background:#50b432;display:inline-block ">&nbsp;</span>',
'<span><b>In Control Runs</b></span>',
'<ul>',
'<li style="margin-left:6px;">A run in which the app kernel completed successfully and performed within the established control region.</li>',
'</ul>',
'</li>',
'<li style="margin-top:6px;padding-bottom:6px;">',
'<span style="width: 20px;background:#3c86ff;display:inline-block">&nbsp;</span>',
'<span><b>Over Performing Runs</b></span>',
'<ul>',
'<li style="margin-left:6px;">A run in which the app kernel completed successfully and performed better than the established control region.</li>',
'</ul>',
'</li>',
'</ul>'
].join(' '),
qwidth: 60
}
],

/**
* Constructor for the CenterReportCardComponent.
*/
initComponent: function () {
var self = this;

this.help = {
title: this.titleBase,
html: '<img src="/gui/images/help/centerreport-component.svg" />'
};

var aspectRatio = 11.0 / 17.0;
this.height = this.width * aspectRatio;

Expand Down

0 comments on commit ed0d080

Please sign in to comment.