1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en">
4 <title>Muppet Plans
</title>
5 <style type=
"text/css">
8 <link rel=
"stylesheet" type=
"text/css" href=
"style.css"/>
9 <link rel=
"stylesheet" media=
"print" type=
"text/css" href=
"print.css"/>
12 #foreach ($depth in $depths)
15 #set ($span =
2 +
2 * $dives.get($depth).size())
16 <td class=
"depth" colspan=
"${span}">${depth}m
</div>
19 <td class=
"gas">Gas
</td>
20 <td class=
"drt">D\RT
</td>
21 #foreach ($dive in $dives.get($depth))
22 <td class=
"duration" colspan=
"2">${dive.duration}
</td>
25 #foreach ($stopKey in $stopKeys.get($depth))
26 #if (
0 == $foreach.count %
2)
27 #set ($class =
"stop_even")
29 #set ($class =
"stop_odd")
32 <td class=
"gas">${this.format(${stopKey.gas})}
</td>
33 <td class=
"depth">${stopKey.depth}m
</td>
34 #foreach ($dive in $dives.get($depth))
35 #set ($stop = ${dive.getStop($stopKey)})
41 ${this.ceil($stop.gasVolume)}
44 <td class=
"empty" colspan=
"2"/>
47 </tr> <!-- stop at ${stopKey.depth}m on >${stopKey.gas} -->
50 <td class=
"title" colspan=
"2">Run time
</td>
51 #foreach ($dive in $dives.get($depth))
52 <td class=
"duration" colspan=
"2">${dive.tripTime}
</td>
54 </tr> <!-- runtimes -->
55 #foreach ($gas in $gases.get($depth))
56 <tr class=
"gastotals">
57 <td class=
"title" colspan=
"2">${this.format(${gas})}
</td>
58 #foreach ($dive in $dives.get($depth))
59 <td class=
"volume" colspan=
"2">
60 ${this.ceil(${dive.getAscentVolume($gas)})}
63 </tr> <!-- gastotals for $gas -->
65 </table> <!-- dives to ${depth}m -->