From 46f7b7096450939fe03c95aa81ce06ae4bfca89d Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Mon, 28 Mar 2016 06:51:43 -0400
Subject: [PATCH] Enable reply/reply-all/forward buttons also in preview frame of message/rfc822

---
 skins/larry/templates/messagepreview.html |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/skins/larry/templates/messagepreview.html b/skins/larry/templates/messagepreview.html
index e504285..371fb71 100644
--- a/skins/larry/templates/messagepreview.html
+++ b/skins/larry/templates/messagepreview.html
@@ -15,20 +15,20 @@
 	<span class="buttongroup">
 		<roundcube:button command="change-format" prop="html" type="link" class="button first changeformat html selected" innerClass="icon" title="changeformathtml" content="HTML" /><roundcube:button command="change-format" prop="text" type="link" class="button last changeformat text" classSel="button changeformat text pressed" innerClass="icon" title="changeformattext" content="Text" />
 	</span>
-	&nbsp;
 <roundcube:elseif condition="env:optional_format=='html'" />
+	&nbsp;
 	<span class="buttongroup">
 		<roundcube:button command="change-format" prop="html" type="link" class="button first changeformat html" classSel="button changeformat html pressed" innerClass="icon" title="changeformathtml" content="HTML" /><roundcube:button command="change-format" prop="text" type="link" class="button last changeformat text selected" innerClass="icon" title="changeformattext" content="Text" />
 	</span>
-	&nbsp;
 <roundcube:endif />
-<roundcube:if condition="env:mailbox != config:drafts_mbox and env:no_preview_controls == false">
+<roundcube:if condition="env:mailbox != config:drafts_mbox || env:message_context">
+	&nbsp;
 	<roundcube:button command="reply" type="link" class="button reply" classSel="button reply pressed" innerClass="icon" title="replytomessage" label="replytomessage" />
 	<roundcube:button command="reply-all" type="link" class="button replyall" classSel="button replyall pressed" innerClass="icon" title="replytoallmessage" label="replytoallmessage" />
 	<roundcube:button command="forward" type="link" class="button forward" classSel="button forward pressed" innerClass="icon" title="forwardmessage" label="forwardmessage" />
-	&nbsp;
 <roundcube:endif />
-<roundcube:if condition="env:no_preview_controls == false">
+<roundcube:if condition="!env:message_context">
+	&nbsp;
 	<roundcube:button command="extwin" type="link" class="button extwin" classSel="button extwin pressed" innerClass="icon" title="openinextwin" label="openinextwin" />
 <roundcube:endif />
 </div>

--
Gitblit v1.9.1