Moved the "No-JS"-Warning
authorAlexander Ebert <ebert@woltlab.com>
Sat, 30 Apr 2016 19:14:04 +0000 (21:14 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Sat, 30 Apr 2016 19:14:10 +0000 (21:14 +0200)
com.woltlab.wcf/templates/footer.tpl
com.woltlab.wcf/templates/userNotice.tpl
wcfsetup/install/files/style/ui/alert.scss

index dbbdd4a33d82acaf0042e223b228f437360e6133..8dd45119d209525e86062d3d7641994775d76bba 100644 (file)
 
 {@FOOTER_CODE}
 
+<noscript>
+       <p class="javascriptDisabledWarning">{lang}wcf.page.javascriptDisabled{/lang}</p>
+</noscript>
+
 <a id="bottom"></a>
                                
 </body>
index 645cbd364a8115d8498190f3517fe26337a4725b..47745eefc3723045f9b653d27c8abd8d45d341c8 100644 (file)
@@ -1,4 +1,4 @@
-<div class="userNotice">
+{capture assign='__userNotice'}
        {if OFFLINE && $__wcf->session->getPermission('admin.general.canViewPageDuringOfflineMode')}
                <div class="warning">
                        <p><strong>{lang}wcf.page.offline{/lang}</strong></p>
                <p class="info">{lang}wcf.global.availableUpdates{/lang}</p>
        {/if}
        
-       <noscript>
-               <p class="warning">{lang}wcf.page.javascriptDisabled{/lang}</p>
-       </noscript>
-       
        {if $__wcf->user->activationCode && REGISTER_ACTIVATION_METHOD == 1 && $templateName != 'registerActivation'}
                <p class="warning">{lang}wcf.user.register.needActivation{/lang}</p>
        {/if}
        
        {hascontent}
-               {content}
-                       {foreach from=$__wcf->getNoticeHandler()->getVisibleNotices() item='notice'}
-                               <p class="{$notice->cssClassName} notice{if $notice->isDismissible} noticeDismissible active{/if}">
-                                       {if $notice->isDismissible}
-                                               <span class="icon icon16 fa-times pointer jsDismissNoticeButton jsTooltip" data-object-id="{$notice->noticeID}" title="{lang}wcf.notice.button.dismiss{/lang}"></span>
-                                       {/if}
-                                       
-                                       {@$notice}
-                               </p>
-                       {/foreach}
-               {/content}
+       {content}
+       {foreach from=$__wcf->getNoticeHandler()->getVisibleNotices() item='notice'}
+               <p class="{$notice->cssClassName} notice{if $notice->isDismissible} noticeDismissible active{/if}">
+                       {if $notice->isDismissible}
+                               <span class="icon icon16 fa-times pointer jsDismissNoticeButton jsTooltip" data-object-id="{$notice->noticeID}" title="{lang}wcf.notice.button.dismiss{/lang}"></span>
+                       {/if}
+                       
+                       {@$notice}
+               </p>
+       {/foreach}
+       {/content}
                
                <script data-relocate="true">
                        require(['WoltLab/WCF/Controller/Notice/Dismiss'], function(ControllerNoticeDismiss) {
        {/hascontent}
        
        {event name='userNotice'}
-</div>
+{/capture}
+
+{if $__userNotice|trim}
+       <div class="userNotice">
+               {@$__userNotice}
+       </div>
+{/if}
index 7557977f0caf000375510684e3e1b19183a34272..26d7e9163ab0ef58f960325a1d0307dabb26a4b1 100644 (file)
        }
 }
 
+.javascriptDisabledWarning {
+       background-color: $wcfStatusErrorBackground;
+       border-top: 1px solid $wcfStatusErrorBorder;
+       bottom: 0;
+       color: $wcfStatusErrorText;
+       left: 0;
+       padding: 10px 20px;
+       position: fixed;
+       right: 0;
+       text-align: center;
+}
+
 /* inline infos */
 /* TODO: use other colors */
 .innerInfo {