]> git.rm.cloudns.org Git - xonotic/xonstat.git/commitdiff
Missed a template for adding login button support. Adding it.
authorAnt Zucaro <azucaro@gmail.com>
Fri, 13 Jun 2014 13:10:39 +0000 (09:10 -0400)
committerAnt Zucaro <azucaro@gmail.com>
Fri, 13 Jun 2014 13:10:39 +0000 (09:10 -0400)
xonstat/templates/player_info.mako

index e810b669b62e43233b00435a6f0088bf669cc21d..dfd190d2e980cba48411082e0241b7e9a9fbe710 100644 (file)
@@ -2,7 +2,11 @@
 <%namespace name="nav" file="nav.mako" />
 
 <%block name="navigation">
-${nav.nav('players')}
+% if player.email_addr is not None:
+${nav.nav('players', True)}
+% else:
+${nav.nav('players', False)}
+% endif
 </%block>
 
 <%block name="css">
@@ -21,6 +25,9 @@ ${parent.js()}
 <script src="/static/js/d3.v3.min.js"></script>
 <script src="/static/js/nv.d3.min.js"></script>
 <script src="/static/js/weaponCharts.js"></script>
+<script src="https://login.persona.org/include.js" type="text/javascript"></script>
+<script type="text/javascript">${request.persona_js}</script>
+
 <script type="text/javascript">
 // tabs
 $(function () {