From: Ant Zucaro Date: Sat, 29 Sep 2012 13:32:24 +0000 (-0400) Subject: Use the gametype icons in the tabs! X-Git-Url: http://git.xonotic.org/?a=commitdiff_plain;h=f233e862afb2d5d29ef6e6d794566f8c8b6a1f4e;p=xonotic%2Fxonstat.git Use the gametype icons in the tabs! --- diff --git a/xonstat/static/css/style.css b/xonstat/static/css/style.css index b47f14a..d872066 100755 --- a/xonstat/static/css/style.css +++ b/xonstat/static/css/style.css @@ -2113,7 +2113,7 @@ button.btn.small, input[type="submit"].btn.small { } .nav > li > a:hover { text-decoration: none; - background-color: #eeeeee; + /*background-color: #eeeeee;*/ } .nav-list { padding-left: 14px; @@ -3506,10 +3506,9 @@ header h2 { display:none; } /* Player Info Tabs */ #gbtabcontainer { margin-top: 10px; } #gbtab { font-size: 12px; } -.tabs-right .nav-tabs { border: none; } -.nav-tabs > .active > a, .nav-tabs > .active > a:hover { background-color: #111; color: #aaa;} -.tabs-right .nav-tabs > li > a { border-radius: 4px 4px 4px 4px; } -.tabs-right .nav-tabs .active > a, .tabs-right .nav-tabs .active > a:hover { border-color: #222222 #222222 #222222 #222222; } -.tabs-right .nav-tabs > li > a:hover { border-color: #222222 #222222 #222222 #222222; } -.nav > li > a:hover { background-color: #333; color: #aaa; } .tabbable p { font-size: 14px; } +.tabs-below .nav-tabs > li > a { border-radius: 4px 4px 4px 4px; } +.nav-tabs > .active > a, .nav-tabs > .active > a:hover { background-color: #111; color: #aaa; border-color: #222; } +.nav-tabs > li > a { border-radius: 4px 4px 4px 4px; text-align: center; } +.nav-tabs > li > a:hover { background-color: #111; border-color: #333; } +.nav-tabs { border-bottom: 0px solid #000; } diff --git a/xonstat/static/images/icons/24x24/overall.png b/xonstat/static/images/icons/24x24/overall.png new file mode 100644 index 0000000..802165a Binary files /dev/null and b/xonstat/static/images/icons/24x24/overall.png differ diff --git a/xonstat/templates/player_info.mako b/xonstat/templates/player_info.mako index ecdc4ba..6ec476e 100644 --- a/xonstat/templates/player_info.mako +++ b/xonstat/templates/player_info.mako @@ -13,12 +13,12 @@ ${nav.nav('players')} @@ -194,13 +194,7 @@ Player Information
-
- - +
% for g in games_played:
+
+ +
+
% 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: