Added a new entry to settings which holds the base path of your Tracks installation. This is used for the javascripts and stylesheets path in standard.rhtml so that the full path is given.

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@21 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2005-02-12 12:46:20 +00:00
parent 008d850f13
commit 84a3d63abb
2 changed files with 5 additions and 4 deletions

View file

@ -1,12 +1,11 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<% tracks_path = app_configurations["path"]["base"] %>
<style type="text/css" media="screen">
@import url(/stylesheets/standard.css);
<%= "@import url(#{tracks_path}/stylesheets/standard.css);" %>
</style>
<script type="text/javascript" src="/javascripts/toggle_notes.js"></script>
<script type="text/javascript" language="JavaScript" src="/javascripts/xmlhttp.js"></script>
<%= "<script type=\"text/javascript\" src=\"#{tracks_path}/javascripts/toggle_notes.js\"</script>" %>
<link rel="shortcut icon" href="/favicon.ico" />
<title><%= @page_title %></title>

View file

@ -1,2 +1,4 @@
formats:
date: %d/%m/%Y
path:
base: http://tracks