Started to make index page extensible.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1214 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-08-24 00:52:19 +00:00
parent f25b25bfae
commit d61522eb64
6 changed files with 35 additions and 20 deletions

View File

@ -6,6 +6,7 @@ var bundle = true;
var templatedFiles = {
// Requests with last path segments mentioned here
// will get served from .vt files with the same names
"index" : true,
"project" : true,
"preferences" : true
};
@ -107,6 +108,31 @@ function init() {
registerCommands();
ClientSideResourceManager.addPaths(
"index/scripts",
module,
[
"externals/jquery-1.4.2.min.js",
"externals/jquery-ui/jquery-ui-1.8.custom.min.js",
"externals/date.js",
"scripts/util/string.js",
"scripts/version.js",
"scripts/index.js"
]
);
ClientSideResourceManager.addPaths(
"index/styles",
module,
[
"externals/jquery-ui/css/ui-lightness/jquery-ui-1.8.custom.css",
"styles/common.css",
"styles/freebase.css",
"styles/index.css",
"styles/jquery-ui-overrides.css"
]
);
ClientSideResourceManager.addPaths(
"project/scripts",
module,
@ -251,7 +277,9 @@ function process(path, request, response) {
"text/javascript"
);
} else {
if (path.endsWith("/")) {
if (path == "/" || path == "") {
path = "/index";
} else if (path.endsWith("/")) {
path = path.substring(0, path.length - 1);
}

View File

@ -66,7 +66,7 @@
<body>
<div id="header">
<a id="logo" href="http://www.freebase.com/" title="Freebase"><img alt="Freebase" src="images/freebase-headerlogo.png" /></a>
<div id="path"><span class="app-path-section"><a href="./index.html">Gridworks</a></span></div>
<div id="path"><span class="app-path-section"><a href="./">Gridworks</a></span></div>
</div>
<div id="body">

View File

@ -27,7 +27,7 @@
<body>
<div id="header">
<a id="logo" href="http://www.freebase.com/" title="Freebase"><img alt="Freebase" src="images/freebase-headerlogo.png" /></a>
<div id="path"><span class="app-path-section"><a href="./index.html">Gridworks</a></span></div>
<div id="path"><span class="app-path-section"><a href="./">Gridworks</a></span></div>
</div>
<div id="body">

View File

@ -5,21 +5,8 @@
<link rel="icon" type="image/png" href="images/favicon.png">
<link type="text/css" rel="stylesheet" href="externals/jquery-ui/css/ui-lightness/jquery-ui-1.8.custom.css" />
<link rel="stylesheet" href="/styles/common.css" />
<link rel="stylesheet" href="/styles/freebase.css" />
<link rel="stylesheet" href="/styles/index.css" />
<link rel="stylesheet" href="/styles/jquery-ui-overrides.css" />
<script type="text/javascript" src="externals/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="externals/jquery-ui/jquery-ui-1.8.custom.min.js"></script>
<script type="text/javascript" src="externals/date.js"></script>
<script type="text/javascript" src="scripts/util/string.js"></script>
<script type="text/javascript" src="scripts/version.js"></script>
<script type="text/javascript" src="scripts/index.js"></script>
$scriptInjection
$styleInjection
</head>
<body>
<div id="header">

View File

@ -14,7 +14,7 @@
<body>
<div id="header">
<a id="logo" href="http://www.freebase.com/" title="Freebase"><img alt="Freebase" src="images/freebase-headerlogo.png" /></a>
<div id="path"><span class="app-path-section"><a href="./index.html">Gridworks</a></span><span class="app-path-section">Preferences</span></div>
<div id="path"><span class="app-path-section"><a href="./">Gridworks</a></span><span class="app-path-section">Preferences</span></div>
</div>
<div id="body">

View File

@ -15,7 +15,7 @@
<body>
<div id="header">
<a id="logo" href="http://www.freebase.com/" title="Freebase"><img alt="Freebase" src="images/freebase-headerlogo.png" /></a>
<div id="path"><span class="app-path-section"><a href="./index.html">Gridworks</a></span></div>
<div id="path"><span class="app-path-section"><a href="./">Gridworks</a></span></div>
</div>
<div id="body">