]> git.mxchange.org Git - friendica.git/commitdiff
jot: show preview only if preview is activatet in the settings
authorrabuzarus <>
Wed, 18 May 2016 12:58:15 +0000 (14:58 +0200)
committerrabuzarus <>
Wed, 18 May 2016 12:58:15 +0000 (14:58 +0200)
templates/jot.tpl

index b65c0859ac829c0e917b47026e0394e6d1b2ccec..c546757d84a5587e38c7889d44bb03336b58fad7 100644 (file)
@@ -85,7 +85,7 @@
                                                the modal. Changing of the activity status is done by js in jot.tpl-header *}}
                                        <li class="active" role="menuitem"><a id="jot-text-lnk" onclick="jotActive(); return false;">Text</a></li>
                                        {{if $acl}}<li role="menuitem"><a id="jot-perms-lnk" onclick="aclActive();return false;">Permissions</a></li>{{/if}}
-                                       <li role="menuitem"><a id="jot-preview-lnk" onclick="previewActive();return false;">{{$preview}}</a></li>
+                                       {{if $preview}}<li role="menuitem"><a id="jot-preview-lnk" onclick="previewActive();return false;">{{$preview}}</a></li>{{/if}}
                                        <li role="menuitem"><a id="jot-preview-link" onclick="fbrowserActive(); return false;"> Browser </a></li>
                                </ul>
                                
@@ -97,7 +97,7 @@
                                                the modal. Changing of the activity status is done by js in jot.tpl-header *}}
                                                <li class="active" role="menuitem"><a id="jot-text-lnk-mobile" onclick="jotActive(); return false;">Text</a></li>
                                                {{if $acl}}<li role="menuitem"><a id="jot-perms-lnk-mobile" onclick="aclActive();return false;">Permissions</a></li>{{/if}}
-                                               <li role="menuitem"><a id="jot-preview-lnk-mobile" onclick="previewActive();return false;">{{$preview}}</a></li>
+                                               {{if $preview}}<li role="menuitem"><a id="jot-preview-lnk-mobile" onclick="previewActive();return false;">{{$preview}}</a></li>{{/if}}
                                        </ul>
                                </div>
                        </div>