Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

extract toolbar template to index.html - try to force no cache on ind…

…ex.html
  • Loading branch information...
commit ffc4e8e82cb24d15f8ff447d16ffc970f6f04719 1 parent aaa10a4
@pstoellberger pstoellberger authored
Showing with 26 additions and 13 deletions.
  1. +25 −1 index.html
  2. +1 −12 js/saiku/views/Toolbar.js
View
26 index.html
@@ -2,6 +2,12 @@
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
+ <meta http-equiv="cache-control" content="max-age=0" />
+ <meta http-equiv="cache-control" content="no-cache" />
+ <meta http-equiv="expires" content="0" />
+ <meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
+ <meta http-equiv="pragma" content="no-cache" />
+
<title>Saiku - Next Generation Open Source Analytics</title>
<!--[if lt IE 9]><script type="text/javascript" src="js/svgweb/svg.js" data-path="js/svgweb/"></script><![endif]-->
@@ -23,7 +29,8 @@
<!-- Saiku CSS -->
<link rel="stylesheet" href="css/saiku/src/styles.css" type="text/css">
<link rel="shortcut icon" href="favicon.ico">
- </head>
+
+ </head>
<body>
<div id="header" class="hide"></div>
@@ -112,7 +119,24 @@
<script type="text/javascript" src="js/saiku/plugins/BIServer/plugin.js" defer></script>
<script type="text/javascript" src="js/saiku/plugins/Buckets/plugin.js" defer></script>
+
+
+
<!-- Templates -->
+ <script type="text/x-jquery-tmpl" id="template-toolbar">
+ <ul>
+ <li><a id='new_query' href='#new_query' title='New query' class='new_tab i18n sprite'></a></li>
+ <li class='separator'>&nbsp;</li>
+ <li><a id='open_query' href='#open_query' title='Open query' class='open_query i18n sprite'></a></li>
+ <li class='separator'>&nbsp;</li>
+ <li><a id='logout' href='#logout' title='Logout' class='logout i18n sprite'></a></li>
+ <li><a id='about' href='#about' title='About' class='about i18n sprite'></a></li>
+ <li class='separator'>&nbsp;</li>
+ <li><a id='issue_tracker' href='#issue_tracker' title='Issue Tracker' class='bug i18n sprite'></a></li>
+ </ul>
+ <h1 id='logo'><a href='http://www.analytical-labs.com/' title='Saiku - Next Generation Open Source Analytics' class='sprite'>Saiku</a></h1>
+ </script>
+
<script type="text/x-jquery-tmpl" id="template-cubes">
<select class="cubes">
<option value="" class="i18n">Select a cube</option>
View
13 js/saiku/views/Toolbar.js
@@ -33,18 +33,7 @@ var Toolbar = Backbone.View.extend({
},
template: function() {
- return _.template("<ul>" +
- "<li><a id='new_query' href='#new_query' title='New query' class='new_tab i18n sprite'></a></li>" +
- "<li class='separator'>&nbsp;</li>" +
- "<li><a id='open_query' href='#open_query' title='Open query' class='open_query i18n sprite'></a></li>" +
- "<li class='separator'>&nbsp;</li>" +
- "<li><a id='logout' href='#logout' title='Logout' class='logout i18n sprite'></a></li>" +
- "<li><a id='about' href='#about' title='About' class='about i18n sprite'></a></li>" +
- "<li class='separator'>&nbsp;</li>" +
- "<li><a id='issue_tracker' href='#issue_tracker' title='Issue Tracker' class='bug i18n sprite'></a></li>" +
- "</ul>" +
- "<h1 id='logo'><a href='http://www.analytical-labs.com/' title='Saiku - Next Generation Open Source Analytics' class='sprite'>Saiku</a></h1>"
- )(this);
+ return _.template( $("#template-toolbar").html() )(this);
},
initialize: function() {
Please sign in to comment.
Something went wrong with that request. Please try again.