mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 03:25:23 +08:00
#17000: No longer show themes with the 'hidden' tag on the admin UI.
--HG-- branch : dev
This commit is contained in:
@@ -26,7 +26,12 @@
|
|||||||
<h2>@T("Available Themes")</h2>
|
<h2>@T("Available Themes")</h2>
|
||||||
<ul class="templates">
|
<ul class="templates">
|
||||||
@foreach (var theme in Model.Themes) {
|
@foreach (var theme in Model.Themes) {
|
||||||
if (Model.CurrentTheme == null || theme.Id != Model.CurrentTheme.Id) {
|
var tags = theme.Descriptor.Tags;
|
||||||
|
bool hidden = false;
|
||||||
|
if (tags != null) {
|
||||||
|
hidden = tags.Split(',').Any(t => t.Trim().Equals("hidden", StringComparison.OrdinalIgnoreCase));
|
||||||
|
}
|
||||||
|
if (!hidden && (Model.CurrentTheme == null || theme.Id != Model.CurrentTheme.Id)) {
|
||||||
<li>
|
<li>
|
||||||
<div>
|
<div>
|
||||||
<h3>@theme.Name</h3>
|
<h3>@theme.Name</h3>
|
||||||
|
Reference in New Issue
Block a user