Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/roundcube/roundcubemail.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/skins
diff options
context:
space:
mode:
authorAleksander Machniak <alec@alec.pl>2017-01-04 15:03:27 +0300
committerAleksander Machniak <alec@alec.pl>2017-01-04 15:03:27 +0300
commit9d6aa00a44daebe4491c4777ac7f4a542e610195 (patch)
treef0ca2bc27aabe09fe7cfdc8e0c6cb126b9d5eb9d /skins
parentf78e2a43674722e132df2fa2bcd4765aaa20d003 (diff)
Hide QR-Code button if PHP-GD is not installed1.3-beta
Keep it as an optional dependency.
Diffstat (limited to 'skins')
-rw-r--r--skins/classic/templates/contact.html2
-rw-r--r--skins/larry/templates/contact.html2
2 files changed, 4 insertions, 0 deletions
diff --git a/skins/classic/templates/contact.html b/skins/classic/templates/contact.html
index 2022a2ce0..3835222e1 100644
--- a/skins/classic/templates/contact.html
+++ b/skins/classic/templates/contact.html
@@ -21,7 +21,9 @@
</div>
<p>
<roundcube:button command="edit" type="input" class="button" label="editcontact" condition="!ENV:readonly" />
+ <roundcube:if condition="env:qrcode" />
<roundcube:button command="qrcode" type="input" class="button" label="qrcode" />
+ <roundcube:endif />
</p>
</div>
<script type="text/javascript">rcube_init_tabs('contacttabs')</script>
diff --git a/skins/larry/templates/contact.html b/skins/larry/templates/contact.html
index de42e1a9d..252d83d45 100644
--- a/skins/larry/templates/contact.html
+++ b/skins/larry/templates/contact.html
@@ -25,7 +25,9 @@
<div id="headerbuttons" class="formbuttons">
<roundcube:button command="edit" type="input" class="button mainaction" label="editcontact" condition="!ENV:readonly" />
+ <roundcube:if condition="env:qrcode" />
<roundcube:button command="qrcode" type="input" class="button" label="qrcode" />
+ <roundcube:endif />
</div>
<roundcube:include file="/includes/footer.html" />