FEATURE: add a banner when read-only mode is enabled

This commit is contained in:
Régis Hanol 2014-02-27 19:50:20 +01:00
parent fee9870427
commit e5a4dc6eac
4 changed files with 24 additions and 2 deletions

View File

@ -1,4 +1,9 @@
<div class="container">
{{#if Discourse.isReadOnly}}
<div class="row">
<div class="alert alert-info">{{i18n "read_only_mode.enabled"}}</div>
</div>
{{/if}}
<div class="row">
<div class="full-width">

View File

@ -1,4 +1,9 @@
<div class='container'>
{{customHTML "top"}}
{{#if Discourse.isReadOnly}}
<div class="alert alert-info">{{i18n "read_only_mode.enabled"}}</div>
{{/if}}
</div>
<div class='list-controls'>
<div class="container">

View File

@ -1,4 +1,9 @@
<div class='container'>
{{customHTML "top"}}
{{#if Discourse.isReadOnly}}
<div class="alert alert-info">{{i18n "read_only_mode.enabled"}}</div>
{{/if}}
</div>
{{#if postStream.loaded}}

View File

@ -1,3 +1,10 @@
<div class='container'>
{{customHTML "top"}}
{{#if Discourse.isReadOnly}}
<div class="alert alert-info">{{i18n "read_only_mode.enabled"}}</div>
{{/if}}
</div>
{{#unless loading}}
<div class="container">