From c464ef6cf7b247cceecb640685a24a1ed9b4841b Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Wed, 22 Dec 2010 22:55:40 +0000 Subject: [PATCH] New character layout --- media/css/style.css | 25 +++++++- settings.py | 2 +- templates/sso/character.html | 116 +++++++++++++++++++++++++---------- templates/sso/profile.html | 2 +- 4 files changed, 109 insertions(+), 36 deletions(-) diff --git a/media/css/style.css b/media/css/style.css index 76efdfa..0d3b1e6 100644 --- a/media/css/style.css +++ b/media/css/style.css @@ -101,12 +101,16 @@ border-collapse: collapse; border-spacing: 0px;} table td -{background-color: #CCC; +{ color: #000; padding: 4px; text-align: left; border: 1px #fff solid;} +table tr { background-color: #CCC; } +table tr:nth-child(odd) { background-color: #ddd; } +table tr:hover { background-color: #eed; } + table th {background-color: #333; color: #fff; @@ -115,3 +119,22 @@ text-align: left; border-bottom: 2px #fff solid; font-size: 12px; font-weight: bold;} + +.character_info > div { margin-bottom: 2em; } +.character_info .character_portrait, .character_info .character_corporation, .character_info .character_alliance { float: right; } +.character_info .character_corporation { clear: right; margin-left: 2em; } +.character_info .character_corporation span, .character_info .character_alliance span { font-weight: bold; display: block; text-align: center; } +.character_info .character_attributes ul { margin: .25em 2em; padding: 0; } +.character_info .character_skills table { width: 100%; } +.character_info .character_stats table { width: 300px; } +.character_info .character_attributes .stat { font-weight: bold; } +.character_skills th { cursor:pointer;cursor:hand; } +.toggle_off th { background-color: #000; } +.skill_controls { margin-bottom: .5em; } +.skill_controls a { + background: none repeat scroll 0 0 #CC6600; + color: #FFFFFF; + display: inline-block; + padding: 4px 12px; + text-decoration: none; +} diff --git a/settings.py b/settings.py index 04cb246..b2c7cfb 100755 --- a/settings.py +++ b/settings.py @@ -103,7 +103,7 @@ INSTALLED_APPS = ( 'reddit', 'hr', 'sso', - 'groups', +# 'groups', 'api', ) diff --git a/templates/sso/character.html b/templates/sso/character.html index b39f6c1..fec5230 100644 --- a/templates/sso/character.html +++ b/templates/sso/character.html @@ -4,43 +4,93 @@ {% block content %} -

{{ character.name }}

+
+

{{ character.name }}

- +
+ +
+ + + + - +
+

Attributes

+ + +
+
+

Stats

+ + + + + + + + +
StatValue
Intelligence {{ character.attrib_intelligence }}
Memory{{ character.attrib_memory }}
Charisma{{ character.attrib_charisma }}
Perception{{ character.attrib_perception }}
Willpower{{ character.attrib_willpower }}
+
- +
+

Skills

+ + + + {% for g ,v in skills.items %} + + {% endfor %} + {% endfor %} + +
{{ g }} + {% for skill in v %} +
{{ skill.skill.name }} Level {{ skill.level }}{{ skill.skillpoints|intcomma }} SP
Total SP{{ character.total_sp|intcomma }} SP
+
+
- - - - - - - -
StatValue
Intelligence {{ character.attrib_intelligence }}
Memory{{ character.attrib_memory }}
Charisma{{ character.attrib_charisma }}
Perception{{ character.attrib_perception }}
Willpower{{ character.attrib_willpower }}
-
- -

Skills

- - -{% for g ,v in skills.items %} - -{% endfor %} -{% endfor %} - -
{{ g }} -{% for skill in v %} -
{{ skill.skill.name }} Level {{ skill.level }}{{ skill.skillpoints|intcomma }} SP
Total SP{{ character.total_sp|intcomma }} SP
+ + {% endblock %} diff --git a/templates/sso/profile.html b/templates/sso/profile.html index 3469723..88c5d58 100644 --- a/templates/sso/profile.html +++ b/templates/sso/profile.html @@ -7,7 +7,7 @@ {% block content %} - +