1 <%def name="damage_graph(recent_weapons)">
2 ### splash weapon info is available
3 % if 'rocketlauncher' in recent_weapons or 'grenadelauncher' in recent_weapons or 'electro' in recent_weapons or 'crylink' in recent_weapons or 'laser' in recent_weapons:
6 <h3>Damage Efficiency</h3>
8 <div id="dmg-graph" class="flot" style="width:95%; height:200px;">
11 <div class="weapon-nav damage-nav">
13 % for weapon in ['rocketlauncher', 'grenadelauncher', 'electro', 'crylink', 'hagar', 'laser']:
14 % if weapon in recent_weapons:
16 ### the rocketlauncher is underscored first by default (until user selection)
17 % if weapon == 'rocketlauncher':
18 <div class="dmg-weap weapon-active">
20 <div class="dmg-weap">
22 <span class="sprite sprite-${weapon}"></span>
23 <p><small>${weapon}</small></p>
24 <a href="${request.route_url('player_damage', id=player.player_id, _query={'weapon':weapon})}" title="Show ${weapon} efficiency"></a>
32 </div> <!-- END SPAN12 -->
33 </div> <!-- END ROW -->