@model SceneEditViewModel @{ var totalSuggestions = Model.CharacterSuggestions.Count + Model.AssetSuggestions.Count + Model.LocationSuggestions.Count; }
Word Companion suggestions @totalSuggestions
@if (totalSuggestions == 0) {

No pending Word Companion suggestions for this scene.

}
Character suggestions @Model.CharacterSuggestions.Count
@if (!Model.CharacterSuggestions.Any()) {

No pending character suggestions.

} else {
@foreach (var suggestion in Model.CharacterSuggestions) {

@suggestion.CharacterName

@suggestion.Confidence confidence

Character
@if (!string.IsNullOrWhiteSpace(suggestion.Reason)) {

@suggestion.Reason

}

Detected @suggestion.DetectedUtc.ToLocalTime().ToString("d MMM yyyy HH:mm")

@Html.AntiForgeryToken()
@Html.AntiForgeryToken()
}
}
Asset suggestions @Model.AssetSuggestions.Count
@if (!Model.AssetSuggestions.Any()) {

No pending asset suggestions.

} else {
@foreach (var suggestion in Model.AssetSuggestions) {

@suggestion.AssetName

@suggestion.Confidence confidence

Asset
@if (!string.IsNullOrWhiteSpace(suggestion.Reason)) {

@suggestion.Reason

}

Detected @suggestion.DetectedUtc.ToLocalTime().ToString("d MMM yyyy HH:mm")

@Html.AntiForgeryToken()
@Html.AntiForgeryToken()
}
}
Location suggestions @Model.LocationSuggestions.Count
@if (!Model.LocationSuggestions.Any()) {

No pending location suggestions.

} else {
@foreach (var suggestion in Model.LocationSuggestions) {

@(!string.IsNullOrWhiteSpace(suggestion.LocationPath) ? suggestion.LocationPath : suggestion.LocationName)

@suggestion.Confidence confidence

Location
@if (!string.IsNullOrWhiteSpace(suggestion.Reason)) {

@suggestion.Reason

}

Detected @suggestion.DetectedUtc.ToLocalTime().ToString("d MMM yyyy HH:mm")

@Html.AntiForgeryToken()
@Html.AntiForgeryToken()
}
}