diff --git a/pyglance/glance/guistatsreport.txt b/pyglance/glance/guistatsreport.txt index ec1f0bc9083e526986560be19df71581847ed47e..f6a1ff4b3f083c7d8a587acc1302ef538a7be974 100644 --- a/pyglance/glance/guistatsreport.txt +++ b/pyglance/glance/guistatsreport.txt @@ -8,8 +8,6 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved. <%inherit file="variablereport.txt"/> -<%block name="statDocLink"></%block> - <%block name="htmlContent"> <h3>${self.title()}</h3> diff --git a/pyglance/glance/variablereport.txt b/pyglance/glance/variablereport.txt index c28dda408b71805615e671630ca447a39c3f269a..389b84e620d5a279f624d2a92332b2fc47727388 100644 --- a/pyglance/glance/variablereport.txt +++ b/pyglance/glance/variablereport.txt @@ -116,6 +116,13 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved. <h3>Statistical Summary</h3> ## list out all of the statistics groups we have +<%def name="doclink()"> + % if constants.DOCUMENTATION_PATH_KEY in runInfo: + <a href="${runInfo[constants.DOCUMENTATION_PATH_KEY]}">*</a> + % else: + % endif +</%def> + <table> % if groupedStats is UNDEFINED: % for setName in sorted(list(statGroups)) : @@ -123,7 +130,7 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved. <tr><th class="l" colspan="2">${setName}</th></tr> % for statName, statValue in sorted(list(dataSet.items())) : <tr> - <td class="n">${statName}<a href="${runInfo[constants.DOCUMENTATION_PATH_KEY]}">*</a>:</td> + <td class="n">${statName}${doclink()}:</td> <td class="n">${report.make_formatted_display_string(statValue)}</td> </tr> % endfor @@ -134,7 +141,7 @@ Copyright (c) 2011 University of Wisconsin SSEC. All rights reserved. <tr><th class="l">${setName}</th><th>Both</th><th>File A</th><th>File B</th></tr> % for statName, statValue in sorted(list(dataSet.items())) : <tr> - <td class="n">${statName}<a href="${runInfo[constants.DOCUMENTATION_PATH_KEY]}">*</a>:</td> + <td class="n">${statName}${doclink()}:</td> <td class="n">${report.make_formatted_display_string(statValue['both'])}</td> <td class="n">${report.make_formatted_display_string(statValue['a'])}</td> <td class="n">${report.make_formatted_display_string(statValue['b'])}</td>