#17000: No longer show themes with the 'hidden' tag on the admin UI.

--HG--
branch : dev
This commit is contained in:
Dave Reed
2010-12-09 12:15:54 -08:00
parent 5465e22122
commit 622b47b9e0

View File

@@ -26,7 +26,12 @@
<h2>@T("Available Themes")</h2>
<ul class="templates">
@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>
<div>
<h3>@theme.Name</h3>