Browse Source

Use character style over default site-wide stylesheet.

master
Ben Kurtovic 8 years ago
parent
commit
856361f98a
2 changed files with 6 additions and 2 deletions
  1. +1
    -1
      README.md
  2. +5
    -1
      templates/_base.mako

+ 1
- 1
README.md View File

@@ -32,4 +32,4 @@ Guide
### Deploy

uwsgi --ini config/uwsgi.ini
# proxy to 127.0.0.1:9001
# proxy to http://127.0.0.1:9001

+ 5
- 1
templates/_base.mako View File

@@ -9,7 +9,11 @@
<link rel="canonical" href="${g.config.scheme}://${g.config.get('site.canonical')}${request.script_root}${request.path}">
<link rel="stylesheet" type="text/css" href="${url_for('staticv', filename='main.css')}"/>
% if g.config.get("style"):
<% stylesheet = "styles/{}.css".format(g.config.get("style")) %>
<%
charstyle = g.auth.get_character_prop("style")
style = charstyle if charstyle else g.config.get("style")
stylesheet = "styles/{}.css".format(style)
%>
<link rel="stylesheet" type="text/css" href="${url_for('staticv', filename=stylesheet)}"/>
% endif
% for size in g.eve.image.corp_widths:


Loading…
Cancel
Save