]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Use new glyphicon font for up/down/minus Elo.
authorAnt Zucaro <azucaro@gmail.com>
Thu, 28 Mar 2013 19:11:28 +0000 (15:11 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Thu, 28 Mar 2013 19:11:28 +0000 (15:11 -0400)
xonstat/templates/player_game_index.mako
xonstat/templates/player_info.mako

index e5a5be66c540be42a1aebe821d92cb2dadc79666..03dfdc828c61ac9c1904da0d3420338e619cc7c4 100644 (file)
@@ -24,54 +24,54 @@ Recent Games
     <table class="table table-hover table-condensed">
       <thead>
         <tr>
-           <th></th>
-           <th>Type</th>
-           <th>Server</th>
-           <th>Map</th>
-           <th>Result</th>
-           <th>Played</th>
-           <th>Elo</th>
+          <th></th>
+          <th>Type</th>
+          <th>Server</th>
+          <th>Map</th>
+          <th>Result</th>
+          <th>Played</th>
+          <th>Elo</th>
         </tr>
       </thead>
       <tbody>
       % for rg in games.items:
-        <tr>
-           <td class="tdcenter"><a class="btn btn-primary btn-small" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">view</a></td>
-           <td class="tdcenter"><img title="${rg.game_type_cd}" src="/static/images/icons/24x24/${rg.game_type_cd}.png" alt="${rg.game_type_cd}" /></td>
-           <td>${rg.server_name}</td>
-           <td>${rg.map_name}</td>
-           <td>
-           % if rg.team != None:
-             % if rg.team == rg.winner:
-             Win
-             % else:
-             Loss
-             % endif
+      <tr>
+        <td class="tdcenter"><a class="btn btn-primary btn-small" href="${request.route_url('game_info', id=rg.game_id)}" title="View detailed information about this game">view</a></td>
+        <td class="tdcenter"><img title="${rg.game_type_cd}" src="/static/images/icons/24x24/${rg.game_type_cd}.png" alt="${rg.game_type_cd}" /></td>
+        <td>${rg.server_name}</td>
+        <td>${rg.map_name}</td>
+        <td>
+          % if rg.team != None:
+          % if rg.team == rg.winner:
+          Win
+          % else:
+          Loss
+          % endif
           % else:
-            % if rg.rank == 1:
-            Win
+          % if rg.rank == 1:
+          Win
+          % else:
+          Loss (#${rg.rank})
+          % endif
+          % endif
+        </td>
+        <td><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="tdcenter">
+          <a href="${request.route_url('game_info', id=rg.game_id, _query={'show_elo':1})}" title="View detailed information about this game">
+            % if rg.elo_delta is not None:
+            % if round(rg.elo_delta,2) > 0:
+            <span title="Elo went up by ${round(rg.elo_delta,2)}"><i class="glyphicon glyphicon-arrow-up"></i></span>
+            % elif round(rg.elo_delta,2) < 0:
+            <span title="Elo went down by ${round(-rg.elo_delta,2)}"><i class="glyphicon glyphicon-arrow-down"></i></span>
             % else:
-            Loss (#${rg.rank})
+            <span title="Elo did not change"><i class="glyphicon glyphicon-minus"></i></span>
             % endif
-          % endif
-           </td>
-           <td><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="tdcenter">
-             <a href="${request.route_url('game_info', id=rg.game_id, _query={'show_elo':1})}" title="View detailed information about this game">
-             % if rg.elo_delta is not None:
-               % if round(rg.elo_delta,2) > 0:
-               <span title="Elo went up by ${round(rg.elo_delta,2)}"><i class="icon-arrow-up icon-white"></i></span>
-               % elif round(rg.elo_delta,2) < 0:
-               <span title="Elo went down by ${round(-rg.elo_delta,2)}"><i class="icon-arrow-down icon-white"></i></span>
-               % else:
-               <span title="Elo did not change"><i class="icon-minus icon-white"></i></span>
-               % endif
-             % else:
-               <span title="Elo did not change"><i class="icon-minus icon-white"></i></span>
-             % endif
-             </a>
-           </td>
-        </tr>
+            % else:
+            <span title="Elo did not change"><i class="glyphicon glyphicon-minus"></i></span>
+            % endif
+          </a>
+        </td>
+      </tr>
       % endfor
       </tbody>
     </table>
index 051ca1ebfff0a4cbc371bc098cc772d2b3d80b75..20dcc4ce48bd6eae6d30ea6e28f03a02b28a8f00 100644 (file)
@@ -464,14 +464,14 @@ Player Information
           <a href="${request.route_url('game_info', id=rg.game_id, _query={'show_elo':1})}" title="View detailed information about this game">
             % if rg.elo_delta is not None:
             % if round(rg.elo_delta,2) > 0:
-            <span title="Elo went up by ${round(rg.elo_delta,2)}"><i class="icon-arrow-up icon-white"></i></span>
+            <span title="Elo went up by ${round(rg.elo_delta,2)}"><i class="glyphicon glyphicon-arrow-up"></i></span>
             % elif round(rg.elo_delta,2) < 0:
-            <span title="Elo went down by ${round(-rg.elo_delta,2)}"><i class="icon-arrow-down icon-white"></i></span>
+            <span title="Elo went down by ${round(-rg.elo_delta,2)}"><i class="glyphicon glyphicon-arrow-down"></i></span>
             % else:
-            <span title="Elo did not change"><i class="icon-minus icon-white"></i></span>
+            <span title="Elo did not change"><i class="glyphicon glyphicon-minus"></i></span>
             % endif
             % else:
-            <span title="Elo did not change"><i class="icon-minus icon-white"></i></span>
+            <span title="Elo did not change"><i class="glyphicon glyphicon-minus"></i></span>
             % endif
           </a>
         </td>