From 0db1c252cd3cf805a0f1b1946203847e344daecd Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 8 Aug 2015 17:00:04 -0500 Subject: [PATCH] Add "core" JS/CSS defs to base template, for sharing's sake. --- tailbone/templates/base.mako | 40 +++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 17 deletions(-) diff --git a/tailbone/templates/base.mako b/tailbone/templates/base.mako index 7d90a5a6..0616fe14 100644 --- a/tailbone/templates/base.mako +++ b/tailbone/templates/base.mako @@ -5,23 +5,8 @@ ${self.global_title()} » ${capture(self.title)} - - ${h.javascript_link(request.static_url('tailbone:static/js/lib/jquery-1.9.1.min.js'))} - ${h.javascript_link(request.static_url('tailbone:static/js/lib/jquery-ui-1.10.0.custom.min.js'))} - ${h.javascript_link(request.static_url('tailbone:static/js/lib/jquery.ui.menubar.js'))} - ${h.javascript_link(request.static_url('tailbone:static/js/lib/jquery.loadmask.min.js'))} - ${h.javascript_link(request.static_url('tailbone:static/js/tailbone.js'))} - - ${h.stylesheet_link(request.static_url('tailbone:static/css/normalize.css'))} - ${h.stylesheet_link(request.static_url('tailbone:static/css/smoothness/jquery-ui-1.10.0.custom.min.css'))} - ${h.stylesheet_link(request.static_url('tailbone:static/css/jquery.ui.menubar.css'))} - ${h.stylesheet_link(request.static_url('tailbone:static/css/jquery.loadmask.css'))} - ${h.stylesheet_link(request.static_url('tailbone:static/css/base.css'))} - ${h.stylesheet_link(request.static_url('tailbone:static/css/layout.css'))} - ${h.stylesheet_link(request.static_url('tailbone:static/css/grids.css'))} - ${h.stylesheet_link(request.static_url('tailbone:static/css/filters.css'))} - ${h.stylesheet_link(request.static_url('tailbone:static/css/forms.css'))} - + ${self.core_javascript()} + ${self.core_styles()} ${self.head_tags()} @@ -141,4 +126,25 @@ <%def name="title()"> +<%def name="core_javascript()"> + ${h.javascript_link('https://code.jquery.com/jquery-1.11.3.min.js')} + ${h.javascript_link('https://code.jquery.com/ui/1.11.4/jquery-ui.min.js')} + ${h.javascript_link(request.static_url('tailbone:static/js/lib/jquery.ui.menubar.js'))} + ${h.javascript_link(request.static_url('tailbone:static/js/lib/jquery.loadmask.min.js'))} + ${h.javascript_link(request.static_url('tailbone:static/js/tailbone.js'))} + + +<%def name="core_styles()"> + ${h.stylesheet_link(request.static_url('tailbone:static/css/normalize.css'))} + ${h.stylesheet_link('https://code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.min.css')} + ${h.stylesheet_link(request.static_url('tailbone:static/css/jquery.ui.menubar.css'))} + ${h.stylesheet_link(request.static_url('tailbone:static/css/jquery.loadmask.css'))} + ${h.stylesheet_link(request.static_url('tailbone:static/css/jquery.ui.tailbone.css'))} + ${h.stylesheet_link(request.static_url('tailbone:static/css/base.css'))} + ${h.stylesheet_link(request.static_url('tailbone:static/css/layout.css'))} + ${h.stylesheet_link(request.static_url('tailbone:static/css/grids.css'))} + ${h.stylesheet_link(request.static_url('tailbone:static/css/filters.css'))} + ${h.stylesheet_link(request.static_url('tailbone:static/css/forms.css'))} + + <%def name="head_tags()">