]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
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 55736d006fe9043aec1976ff2f06b06a5699969f..3c1e007c33dbf41f0301ca9b62f7d26ef92d651f 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 afb68d341716683e32f43848b0605f8ece08bcd1..8695c27240b55c087b93801fce5d79ca3cd247c2 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 1f151062014201b96ca46611fa998b10e542075c..389f0c981b416be0eeb749bb1535165089e9c573 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 473e3e9503fddc3e5b95513290fb976891af2ab7..fea048e70a0da5813d7ca31b4bc7ccc5d3873afd 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 01a4439ff74ec15aef931e762d9aa26961800170..c58f74a642f8d5827eef9888a1df0573ef46b554 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 83f10716f188d9cd1c52ccf4995af411d35cc42b..d2b138a5fd5d6c77673c64ed427e1512d161c4c8 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 d063bf513adf112bd37bf2aa67afdc2cb792f6fa..ad65e8f54324ebdcac39f2a2f9efd24e18760eac 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 780779dff9140efb1faa3678dc65b7661bfd3b8d..9313d5492298e4477a86180feb57035fa95ef6eb 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 e197f75be7876d2df2e35a42e65547fffa96f238..1955130f2d6b1d4c78e285600b879d2e5f62dd28 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">