From 02a3b0d8caf160da78bd4b355a7c11d558abe036 Mon Sep 17 00:00:00 2001 From: raylu Date: Sat, 19 Oct 2013 23:57:55 -0700 Subject: corp search --- web/static/css/base.ccss | 3 +-- web/templates/home.html | 30 ++++-------------------------- web/templates/kill.html | 30 ++++++++++++++++++++++++++++++ web/templates/search.html | 12 ++++++++++++ 4 files changed, 47 insertions(+), 28 deletions(-) create mode 100644 web/templates/kill.html create mode 100644 web/templates/search.html (limited to 'web') diff --git a/web/static/css/base.ccss b/web/static/css/base.ccss index e515323..9419e3f 100644 --- a/web/static/css/base.ccss +++ b/web/static/css/base.ccss @@ -13,14 +13,13 @@ body: a: text-decoration: none; - color: #dde; + color: #38c; form: input: background: #fff; border: 1px solid #cdd; padding: 5px 10px; - } .clear: clear: both; diff --git a/web/templates/home.html b/web/templates/home.html index 6d4f69c..34fe371 100644 --- a/web/templates/home.html +++ b/web/templates/home.html @@ -1,30 +1,8 @@ {% extends "base.html" %} {% block main %} - -
- {% for kill in kills %} - - {{ kill['killTime'] }} - {{ kill['solarSystemID'] }} - - - - - {{ kill['victim']['characterName'] }} - {{ kill['victim']['corporationName'] }} - {{ kill['victim']['allianceName'] }} - {% for attacker in kill['attackers'] %} - {% if attacker['finalBlow'] %} - {% set killer = attacker %} - {% break %} - {% end %} - {% end %} - {{ killer['characterName'] }} - {{ killer['corporationName'] }} - {{ killer['allianceName'] }} - - {% end %} -
- +
+ + +
{% end %} diff --git a/web/templates/kill.html b/web/templates/kill.html new file mode 100644 index 0000000..6d4f69c --- /dev/null +++ b/web/templates/kill.html @@ -0,0 +1,30 @@ +{% extends "base.html" %} + +{% block main %} + +
+ {% for kill in kills %} + + {{ kill['killTime'] }} + {{ kill['solarSystemID'] }} + + + + + {{ kill['victim']['characterName'] }} + {{ kill['victim']['corporationName'] }} + {{ kill['victim']['allianceName'] }} + {% for attacker in kill['attackers'] %} + {% if attacker['finalBlow'] %} + {% set killer = attacker %} + {% break %} + {% end %} + {% end %} + {{ killer['characterName'] }} + {{ killer['corporationName'] }} + {{ killer['allianceName'] }} + + {% end %} +
+ +{% end %} diff --git a/web/templates/search.html b/web/templates/search.html new file mode 100644 index 0000000..03980af --- /dev/null +++ b/web/templates/search.html @@ -0,0 +1,12 @@ +{% extends "base.html" %} + +{% block main %} + +

Corporations

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