Skip to content

Commit

Permalink
Moving html assets back to flask template folder
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Feb 27, 2016
1 parent c929b2a commit 4f4c67c
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
6 changes: 0 additions & 6 deletions panoramix/assets/html/index.html

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "refactor/basic.html" %}
{% extends "panoramix/basic.html" %}

{% block head_css %}
{{ super() }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "refactor/basic.html" %}
{% extends "panoramix/basic.html" %}

{% block body %}
{% set datasource = viz.datasource %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "refactor/basic.html" %}
{% extends "panoramix/basic.html" %}
{% block body %}
<div class="container">
<div class="header">
Expand Down
6 changes: 6 additions & 0 deletions panoramix/templates/panoramix/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{% extends "panoramix/basic.html" %}

{% block tail_js %}
{{ super() }}
<script src="/static/assets/javascripts/dist/index.entry.js"></script>
{% endblock %}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{% extends "refactor/basic.html" %}
{% extends "panoramix/basic.html" %}

{% block head_css %}
{{super()}}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{% if viz.request.args.get("standalone") == "true" %}
{% extends 'panoramix/standalone.html' %}
{% else %}
{% extends 'refactor/explore.html' %}
{% extends 'panoramix/explore.html' %}
{% endif %}

{% endif %}
10 changes: 5 additions & 5 deletions panoramix/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,10 +471,10 @@ def explore(self, datasource_type, datasource_id):
else:
if config.get("DEBUG"):
resp = self.render_template(
"refactor/viz.html", viz=obj, slice=slc)
"panoramix/viz.html", viz=obj, slice=slc)
try:
resp = self.render_template(
"refactor/viz.html", viz=obj, slice=slc)
"panoramix/viz.html", viz=obj, slice=slc)
except Exception as e:
if config.get("DEBUG"):
raise(e)
Expand Down Expand Up @@ -560,7 +560,7 @@ def dashboard(**kwargs):
int(o['slice_id']):o
for o in json.loads(dash.position_json)}
return self.render_template(
"refactor/dashboard.html", dashboard=dash,
"panoramix/dashboard.html", dashboard=dash,
templates=templates,
pos_dict=pos_dict)

Expand All @@ -575,7 +575,7 @@ def sql(self, database_id):

table_name=request.args.get('table_name')
return self.render_template(
"refactor/sql.html",
"panoramix/sql.html",
tables=tables,
table_name=table_name,
db=mydb)
Expand Down Expand Up @@ -718,7 +718,7 @@ def featured(self):
)
featured_datasets = datasets_sqla + datasets_druid
return self.render_template(
'refactor/featured.html',
'panoramix/featured.html',
featured_datasets=featured_datasets,
utils=utils)

Expand Down

0 comments on commit 4f4c67c

Please sign in to comment.