]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Bundle in Luma.
authorAnt Zucaro <azucaro@gmail.com>
Sun, 19 Apr 2015 12:35:24 +0000 (08:35 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Sun, 19 Apr 2015 12:35:24 +0000 (08:35 -0400)
12 files changed:
xonstat/templates/base.mako
xonstat/templates/game_finder.mako
xonstat/templates/game_index.mako
xonstat/templates/game_info.mako
xonstat/templates/login.mako [new file with mode: 0644]
xonstat/templates/main_index.mako
xonstat/templates/map_info.mako
xonstat/templates/player_game_index.mako
xonstat/templates/player_hashkey_nicks_text.mako [new file with mode: 0644]
xonstat/templates/player_info.mako
xonstat/templates/player_merge.mako [new file with mode: 0644]
xonstat/templates/server_info.mako

index 1d20c76d904fb52d2e5f42e19aee1d091b02394e..11c3114c1ff7f1a17b92c978131df64b7f7ac4e4 100644 (file)
     <link rel="shortcut icon" href="/static/favicon.ico">
 
     <%block name="css">
-      <link href="/static/css/foundation.css" rel="stylesheet">
-      <link href="/static/css/font-awesome.min.css" rel="stylesheet">
-      <link href="/static/css/app.css" rel="stylesheet">
+      ### FOR DEVELOPMENT ONLY
+      ### <link href="/static/css/foundation.css" rel="stylesheet">
+      ### <link href="/static/css/font-awesome.min.css" rel="stylesheet">
+      ### <link href="/static/css/app.css" rel="stylesheet">
+      ### <link href="/static/css/luma.css" rel="stylesheet">
+      <link href="/static/css/xonstat.css" rel="stylesheet">
     </%block>
 
     <%block name="headjs">
index e159bf36db2b7a5de9ab1a2ec3c3ab1ace08231d..9050af6be8cf3c1462595f5049a27d208ce45523 100644 (file)
@@ -6,11 +6,6 @@
 ${nav.nav('games')}
 </%block>
 
-<%block name="css">
-    ${parent.css()}
-    <link href="/static/css/luma.css" rel="stylesheet">
-</%block>
-
 <%block name="title">
 Game Index
 </%block>
index 5e2b4ee72f6495b05a630bdaeb14cbf980a07e68..d240d783c63bc316e3af7df0cc6689fcfcfb5897 100644 (file)
@@ -3,11 +3,6 @@
 <%namespace file="scoreboard.mako" import="scoreboard" />
 <%namespace file="navlinks.mako" import="navlinks" />
 
-<%block name="css">
-${parent.css()}
-<link href="/static/css/luma.css" rel="stylesheet">
-</%block>
-
 <%block name="navigation">
 ${nav.nav('games')}
 </%block>
index e64a6e760daaf5ceb402cbb3e3b670b20806671b..02e0b9eb0aec3fdcae6b3cb02be11d54e21e00e7 100644 (file)
@@ -7,11 +7,6 @@
   ${nav.nav('games')}
 </%block>
 
-<%block name="css">
-  ${parent.css()}
-  <link href="/static/css/luma.css" rel="stylesheet">
-</%block>
-
 <%block name="foundation">
   <script>
   $(document).foundation({
diff --git a/xonstat/templates/login.mako b/xonstat/templates/login.mako
new file mode 100644 (file)
index 0000000..3467eb1
--- /dev/null
@@ -0,0 +1,23 @@
+<%inherit file="base.mako"/>
+<%namespace name="nav" file="nav.mako" />
+
+<%block name="navigation">
+${nav.nav('players')}
+</%block>
+
+<%block name="js">
+${parent.js()}
+<script src="https://login.persona.org/include.js" type="text/javascript"></script>
+<script type="text/javascript">${request.persona_js}</script>
+</%block>
+
+<%block name="title">
+Login
+</%block>
+
+<div class="row">
+  <div class="span12">
+  Hello ${user}
+  ${request.persona_button}
+  </div>
+</div>
index 642d44b34b62aaaf4c62e9c44fb7319716e5b2f9..5f4fa791445f799a1b0789fd991c1aa7b40e391c 100644 (file)
@@ -4,11 +4,6 @@
   Leaderboard
 </%block>
 
-<%block name="css">
-  ${parent.css()}
-  <link href="/static/css/luma.css" rel="stylesheet">
-</%block>
-
 <%block name="hero_unit">
   <div class="text-center">
     <img src="/static/css/img/xonotic-logo.png" />
index 0443a5d2814f8150a4e047392ea96074ea3ac7ec..6f295402f245203861007b73190b17b392674a61 100644 (file)
   ${parent.title()}
 </%block>
 
-<%block name="css">
-  ${parent.css()}
-  <link href="/static/css/luma.css" rel="stylesheet">
-</%block>
-
 % if gmap is None:
   <h2>Sorry, that map wasn't found!</h2>
 
index b44cf3b706a8ba2105bfbe399c3c35e5dec0018a..69dd9b2044c82d5fdf0e760230f02848c4693bcf 100644 (file)
@@ -2,11 +2,6 @@
 <%namespace name="nav" file="nav.mako" />
 <%namespace file="navlinks.mako" import="navlinks" />
 
-<%block name="css">
-  ${parent.css()}
-  <link href="/static/css/luma.css" rel="stylesheet">
-</%block>
-
 <%block name="navigation">
   ${nav.nav('games')}
 </%block>
diff --git a/xonstat/templates/player_hashkey_nicks_text.mako b/xonstat/templates/player_hashkey_nicks_text.mako
new file mode 100644 (file)
index 0000000..ecd4e27
--- /dev/null
@@ -0,0 +1,3 @@
+% for nick in nicks:
+${nick.nick|n}
+% endfor
index 99d97f9818ac586c3c3ed0bc9459ad7949915a9d..744ceeadd605e7e960f6676204c94fac7d3d6405 100644 (file)
@@ -11,7 +11,6 @@
 
 <%block name="css">
   ${parent.css()}
-  <link href="/static/css/luma.css" rel="stylesheet">
   <style>
     #damageChart, #accuracyChart {
       height: 250px;
diff --git a/xonstat/templates/player_merge.mako b/xonstat/templates/player_merge.mako
new file mode 100644 (file)
index 0000000..5e8a35a
--- /dev/null
@@ -0,0 +1,16 @@
+<%inherit file="base.mako"/>
+<%namespace name="nav" file="nav.mako" />
+
+<%block name="navigation">
+${nav.nav('players')}
+</%block>
+
+<%block name="js">
+${parent.js()}
+<script src="https://login.persona.org/include.js" type="text/javascript"></script>
+<script type="text/javascript">${request.persona_js}</script>
+</%block>
+
+<%block name="title">
+Merge Players
+</%block>
index 5c05e87220d0f07a802147748cfe839cc3ef28fb..3dec86db16015d3a5e532b0eb35aad5fe1910c1f 100644 (file)
   % endif
 </%block>
 
-<%block name="css">
-  ${parent.css()}
-  <link href="/static/css/luma.css" rel="stylesheet">
-</%block>
-
 % if server is None:
   <h2>Sorry, that server wasn't found!</h2>