mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 12:40:40 +08:00
Merge pull request #2504 from riking/patch-2
Pretty sure anons can't open the composer
This commit is contained in:
commit
abf6ffcaa0
|
@ -65,21 +65,19 @@
|
||||||
<div class='preview-wrapper'>
|
<div class='preview-wrapper'>
|
||||||
<div id='wmd-preview' {{bind-attr class="hidePreview:hidden"}}></div>
|
<div id='wmd-preview' {{bind-attr class="hidePreview:hidden"}}></div>
|
||||||
</div>
|
</div>
|
||||||
{{#if currentUser}}
|
<div class="composer-bottom-right">
|
||||||
<div class="composer-bottom-right">
|
<a href="#" {{action togglePreview}} class='toggle-preview'>{{{model.toggleText}}}</a>
|
||||||
<a href="#" {{action togglePreview}} class='toggle-preview'>{{{model.toggleText}}}</a>
|
{{#if view.isUploading}}
|
||||||
{{#if view.isUploading}}
|
<div id="file-uploading">
|
||||||
<div id="file-uploading">
|
{{i18n upload_selector.uploading}} {{view.uploadProgress}}% <a id="cancel-file-upload">{{i18n cancel}}</a>
|
||||||
{{i18n upload_selector.uploading}} {{view.uploadProgress}}% <a id="cancel-file-upload">{{i18n cancel}}</a>
|
</div>
|
||||||
</div>
|
{{else}}
|
||||||
{{else}}
|
{{#if Discourse.Mobile.mobileView}}
|
||||||
{{#if Discourse.Mobile.mobileView}}
|
<a {{action showUploadSelector view}} class='mobile-file-upload'>{{i18n upload}}</a>
|
||||||
<a {{action showUploadSelector view}} class='mobile-file-upload'>{{i18n upload}}</a>
|
|
||||||
{{/if}}
|
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div id='draft-status'>{{model.draftStatus}}</div>
|
{{/if}}
|
||||||
</div>
|
<div id='draft-status'>{{model.draftStatus}}</div>
|
||||||
{{/if}}
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if currentUser}}
|
{{#if currentUser}}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user