From 6d39d633b6eeefdbd38be6b2db6063cf0d628b0a Mon Sep 17 00:00:00 2001 From: "Brian E. Granger" Date: Wed, 15 May 2013 16:21:39 -0700 Subject: [PATCH] More work on the less setup. --- .../html/notebook/static/auth/less/style.less | 4 ++ .../{ => js}/celltoolbarpresets/default.js | 0 .../{ => js}/celltoolbarpresets/example.js | 0 .../{ => js}/celltoolbarpresets/slideshow.js | 0 .../html/notebook/templates/login.html | 16 +++-- .../html/notebook/templates/logout.html | 15 +++-- .../html/notebook/templates/notebooks.html | 64 +++++++++---------- .../html/notebook/templates/page.html | 10 +-- .../html/notebook/templates/tree.html | 22 ++++--- 9 files changed, 71 insertions(+), 60 deletions(-) create mode 100644 IPython/frontend/html/notebook/static/auth/less/style.less rename IPython/frontend/html/notebook/static/notebooks/{ => js}/celltoolbarpresets/default.js (100%) rename IPython/frontend/html/notebook/static/notebooks/{ => js}/celltoolbarpresets/example.js (100%) rename IPython/frontend/html/notebook/static/notebooks/{ => js}/celltoolbarpresets/slideshow.js (100%) diff --git a/IPython/frontend/html/notebook/static/auth/less/style.less b/IPython/frontend/html/notebook/static/auth/less/style.less new file mode 100644 index 000000000..464f817a5 --- /dev/null +++ b/IPython/frontend/html/notebook/static/auth/less/style.less @@ -0,0 +1,4 @@ +@import "../../base/less/base.less"; +@import "variables.less"; +@import "login.less"; +@import "logout.less"; diff --git a/IPython/frontend/html/notebook/static/notebooks/celltoolbarpresets/default.js b/IPython/frontend/html/notebook/static/notebooks/js/celltoolbarpresets/default.js similarity index 100% rename from IPython/frontend/html/notebook/static/notebooks/celltoolbarpresets/default.js rename to IPython/frontend/html/notebook/static/notebooks/js/celltoolbarpresets/default.js diff --git a/IPython/frontend/html/notebook/static/notebooks/celltoolbarpresets/example.js b/IPython/frontend/html/notebook/static/notebooks/js/celltoolbarpresets/example.js similarity index 100% rename from IPython/frontend/html/notebook/static/notebooks/celltoolbarpresets/example.js rename to IPython/frontend/html/notebook/static/notebooks/js/celltoolbarpresets/example.js diff --git a/IPython/frontend/html/notebook/static/notebooks/celltoolbarpresets/slideshow.js b/IPython/frontend/html/notebook/static/notebooks/js/celltoolbarpresets/slideshow.js similarity index 100% rename from IPython/frontend/html/notebook/static/notebooks/celltoolbarpresets/slideshow.js rename to IPython/frontend/html/notebook/static/notebooks/js/celltoolbarpresets/slideshow.js diff --git a/IPython/frontend/html/notebook/templates/login.html b/IPython/frontend/html/notebook/templates/login.html index c5afd27e3..c2a5fd581 100644 --- a/IPython/frontend/html/notebook/templates/login.html +++ b/IPython/frontend/html/notebook/templates/login.html @@ -1,10 +1,12 @@ -{% extends "base.html" %} +{% extends "page.html" %} -{% block stylesheet %} - - - -{% endblock %} +{% block lesscss %} + {% if use_less %} + + {% else %} + + {% endif %} +{% endblock lesscss%} {% block login_widget %} @@ -37,6 +39,6 @@ {% block script %} - + {% endblock %} diff --git a/IPython/frontend/html/notebook/templates/logout.html b/IPython/frontend/html/notebook/templates/logout.html index 3a4920d83..78ade2d59 100644 --- a/IPython/frontend/html/notebook/templates/logout.html +++ b/IPython/frontend/html/notebook/templates/logout.html @@ -1,10 +1,13 @@ -{% extends "base.html" %} +{% extends "page.html" %} -{% block stylesheet %} - - +{% block lesscss %} + {% if use_less %} + + {% else %} + + {% endif %} +{% endblock lesscss%} -{% endblock %} {% block login_widget %} @@ -35,6 +38,6 @@ {% block script %} - + {% endblock %} diff --git a/IPython/frontend/html/notebook/templates/notebooks.html b/IPython/frontend/html/notebook/templates/notebooks.html index 2a4f0f86d..db2e4c7be 100644 --- a/IPython/frontend/html/notebook/templates/notebooks.html +++ b/IPython/frontend/html/notebook/templates/notebooks.html @@ -1,4 +1,4 @@ -{% extends "base.html" %} +{% extends "page.html" %} {% block stylesheet %} @@ -19,9 +19,9 @@ window.mathjax_url = "{{mathjax_url}}"; {% block lesscss %} {% if use_less %} - + {% else %} - + {% endif %} {% endblock lesscss%} @@ -202,7 +202,7 @@ class="notebook_app" - + @@ -216,33 +216,33 @@ class="notebook_app" - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + {% endblock %} diff --git a/IPython/frontend/html/notebook/templates/page.html b/IPython/frontend/html/notebook/templates/page.html index 58804827c..6afc8c195 100644 --- a/IPython/frontend/html/notebook/templates/page.html +++ b/IPython/frontend/html/notebook/templates/page.html @@ -12,7 +12,7 @@ {% block title %}IPython Notebook{% endblock %} - + {% block stylesheet %} {% block lesscss %} {% endblock lesscss%} @@ -28,7 +28,7 @@