From fc948cacef9c9b8c0a1e84cbc082ca67cd5f68d9 Mon Sep 17 00:00:00 2001
From: James Moger <james.moger@gitblit.com>
Date: Thu, 14 Apr 2011 18:29:10 -0400
Subject: [PATCH] Authenticate the webapp against the same realm as the git servlet.

---
 src/com/gitblit/wicket/pages/SummaryPage.html |   87 +++++++++++++------------------------------
 1 files changed, 26 insertions(+), 61 deletions(-)

diff --git a/src/com/gitblit/wicket/pages/SummaryPage.html b/src/com/gitblit/wicket/pages/SummaryPage.html
index 9ed6929..7075bd2 100644
--- a/src/com/gitblit/wicket/pages/SummaryPage.html
+++ b/src/com/gitblit/wicket/pages/SummaryPage.html
@@ -1,80 +1,45 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<html xmlns="http://www.w3.org/1999/xhtml" >
+<!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"  
+      xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.3-strict.dtd"  
+      xml:lang="en"  
+      lang="en"> 
+
 <body>
-	<!-- page header -->
-	<div wicket:id="pageHeader"></div>
-	
+<wicket:extend>
+
 	<!-- page nav links -->	
-	<div wicket:id="pageLinks"></div>
+	<div wicket:id="pageLinks">[page links]</div>
 	
 	<div>
 		<!-- Repository Activity Chart -->	
-		<div style="width:50%;float:right;">
+		<div style="width:400px;float:right;">
 			<img class="activityGraph" wicket:id="commitsChart" />
 		</div>	
 	
 		<!-- Repository info -->
-		<div style="width:50%;"> 
+		<div style="margin-right:410px;"> 
 			<table class="plain">
-				<tr><th>description</th><td><span wicket:id="repositoryDescription">Message goes here</span></td></tr>
-				<tr><th>owner</th><td><span wicket:id="repositoryOwner">Message goes here</span></td></tr>
-				<tr><th>last change</th><td><span wicket:id="repositoryLastChange">Message goes here</span></td></tr>
-				<tr><th>URL</th><td><span wicket:id="repositoryCloneUrl">Message goes here</span></td></tr>
+				<tr><th><wicket:message key="gb.description">description</wicket:message></th><td><span wicket:id="repositoryDescription">[repository description]</span></td></tr>
+				<tr><th><wicket:message key="gb.owner">owner</wicket:message></th><td><span wicket:id="repositoryOwner">[repository owner]</span></td></tr>
+				<tr><th><wicket:message key="gb.lastChange">last change</wicket:message></th><td><span wicket:id="repositoryLastChange">[repository last change]</span></td></tr>
+				<tr><th><wicket:message key="gb.url">URL</wicket:message></th><td><span wicket:id="repositoryCloneUrl">[repository clone url]</span></td></tr>
 			</table>
 		</div>
 	</div>
 
-	<!-- shortlog -->
-	<div class="header" wicket:id="shortlog"></div>	
-	<table style="width:100%" class="pretty">
-		<tbody>
-       		<tr wicket:id="commit">
-         		<td class="date"><span wicket:id="commitDate"></span></td>
-         		<td class="author"><span wicket:id="commitAuthor"></span></td>
-         		<td><div wicket:id="commitShortMessage"></div></td>
-         		<td class="rightAlign"><div wicket:id="commitRefs"></div></td>
-         		<td class="rightAlign"><span wicket:id="commitLinks"></span></td>
-       		</tr>
-    	</tbody>
-	</table>	
-	<div class="pager" wicket:id="shortlogMore"></div>
+	<!-- commits -->
+	<div style="padding-bottom:10px;" wicket:id="commitsPanel">[commits panel]</div>	
 
-	<!-- Open Heads Body -->
-	<div style="width:34%;float:right;">
-		<!-- heads -->
-		<div class="header" wicket:id="heads"></div>	
-		<table style="width:100%" class="pretty">
-			<tbody>
-   				<tr wicket:id="head">
-       				<td class="date"><span wicket:id="headDate"></span></td>
-       				<td><div wicket:id="headName"></div></td>
-       				<td class="rightAlign"><span wicket:id="headLinks"></span></td>
-   				</tr>
-   			</tbody>
-		</table>
-		<div class="pager" wicket:id="allHeads"></div>
-		<!-- Close Heads Body -->
+	<!-- branches -->
+	<div style="padding-bottom:10px;width:400px; float:left;">
+		<div wicket:id="branchesPanel">[branches panel]</div>
+	</div>
+
+	<!-- tags -->
+	<div style="padding-bottom:10px;margin-left:405px;">
+		<div wicket:id="tagsPanel">[tags panel]</div>
 	</div>
 	
-	<!-- Open Tags body -->
-	<div style="width:65%">
-		<!-- tags -->
-		<div class="header" wicket:id="tags"></div>	
-			<table style="width:100%" class="pretty">
-				<tbody>
-       				<tr wicket:id="tag">
-         				<td class="date"><span wicket:id="tagDate"></span></td>
-         				<td><b><div wicket:id="tagName"></div></b></td>
-         				<td><div wicket:id="tagDescription"></div></td>
-         				<td class="rightAlign"><span wicket:id="tagLinks"></span></td>
-       				</tr>
-    			</tbody>
-			</table>
-		<div class="pager" wicket:id="allTags"></div>	
-	<!-- Close Tags Body -->
-	</div>
-	
-	<!-- footer -->
-	<div style="clear:both;" wicket:id="pageFooter"></div>
+</wicket:extend>	
 </body>
 </html>
\ No newline at end of file

--
Gitblit v1.9.1