From 528366f693634656e12673b2a279ef3b14b6c37b Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 26 Jun 2013 05:44:13 -0400
Subject: [PATCH] Fix Close link and remove About link on error pages (#1489109)

---
 CHANGELOG                              |    1 +
 skins/larry/templates/messagepart.html |    6 +-----
 skins/larry/includes/header.html       |    6 ++----
 3 files changed, 4 insertions(+), 9 deletions(-)

diff --git a/CHANGELOG b/CHANGELOG
index 5f736a7..5230c40 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,6 +1,7 @@
 CHANGELOG Roundcube Webmail
 ===========================
 
+- Fix Close link and remove About link on error pages (#1489109)
 - Remove deprecated (in PHP 5.5) PREG /e modifier usage (#1489174)
 - Fix empty messages list when register_globals is enabled (#1489157)
 - Improved/unified attachment preview screen, added print button
diff --git a/skins/larry/includes/header.html b/skins/larry/includes/header.html
index f2efb8e..c8b3b26 100644
--- a/skins/larry/includes/header.html
+++ b/skins/larry/includes/header.html
@@ -2,7 +2,7 @@
 <div id="topline">
 	<div class="topleft">
 		<roundcube:container name="topline-left" id="topline-left" />
-		<roundcube:button name="about" type="link" label="about" class="about-link" onclick="UI.show_about(this);return false" />
+		<roundcube:button name="about" type="link" label="about" class="about-link" onclick="UI.show_about(this);return false" condition="!env:extwin" />
 		<roundcube:if condition="config:support_url" />
 		<a href="<roundcube:var name='config:support_url' />" target="_blank" class="support-link" id="supportlink"><roundcube:label name="support" /></a>
 		<roundcube:endif />
@@ -14,7 +14,7 @@
 		<span class="username"><roundcube:object name="username" /></span>
 		<roundcube:button command="logout" label="logout" class="button-logout" />
 	<roundcube:elseif condition="env:extwin" />
-		<roundcube:button command="close" label="close" class="closelink" />
+		<roundcube:button name="close" type="link" label="close" class="closelink" onclick="self.close()" />
 	<roundcube:endif />
 	</div>
 </div>
@@ -35,5 +35,3 @@
 
 <br style="clear:both" />
 </div>
-
-
diff --git a/skins/larry/templates/messagepart.html b/skins/larry/templates/messagepart.html
index a60210c..8c75e60 100644
--- a/skins/larry/templates/messagepart.html
+++ b/skins/larry/templates/messagepart.html
@@ -6,11 +6,7 @@
 </head>
 <body class="extwin noscroll">
 
-<div id="topline">
-	<div class="topright">
-		<a href="#close" class="closelink" onclick="self.close()"><roundcube:label name="close" /></a>
-	</div>
-</div>
+<roundcube:include file="/includes/header.html" />
 
 <div id="mainscreen">
 

--
Gitblit v1.9.1