From a08a4b99f52e996abb384f141d8cf44a42e72e45 Mon Sep 17 00:00:00 2001
From: Renaud Le Gac <renaud.legac@free.fr>
Date: Sat, 2 May 2009 09:07:55 +0000
Subject: [PATCH] Add comment and REvision keyword. Modified to add global
 variable. Prepare space for a loading indicator.

---
 views/app.html | 19 ++++++++++++-------
 1 file changed, 12 insertions(+), 7 deletions(-)

diff --git a/views/app.html b/views/app.html
index 3df8c008..dc8d6473 100644
--- a/views/app.html
+++ b/views/app.html
@@ -1,5 +1,6 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+	<!-- $Id$ -->
 	<head>
 		<meta http-equiv="content-type" content="text/html; charset=utf-8" />
 		<meta name="author" lang="en" content="{{=response.author}}" />
@@ -7,16 +8,20 @@
 		<meta name="description" content="{{=response.description}}" />
 		<title>{{=response.title or URL(r=request)}}</title>
 
+		<!-- Load css class -->
 		{{for el in clibs:}}
-		<link rel="stylesheet" type="text/css" href="{{=el}}"/>
-		{{pass}}
-
-		{{for el in jlibs:}}
-		<script type="text/javascript" src="{{=el}}"></script>
-		{{pass}}
-
+		<link rel="stylesheet" type="text/css" href="{{=el}}"/>{{pass}}
+		
+		<!-- define global variable for javascripts -->
+		<script type="text/javascript">
+			AppName = '{{=request.application}}';
+		</script>
 	</head>
 	<body>
+		<!-- the loading indicator -->
+		<!-- load javascript librairies -->
+		{{for el in jlibs:}}
+		<script type="text/javascript" src="{{=el}}"></script>{{pass}}
 	</body>
 </html>
 
-- 
GitLab