1 <%def name="accuracy_graph(recent_weapons)">
2 ### hitscan weapon data is available
3 % if 'nex' in recent_weapons or 'rifle' in recent_weapons or 'minstanex' in recent_weapons or 'uzi' in recent_weapons or 'shotgun' in recent_weapons:
8 <div id="acc-graph" class="flot" style="width:95%; height:200px;">
11 <div class="weapon-nav accuracy-nav">
13 % for weapon in ['nex', 'rifle', 'minstanex', 'uzi', 'shotgun']:
14 % if weapon in recent_weapons:
16 ### the nex is underscored first by default (until user selection)
18 <div class="acc-weap weapon-active">
20 <div class="acc-weap">
22 <span class="sprite sprite-${weapon}"></span>
23 <p><small>${weapon}</small></p>
24 <a href="${request.route_url('player_accuracy', id=player.player_id, _query={'weapon':weapon})}" title="Show ${weapon} accuracy"></a>
32 </div> <!-- END SPAN12 -->
33 </div> <!-- END ROW -->