people tags #387
This commit is contained in:
parent
f4b522e980
commit
854bae2873
@ -104,8 +104,11 @@
|
|||||||
<div id="topvisits-placeholder"></div>
|
<div id="topvisits-placeholder"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@* Map *@
|
@* Map - only when at least one tag actually carries a Location; person tags (added alongside
|
||||||
@if (!Model.OfflineMode && Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Length > 0)
|
geo/date tags on the same CategoryPoemGeoDateTags array) never have one, so a category whose
|
||||||
|
tags are all person tags would otherwise still pass a plain "array not empty" check below and
|
||||||
|
render an empty map with nothing to pin. *@
|
||||||
|
@if (!Model.OfflineMode && Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Any(t => t.Location != null))
|
||||||
{
|
{
|
||||||
<div id="catmap"></div>
|
<div id="catmap"></div>
|
||||||
}
|
}
|
||||||
@ -146,7 +149,7 @@
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
@if (!Model.OfflineMode && Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Length > 0)
|
@if (!Model.OfflineMode && Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Any(t => t.Location != null))
|
||||||
{
|
{
|
||||||
<script>
|
<script>
|
||||||
var poemGeoTags = [];
|
var poemGeoTags = [];
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user