Skip to content

Commit

Permalink
Rolling back to previous theme until we polish bootswarch.paper
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Feb 28, 2016
1 parent 58c7b8c commit bc41820
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 19 deletions.
31 changes: 15 additions & 16 deletions panoramix/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,23 +114,22 @@

# ---------------------------------------------------
# Theme configuration
# these are located on static/appbuilder/css/themes
# you can create your own and easily use them placing them on the
# same dir structure to override
# ---------------------------------------------------
# APP_THEME = "bootstrap-theme.css" # default bootstrap
# APP_THEME = "cerulean.css"
# APP_THEME = "amelia.css"
# APP_THEME = "cosmo.css"
# APP_THEME = "cyborg.css"
# APP_THEME = "flatly.css"
# APP_THEME = "journal.css"
# APP_THEME = "readable.css"
# APP_THEME = "simplex.css"
# APP_THEME = "slate.css"
# APP_THEME = "spacelab.css"
# APP_THEME = "united.css"
# APP_THEME = "yeti.css"
CSS_THEME = '/static/assets/stylesheets/themes/panoramix-bootstrap-theme.css'
# CSS_THEME = '/static/assets/stylesheets/themes/bootswatch.paper.min.css'
# CSS_THEME = "/static/appbuilder/css/bootstrap.min.css" # default bootstrap
# CSS_THEME = "/static/appbuilder/css/themes/cerulean.css"
# CSS_THEME = "/static/appbuilder/css/themes/amelia.css"
# CSS_THEME = "/static/appbuilder/css/themes/cosmo.css"
# CSS_THEME = "/static/appbuilder/css/themes/cyborg.css"
# CSS_THEME = "/static/appbuilder/css/themes/flatly.css"
# CSS_THEME = "/static/appbuilder/css/themes/journal.css"
# CSS_THEME = "/static/appbuilder/css/themes/readable.css"
# CSS_THEME = "/static/appbuilder/css/themes/simplex.css"
# CSS_THEME = "/static/appbuilder/css/themes/slate.css"
# CSS_THEME = "/static/appbuilder/css/themes/spacelab.css"
# CSS_THEME = "/static/appbuilder/css/themes/united.css"
# CSS_THEME = "/static/appbuilder/css/themes/yeti.css"

try:
from panoramix_config import *
Expand Down
5 changes: 4 additions & 1 deletion panoramix/templates/panoramix/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
{% block head_css %}
{{super()}}
<link rel="stylesheet" type="text/css" href="/static/assets/stylesheets/panoramix.css" />
<link rel="stylesheet" type="text/css" href="/static/assets/stylesheets/themes/bootswatch.paper.min.css" />
{% set CSS_THEME = appbuilder.get_app.config.get("CSS_THEME") %}
{% if CSS_THEME %}
<link rel="stylesheet" type="text/css" href="{{ CSS_THEME }}" />
{% endif %}
{% endblock %}
6 changes: 4 additions & 2 deletions panoramix/templates/panoramix/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,10 @@
<link rel="stylesheet" type="text/css" href="/static/assets/node_modules/select2/select2.css" />
<link rel="stylesheet" type="text/css" href="/static/assets/node_modules/select2/select2-bootstrap.css" />
<link rel="stylesheet" type="text/css" href="/static/assets/stylesheets/panoramix.css" />
<!-- Replace with custom bootstrap theme -->
<link rel="stylesheet" type="text/css" href="/static/assets/stylesheets/themes/bootswatch.paper.min.css" />
{% set CSS_THEME = appbuilder.get_app.config.get("CSS_THEME") %}
{% if CSS_THEME %}
<link rel="stylesheet" type="text/css" href="{{ CSS_THEME }}" />
{% endif %}
{% endblock %}
{% block head_js %}{% endblock %}
</head>
Expand Down

0 comments on commit bc41820

Please sign in to comment.