Fix link to underlying summary records for all dates

This commit is contained in:
Brian Read 2024-07-15 09:36:06 +01:00
parent a1c9a698ee
commit 51912e5525

View File

@ -78,15 +78,15 @@
<!-- Check if 'nolinks' is true. If not, generate links for rows 0 to 23 except 'PERCENT' column --> <!-- Check if 'nolinks' is true. If not, generate links for rows 0 to 23 except 'PERCENT' column -->
<tal:case tal:condition="not: nolinks"> <tal:case tal:condition="not: nolinks">
<tal:case tal:condition="repeat.row.index >= 0 and repeat.row.index < 24 and repeat.cell.index != 16"> <tal:case tal:condition="repeat.row.index >= 0 and repeat.row.index < 24 and repeat.cell.index != 16">
<a tal:attributes="href string:./showSummaryLogs.php?hour=${repeat.row.index}"> <a tal:attributes="href string:./showSummaryLogs.php?date=${reporting_date}&hour=${repeat.row.index}">
<!-- Check if cell value is zero and print "-" --> <!-- Check if cell value is zero and print "" -->
<tal:case tal:condition="cell != 0" tal:content="cell">Cell</tal:case> <tal:case tal:condition="cell != 0" tal:content="cell">Cell</tal:case>
<tal:case tal:condition="cell == 0" tal:content="''">-</tal:case> <tal:case tal:condition="cell == 0" tal:content="''">-</tal:case>
</a> </a>
</tal:case> </tal:case>
<!-- For 'PERCENT' column or other rows, just display the cell content --> <!-- For 'PERCENT' column or other rows, just display the cell content -->
<tal:case tal:condition="not (repeat.row.index >= 0 and repeat.row.index < 24 and repeat.cell.index != 16)"> <tal:case tal:condition="not (repeat.row.index >= 0 and repeat.row.index < 24 and repeat.cell.index != 16)">
<!-- Check if cell value is zero and print "-" --> <!-- Check if cell value is zero and print "" -->
<tal:case tal:condition="cell != 0" tal:content="cell">Cell</tal:case> <tal:case tal:condition="cell != 0" tal:content="cell">Cell</tal:case>
<tal:case tal:condition="cell == 0" tal:content="''">-</tal:case> <tal:case tal:condition="cell == 0" tal:content="''">-</tal:case>
</tal:case> </tal:case>