Skip to content
Snippets Groups Projects
Commit 89510b5b authored by Justin Cleveland's avatar Justin Cleveland
Browse files

relocating theme.json so it's not accessible from web path

parent 09905ee6
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,6 @@
<!-- set global vars that are used often -->
<script type="text/javascript">
var XNAT = {};
var serverRoot = "$content.getURI('')";
var csrfToken = "$!data.getSession().getAttribute("XNAT_CSRF")";
var showReason = typeof $showReason != 'undefined' ? $showReason : null;
......
......@@ -8,17 +8,15 @@
##<!-- the "no-js" class is for Modernizr - are we even using that? -->
<head>
#if ($themedRedirect) <!-- Reload the appropriate page if a global theme style specifies a redirect -->
<script type="text/javascript">
window.location = "$content.getURI("")$themedRedirect";
</script>
#end
#if ($theme)
<script type="text/javascript">
XNAT.theme = "$theme";
</script>
#end
<script type="text/javascript">
var XNAT = {};
#if ($themedRedirect) <!-- Reload the appropriate page if a global theme style specifies a redirect -->
window.location = "$content.getURI("")$themedRedirect";
#end
#if ($theme)
XNAT.theme = "$theme";
#end
</script>
<!-- path: xnat-templates/navigations/htmlOpen -->
<title>$!systemName</title>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment