Update the templates for the new classes.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 29 Aug 2019 23:55:23 +0000 (19:55 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 29 Aug 2019 23:55:23 +0000 (19:55 -0400)
xonstat/templates/accuracy.mako
xonstat/templates/game_finder.mako
xonstat/templates/game_info.mako
xonstat/templates/main_index.mako
xonstat/templates/map_info.mako
xonstat/templates/player_game_index.mako
xonstat/templates/player_info.mako
xonstat/templates/player_versus.mako
xonstat/templates/server_info.mako

index 55736d0..3c1e007 100644 (file)
@@ -44,7 +44,7 @@
     <tr>
       ## Note: the name of the image must match up with the weapon_cd 
       ## entry of that weapon, else this won't work
-      <td class="small-2 medium-1 text-center"><span class="sprite sprite-weapon${weapon_stat[1]}"></span></td>
+      <td class="small-2 medium-1 text-center"><span class="sprite sprite-${weapon_stat[1]}"></span></td>
       <td class="show-for-medium-up">${weapon_stat[0]}</td>
       <td class="show-for-medium-up">${weapon_stat[6]}</td>
       <td>${weapon_stat[4]}/${weapon_stat[5]} (${hit_pct}%)</td>
index afb68d3..8695c27 100644 (file)
@@ -22,7 +22,7 @@ Game Index
           "
         >
           <a href="${url}" alt="${gt}" title="Show only ${gt} games">
-            <span class="sprite sprite-gametype_${gt}"></span><br />
+            <span class="sprite sprite-${gt}"></span><br />
             ${gt} <br />
           </a>
         </li>
@@ -51,7 +51,7 @@ Game Index
       % for rg in recent_games:
         <tr>
           <td class="text-center"><a class="button tiny" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">view</a></td>
-          <td class="text-center"><i class="sprite sprite-gametype_${rg.game_type_cd}" title="${rg.game_type_descr}"></i></td>
+          <td class="text-center"><i class="sprite sprite-${rg.game_type_cd}" title="${rg.game_type_descr}"></i></td>
           <td class="show-for-medium-up no-stretch"><a href="${request.route_url('server_info', id=rg.server_id)}" title="Go to the detail page for this server">${rg.server_name}</a></td>
           <td class="show-for-medium-up"><a href="${request.route_url('map_info', id=rg.map_id)}" title="Go to the map detail page for this map">${rg.map_name}</a></td>
           <td class="show-for-large-up"><span class="abstime" data-epoch="${rg.epoch}" title="${rg.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${rg.fuzzy_date}</span></td>
index 1f15106..389f0c9 100644 (file)
@@ -32,7 +32,7 @@
     <div class="small-12 columns">
       <h3>Game #${game.game_id}</h3>
       <p>
-        <span class="sprite sprite-gametype_${game.game_type_cd}"></span> ${gametype.descr} <br />
+        <span class="sprite sprite-${game.game_type_cd}"></span> ${gametype.descr} <br />
         Played ${game.fuzzy_date()} <span class="abstime" data-epoch="${game.epoch()}" title="${game.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}"> <i class="fa fa-info-circle"></i></span><br />
         Server: <a href="${request.route_url("server_info", id=server.server_id)}" name="Server info page for ${server.name}">${server.name}</a><br />
         Map: <a href="${request.route_url("map_info", id=map.map_id)}" name="Map info page for ${map.name}">${map.name}</a><br />
index 473e3e9..fea048e 100644 (file)
       % for rg in recent_games:
         <tr>
           <td class="text-center"><a class="button tiny" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">view</a></td>
-          <td class="text-center"><span class="sprite sprite-gametype_${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
+          <td class="text-center"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
           <td class="show-for-medium-up no-stretch"><a href="${request.route_url('server_info', id=rg.server_id)}" title="Go to the detail page for this server">${rg.server_name}</a></td>
           <td class="show-for-medium-up"><a href="${request.route_url('map_info', id=rg.map_id)}" title="Go to the map detail page for this map">${rg.map_name}</a></td>
           <td class="show-for-large-up"><span class="abstime" data-epoch="${rg.epoch}" title="${rg.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${rg.fuzzy_date}</span></td>
index 01a4439..c58f74a 100644 (file)
           % for rg in recent_games:
           <tr>
             <td class="text-center"><a class="tiny button" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">View</a></td>
-            <td class="text-center"><span class="sprite sprite-gametype_${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
+            <td class="text-center"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
             <td class="show-for-medium-up"><a href="${request.route_url('server_info', id=rg.server_id)}" title="Go to the detail page for this server">${rg.server_name}</a></td>
             <td class="show-for-large-up"><span class="abstime" data-epoch="${rg.epoch}" title="${rg.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${rg.fuzzy_date}</span></td>
             <td class="no-stretch">
index 83f1071..d2b138a 100644 (file)
@@ -52,7 +52,7 @@
               % else:
                 <a href="${request.route_url("player_game_index", player_id=player.player_id, _query={'type':game.game_type_cd})}" alt="${game.game_type_cd}" title="" data-toggle="none">
               % endif
-              <span class="sprite sprite-gametype_${game.game_type_cd}"></span><br />
+              <span class="sprite sprite-${game.game_type_cd}"></span><br />
               ${game.game_type_cd} <br />
               </a>
             </li>
@@ -81,7 +81,7 @@
         % for rg in games.items:
         <tr>
           <td class="text-center"><a class="button tiny" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">view</a></td>
-          <td class="text-center"><span class="sprite sprite-gametype_${rg.game_type_cd}"></span></td>
+          <td class="text-center"><span class="sprite sprite-${rg.game_type_cd}"></span></td>
           <td class="show-for-medium-up no-stretch"><a href="${request.route_url("server_info", id=rg.server_id)}" name="Server info page for ${rg.server_name}">${rg.server_name}</a></td>
           <td class="no-stretch"><a href="${request.route_url("map_info", id=rg.map_id)}" name="Map info page for ${rg.map_name}">${rg.map_name}</a></td>
           <td class="show-for-medium-up">
index d063bf5..ad65e8f 100644 (file)
@@ -80,7 +80,7 @@
           % endif
         ">
           <a id="tab-${g.game_type_cd}" href="#tab-${g.game_type_cd}" title="${overall_stats[g.game_type_cd].game_type_descr}">
-            <span class="sprite sprite-gametype_${g.game_type_cd}"></span><br />
+            <span class="sprite sprite-${g.game_type_cd}"></span><br />
             ${g.game_type_cd} <br />
             <small>(${g.games})</small>
           </a>
         % for rg in recent_games:
           <tr>
             <td class="text-center"><a class="tiny button" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">view</a></td>
-            <td class="text-center"><span class="sprite sprite-gametype_${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
+            <td class="text-center"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
             <td class="show-for-medium-up no-stretch"><a href="${request.route_url('server_info', id=rg.server_id)}" title="Go to the detail page for this server">${rg.server_name}</a></td>
             <td class="no-stretch"><a href="${request.route_url('map_info', id=rg.map_id)}" title="Go to the detail page for this map">${rg.map_name}</a></td>
             <td class="show-for-medium-up">
index 780779d..9313d54 100644 (file)
@@ -58,7 +58,7 @@
       % for rg in recent_games:
         <tr>
           <td class="text-center"><a class="button tiny" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">view</a></td>
-          <td class="text-center"><span class="sprite sprite-gametype_${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
+          <td class="text-center"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
           <td class="show-for-medium-up no-stretch"><a href="${request.route_url('server_info', id=rg.server_id)}" title="Go to the detail page for this server">${rg.server_name}</a></td>
           <td class="show-for-medium-up"><a href="${request.route_url('map_info', id=rg.map_id)}" title="Go to the map detail page for this map">${rg.map_name}</a></td>
           <td class="show-for-large-up"><span class="abstime" data-epoch="${rg.epoch}" title="${rg.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${rg.fuzzy_date}</span></td>
index e197f75..1955130 100644 (file)
             % for rg in recent_games:
             <tr>
               <td class="text-center"><a class="tiny button" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">View</a></td>
-              <td class="text-center"><span class="sprite sprite-gametype_${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
+              <td class="text-center"><span class="sprite sprite-${rg.game_type_cd}" alt="${rg.game_type_cd}" title="${rg.game_type_descr}"></span></td>
               <td class="show-for-medium-up"><a href="${request.route_url('map_info', id=rg.map_id)}" title="Go to the map detail page for this map">${rg.map_name}</a></td>
               <td class="show-for-large-up"><span class="abstime" data-epoch="${rg.epoch}" title="${rg.start_dt.strftime('%a, %d %b %Y %H:%M:%S UTC')}">${rg.fuzzy_date}</span></td>
               <td class="no-stretch">