Author: humbedooh Date: Tue Aug 6 10:58:14 2019 New Revision: 1864506 URL: http://svn.apache.org/viewvc?rev=1864506&view=rev Log: add a button to open full metrics page in new tab
Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Modified: comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js?rev=1864506&r1=1864505&r2=1864506&view=diff ============================================================================== --- comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js (original) +++ comdev/reporter.apache.org/trunk/site/wizard/js/source/generators.js Tue Aug 6 10:58:14 2019 @@ -444,6 +444,7 @@ function health_tips(data) { // Append header IF there is data, otherwise nah. if (txt.length > 0) { + txt = "<a href='statistics?%s' target='_blank' class='btn btn-warning btn-sm'>See full metrics (new tab)</a><br/>".format(project) + txt; txt = "<h5>Potentially useful observations on community health:</h5><ul>" + txt + "</ul>"; txt += "<div class='card' style='padding: 4px;'><b>PLEASE DON'T COPY THESE METRICS INTO THE REPORT ALONE!</b><p>While these metrics might offer insights into the wellbeing of the project, what the board of directors <b<really</b> wants to see is the <b>story</b> behind these metrics.</p><p>Please take some time to explain why these metrics are the way they are, and what this means for the project. If you are unsure how to do this, please take a look at some of the examples provided above (click the button!).</div>"; } Modified: comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js?rev=1864506&r1=1864505&r2=1864506&view=diff ============================================================================== --- comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js (original) +++ comdev/reporter.apache.org/trunk/site/wizard/js/wizard.js Tue Aug 6 10:58:14 2019 @@ -1629,6 +1629,7 @@ function health_tips(data) { // Append header IF there is data, otherwise nah. if (txt.length > 0) { + txt = "<a href='statistics?%s' target='_blank' class='btn btn-warning btn-sm'>See full metrics (new tab)</a><br/>".format(project) + txt; txt = "<h5>Potentially useful observations on community health:</h5><ul>" + txt + "</ul>"; txt += "<div class='card' style='padding: 4px;'><b>PLEASE DON'T COPY THESE METRICS INTO THE REPORT ALONE!</b><p>While these metrics might offer insights into the wellbeing of the project, what the board of directors <b<really</b> wants to see is the <b>story</b> behind these metrics.</p><p>Please take some time to explain why these metrics are the way they are, and what this means for the project. If you are unsure how to do this, please take a look at some of the examples provided above (click the button!).</div>"; }