#490 offline mode
This commit is contained in:
parent
d9c1d1bf57
commit
70ea640801
@ -440,6 +440,7 @@
|
||||
</div>
|
||||
|
||||
@if (
|
||||
!Model.OfflineMode &&
|
||||
Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Length > 0
|
||||
)
|
||||
{
|
||||
@ -734,7 +735,7 @@
|
||||
<svg class="noindent-info-button" height="24px" viewBox="0 0 24 24" width="24px" fill="#5f6368"><path d="M0 0h24v24H0V0z" fill="none" /><path d="M19 8h-1V3H6v5H5c-1.66 0-3 1.34-3 3v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3zM8 5h8v3H8V5zm8 12v2H8v-4h8v2zm2-2v-2H6v2H4v-4c0-.55.45-1 1-1h14c.55 0 1 .45 1 1v4h-2z" /><circle cx="18" cy="11.5" r="1" /></svg>
|
||||
</a>
|
||||
|
||||
@if (Model.GanjoorPage.Poem.GeoDateTags.Any())
|
||||
@if (!Model.OfflineMode && Model.GanjoorPage.Poem.GeoDateTags.Any())
|
||||
{
|
||||
<div id="catmap"></div>
|
||||
}
|
||||
@ -1356,7 +1357,7 @@
|
||||
|
||||
|
||||
|
||||
@if ((Model.IsCatPage || Model.IsPoetPage) && Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Length > 0)
|
||||
@if (!Model.OfflineMode && (Model.IsCatPage || Model.IsPoetPage) && Model.CategoryPoemGeoDateTags != null && Model.CategoryPoemGeoDateTags.Length > 0)
|
||||
{
|
||||
<script>
|
||||
var poemGeoTags = [];
|
||||
@ -1420,7 +1421,7 @@
|
||||
</script>
|
||||
}
|
||||
|
||||
@if (Model.IsPoemPage && Model.GanjoorPage.Poem.GeoDateTags.Length > 0)
|
||||
@if (!Model.OfflineMode && Model.IsPoemPage && Model.GanjoorPage.Poem.GeoDateTags.Length > 0)
|
||||
{
|
||||
<script>
|
||||
var poemGeoTags = [];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user