If the setting is turned on, then the user will receive information about the subject: if it was deleted or requires some special access to a group (only if the group is public). Otherwise, the user will receive a generic #404 error message. For now, this change affects only the topics and categories controller. This commit also tries to refactor some of the code related to error handling. To make error pages more consistent (design-wise), the actual error page will be rendered server-side.
37 lines
906 B
Handlebars
37 lines
906 B
Handlebars
{{#if errorHtml}}
|
|
{{{errorHtml}}}
|
|
{{else}}
|
|
<div class="container">
|
|
{{discourse-banner user=currentUser banner=site.banner}}
|
|
</div>
|
|
|
|
<div class="list-controls">
|
|
<div class="container">
|
|
{{outlet "navigation-bar"}}
|
|
</div>
|
|
</div>
|
|
|
|
{{conditional-loading-spinner condition=loading}}
|
|
|
|
<div class="container list-container {{if loading "hidden"}}">
|
|
<div class="row">
|
|
<div class="full-width">
|
|
<div id="header-list-area">
|
|
{{outlet "header-list-container"}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="full-width">
|
|
<div id="list-area">
|
|
{{plugin-outlet name="discovery-list-container-top"
|
|
args=(hash category=category listLoading=loading)}}
|
|
{{outlet "list-container"}}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
{{plugin-outlet name="discovery-below"}}
|
|
{{/if}}
|