From 031daa32bbe11417d0dfb968dfbf888f0dc65d86 Mon Sep 17 00:00:00 2001 From: raylu Date: Sun, 20 Oct 2013 03:07:32 -0700 Subject: rewrite as api --- web/templates/base.html | 7 +++++++ web/templates/corporation.html | 26 +++++--------------------- web/templates/kill.html | 21 +++++++-------------- web/templates/search.html | 10 +++++----- 4 files changed, 24 insertions(+), 40 deletions(-) (limited to 'web/templates') diff --git a/web/templates/base.html b/web/templates/base.html index afd3c68..ffbe99b 100644 --- a/web/templates/base.html +++ b/web/templates/base.html @@ -3,6 +3,13 @@ + + + {% block js %}{% end %}
diff --git a/web/templates/corporation.html b/web/templates/corporation.html index 0afe4c3..66eceb2 100644 --- a/web/templates/corporation.html +++ b/web/templates/corporation.html @@ -1,27 +1,11 @@ {% extends "base.html" %} +{% block js %} + +{% end %} + {% block main %} -{% for kill in kills %} - - {{ kill['kill_time'] }} - {{ kill['victim']['character_name'] }} - {{ kill['victim']['character_name'] }} - {{ kill['victim']['corporation_name'] }} - {{ kill['victim']['corporation_name'] }} - {% if kill['victim']['alliance_id'] != 0 %} - {{ kill['victim']['alliance_name'] }} - {{ kill['victim']['alliance_name'] }} - {% end %} - {{ kill['final_blow']['character_name'] }} - {{ kill['final_blow']['character_name'] }} - {{ kill['final_blow']['corporation_name'] }} - {{ kill['final_blow']['corporation_name'] }} - {% if kill['final_blow']['alliance_id'] != 0 %} - {{ kill['final_blow']['alliance_name'] }} - {{ kill['final_blow']['alliance_name'] }} - {% end %} -
-{% end %} +
{% end %} diff --git a/web/templates/kill.html b/web/templates/kill.html index bb286bc..112c2e8 100644 --- a/web/templates/kill.html +++ b/web/templates/kill.html @@ -1,21 +1,14 @@ {% extends "base.html" %} +{% block js %} + +{% end %} + {% block main %} -{{ kill['kill_time'] }}
-{{ kill['solarSystemName'] }} ({{ round(kill['security'], 1) }})
+
+
-{% for char in characters %} - {{ char ['typeName'] }} - {{ char['character_name'] }} - {{ char['character_name'] }} - {{ char['corporation_name'] }} - {{ char['corporation_name'] }} - {% if char['alliance_id'] != 0 %} - alliance - {{ char['alliance_name'] }} - {% end %} -
-{% end %} +
{% end %} diff --git a/web/templates/search.html b/web/templates/search.html index 03980af..d84c5da 100644 --- a/web/templates/search.html +++ b/web/templates/search.html @@ -1,12 +1,12 @@ {% extends "base.html" %} +{% block js %} + +{% end %} + {% block main %}

Corporations

-{% for corp in corps %} - - {{ corp['corporation_name'] }} - -{% end %} +
{% end %} -- cgit v1.2.3