- @if (User.IsInRole("Moderator") && Model.SimilarTags.Count > 0)
+ @if (User.IsInRole("Moderator") && Model.RecommendedTags.Any())
{
@foreach (var Tag in Model.UnusedTags.Where(m => m.Category.ToString() == "Genre"))
@@ -179,12 +176,12 @@
@{var PreviousCategory = "";}
-
- @foreach (var Tag in Model.UnusedTags.Where(m => !string.IsNullOrEmpty(m.Category.ToString())
- && m.Category.ToString() != "Genre"
- && m.Category.ToString() != "OtherDescription"
- && m.Category.ToString() != "CreatureName"
- && m.Category.ToString() != "Use"))
+ @foreach (var Tag in Model.UnusedTags
+ .Where(m => !string.IsNullOrEmpty(m.Category.ToString())
+ && m.Category != TagCategory.Genre
+ && m.Category != TagCategory.OtherDescription
+ && m.Category != TagCategory.CreatureName
+ && m.Category != TagCategory.Use))
{
@if (Tag.Category.ToString() != PreviousCategory)
{
@@ -219,10 +216,7 @@
}
+ Add as new tag
-