]> de.git.xonotic.org Git - xonotic/xonstat.git/blob - xonstat/templates/accuracy_graph.mako
Initial player damage view.
[xonotic/xonstat.git] / xonstat / templates / accuracy_graph.mako
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:
4 <div class="row">
5   <div class="span12">
6     <h3>Accuracy</h3>
7
8     <div id="acc-graph" class="flot" style="width:95%; height:200px;">
9     </div>
10
11     <div class="weapon-nav accuracy-nav">
12       <ul>
13       % for weapon in ['nex', 'rifle', 'minstanex', 'uzi', 'shotgun']:
14         % if weapon in recent_weapons:
15         <li>
16         ### the nex is underscored first by default (until user selection)
17         % if weapon == 'nex':
18         <div class="acc-weap weapon-active">
19         % else:
20         <div class="acc-weap">
21         % endif
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>
25         </div>
26         </li>
27         % endif
28       % endfor
29       </ul>
30     </div>
31
32   </div> <!-- END SPAN12 -->
33 </div> <!-- END ROW -->
34 % endif
35 </%def>