From 323fa20bc89edcd683bef1a170445f681305fc5c Mon Sep 17 00:00:00 2001
From: Aleksander Machniak <alec@alec.pl>
Date: Wed, 23 Mar 2016 11:54:31 -0400
Subject: [PATCH] Message/rfc822 attachment preview (#5054)

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

diff --git a/skins/larry/templates/messagepreview.html b/skins/larry/templates/messagepreview.html
index 2e3b5ef..e504285 100644
--- a/skins/larry/templates/messagepreview.html
+++ b/skins/larry/templates/messagepreview.html
@@ -22,13 +22,15 @@
 	</span>
 	&nbsp;
 <roundcube:endif />
-<roundcube:if condition="env:mailbox != config:drafts_mbox">
+<roundcube:if condition="env:mailbox != config:drafts_mbox and env:no_preview_controls == false">
 	<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:button command="extwin" type="link" class="button extwin" classSel="button extwin pressed" innerClass="icon" title="openinextwin" label="openinextwin" />
+<roundcube:endif />
 </div>
 
 <h3 class="subject"><span class="voice"><roundcube:label name="subject" />: </span><roundcube:object name="messageHeaders" valueOf="subject" /></h3>

--
Gitblit v1.9.1