|
21 | 21 |
|
22 | 22 | <div class="col-md-12"> |
23 | 23 | @if (Model.ContentTypeDescriptor.DisableDelete && !Model.IsNew) { |
24 | | - <div class="alert alert-warning" role="alert"> |
| 24 | + <div class="alert alert-danger" role="alert"> |
25 | 25 | <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> |
26 | 26 | <strong>Warning:</strong> This topic is part of the OnTopic internal organizational structure and is not intended to be modified. Deletion of this Topic has been disabled. |
27 | 27 | </div> |
28 | 28 | } |
| 29 | + @if (Model.Topic.IsDisabled) { |
| 30 | + <div class="alert alert-danger" role="alert"> |
| 31 | + <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> |
| 32 | + <strong>Warning:</strong> This topic is currently disabled and will not be viewable via the website. This topic can be reenabled on the <i>Navigation</i> tab. |
| 33 | + </div> |
| 34 | + } |
29 | 35 | @if (!Model.IsFullyLoaded) { |
30 | | - <div class="alert alert-warning" role="alert"> |
| 36 | + <div class="alert alert-danger" role="alert"> |
31 | 37 | <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> |
32 | 38 | <strong>Warning:</strong> Not all relationships were successfully loaded from the database. To prevent inadvertent deletion of relationships, any relationships that are removed won't be persisted to the database. You can still add new relationships. |
33 | 39 | </div> |
34 | 40 | } |
| 41 | + @if (Model.Topic.IsHidden && Model.Topic.NoIndex) { |
| 42 | + <div class="alert alert-warning" role="alert"> |
| 43 | + <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> |
| 44 | + <strong>Note:</strong> This topic is currently hidden from both search engines and the site navigation. Customers can still access it by URL, including direct links. |
| 45 | + </div> |
| 46 | + } |
| 47 | + else if (Model.Topic.IsHidden) { |
| 48 | + <div class="alert alert-warning" role="alert"> |
| 49 | + <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> |
| 50 | + <strong>Note:</strong> This topic is currently hidden and will not be displayed in the site navigation. Customers can still access it, and it will still show up in search results. |
| 51 | + </div> |
| 52 | + } |
| 53 | + else if (Model.Topic.NoIndex) { |
| 54 | + <div class="alert alert-warning" role="alert"> |
| 55 | + <button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> |
| 56 | + <strong>Note:</strong> This topic is currently hidden from search engines. Customers can still access it, but it won't show up in search results. |
| 57 | + </div> |
| 58 | + } |
35 | 59 | @if (!String.IsNullOrWhiteSpace(Model.ContentTypeDescriptor.Description)) { |
36 | 60 | <div class="alert alert-primary" role="alert"> |
37 | 61 | @Model.ContentTypeDescriptor.Description |
|
0 commit comments