From 0df83c25056f909b933915c899bf49db2a4b56ae Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Mon, 12 May 2014 11:37:23 -0400 Subject: [PATCH] added tpac-style config.tt2, mostly for global vars Signed-off-by: Bill Erickson --- Open-ILS/src/templates/staff/base.tt2 | 21 +++++++++++---------- Open-ILS/src/templates/staff/config.tt2 | 13 +++++++++++++ 2 files changed, 24 insertions(+), 10 deletions(-) create mode 100644 Open-ILS/src/templates/staff/config.tt2 diff --git a/Open-ILS/src/templates/staff/base.tt2 b/Open-ILS/src/templates/staff/base.tt2 index 5a361b2697..ce9cc5ebb7 100644 --- a/Open-ILS/src/templates/staff/base.tt2 +++ b/Open-ILS/src/templates/staff/base.tt2 @@ -1,10 +1,5 @@ -[%- - EVERGREEN_VERSION='0.0.1' - - # create script / css refs to individual files instead of using - EXPAND_WEB_IMPORTS=1; -%] +[%- PROCESS 'staff/config.tt2' %] @@ -13,25 +8,28 @@ - [% IF EXPAND_WEB_IMPORTS %] - - + + [% ELSE %] - + [% END %] + + +
[% content %]
+ [% # status bar along bottom of page INCLUDE "staff/statusbar.tt2"; @@ -42,6 +40,9 @@ # App-specific JS load commands go into an APP_JS block. PROCESS APP_JS; %] + + diff --git a/Open-ILS/src/templates/staff/config.tt2 b/Open-ILS/src/templates/staff/config.tt2 new file mode 100644 index 0000000000..c563d7ab97 --- /dev/null +++ b/Open-ILS/src/templates/staff/config.tt2 @@ -0,0 +1,13 @@ +[%- + +# FIXME: update via build process +EVERGREEN_VERSION='0.0.1' + +# create script / css refs to individual files instead of using +# compressed build files. Use this for development and debugging. +EXPAND_WEB_IMPORTS = 1; + +# path to build files (js, css, fonts) +WEB_BUILD_PATH = ctx.media_prefix _ '/js/ui/default/staff/build/'; + +%] -- 2.11.0