mirror of
https://github.com/flarum/framework.git
synced 2024-11-26 02:10:09 +08:00
9bfb797fdc
- All custom JS variables are now preloaded into the `app.data` object, rather than directly on the `app` object. This means that admin settings are available in `app.data.settings` rather than `app.settings`, etc. - Cleaner route handler generation - Renamed ConfigureClientView to ConfigureWebApp, though the former still exists and is deprecated - Partial fix for #881 (strips ?nojs=1 from URL if possible, so that refreshing will attempt to load JS version again)
24 lines
531 B
PHP
24 lines
531 B
PHP
<div id="flarum-loading" style="display: none">
|
|
{{ $translator->trans('core.views.content.loading_text') }}
|
|
</div>
|
|
|
|
@if ($allowJs)
|
|
<noscript>
|
|
<div class="Alert">
|
|
<div class="container">
|
|
{{ $translator->trans('core.views.content.javascript_disabled_message') }}
|
|
</div>
|
|
</div>
|
|
|
|
{!! $content !!}
|
|
</noscript>
|
|
@else
|
|
<div class="Alert Alert--error">
|
|
<div class="container">
|
|
{{ $translator->trans('core.views.content.load_error_message') }}
|
|
</div>
|
|
</div>
|
|
|
|
{!! $content !!}
|
|
@endif
|