diff options
Diffstat (limited to 'site/app/views/compatibility/dashboard.thtml')
-rw-r--r-- | site/app/views/compatibility/dashboard.thtml | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/site/app/views/compatibility/dashboard.thtml b/site/app/views/compatibility/dashboard.thtml index bfc3595..035727c 100644 --- a/site/app/views/compatibility/dashboard.thtml +++ b/site/app/views/compatibility/dashboard.thtml @@ -21,7 +21,6 @@ * * Contributor(s): * Justin Scott <fligtar@mozilla.com> (Original Author) - * Wil Clouser <wclouser@mozilla.com> * * Alternatively, the contents of this file may be used under the terms of * either the GNU General Public License Version 2 or later (the "GPL"), or @@ -36,11 +35,8 @@ * the terms of any one of the MPL, the GPL or the LGPL. * * ***** END LICENSE BLOCK ***** */ - -$this->viewVars['bodyclass'] = 'inverse'; - ?> -<div id="content" class="primary prose" style="min-height: 400px;"> +<div id="content" style="min-height: 400px;"> <div id="compat-home-nav"> <a href="#" onclick="compatibility.viewHome(); return false;"><?=___('compatibility_dashboard_main_link', 'Back to Main')?></a> </div> @@ -57,12 +53,20 @@ $this->viewVars['bodyclass'] = 'inverse'; </div> <div id="report-intro"> + <?php + $percentages = array( + COMPAT_OTHER => (($totals[COMPAT_OTHER]['adu'] / $totals['adu95']) * 100), + COMPAT_ALPHA => (($totals[COMPAT_ALPHA]['adu'] / $totals['adu95']) * 100), + COMPAT_BETA => (($totals[COMPAT_BETA]['adu'] / $totals['adu95']) * 100), + COMPAT_LATEST => (($totals[COMPAT_LATEST]['adu'] / $totals['adu95']) * 100), + ); + ?> <div class="header"> <div class="title"> <?=$html->image('wordmarks/firefox-'.$version.'_small.png', array('alt' => APP_PRETTYNAME." {$version}"))?><?=___('compatibility_report_title', 'Add-on Compatibility Report')?> </div> </div> - <p class="intro"><?=sprintf(___('compatibility_report_intro', 'Of the %1$s add-ons that make up 95% of add-on usage known to Mozilla, <b>%2$s%</b> are currently considered compatible with the latest builds of %3$s.'), $html->number_format($totals['addons95']), round($percentages[COMPAT_LATEST]), APP_PRETTYNAME." {$version}")?></p> + <p class="intro"><?=sprintf(___('compatibility_report_intro', 'Of the %1$s add-ons that make up 95% of add-on usage known to Mozilla, <b>%2$s%</b> are currently considered compatible with the latest builds of %3$s.'), number_format($totals['addons95']), round($percentages[COMPAT_LATEST]), APP_PRETTYNAME." {$version}")?></p> <div id="overall-compat"> <div id="overall-compat-bar"> <div class="compat-other" style="width: <?=$percentages[COMPAT_OTHER]?>%;"><?=($percentages[COMPAT_OTHER] >= 5 ? round($percentages[COMPAT_OTHER]).'%': '')?></div> |