summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Views/Mods/Index.cshtml
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-02-08 18:20:03 -0500
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-02-08 18:20:03 -0500
commit84b9f4336d5b0c7f269a7bfbb94042360574bbaa (patch)
tree0a4d138f88522ca101bff739c8ade1f62c74fbfe /src/SMAPI.Web/Views/Mods/Index.cshtml
parent79c616600576acf16f70daad68cc60a22cbbbf74 (diff)
parent41f77f51c0203fa36c1e47cf67409244ed3c2ff2 (diff)
downloadSMAPI-84b9f4336d5b0c7f269a7bfbb94042360574bbaa.tar.gz
SMAPI-84b9f4336d5b0c7f269a7bfbb94042360574bbaa.tar.bz2
SMAPI-84b9f4336d5b0c7f269a7bfbb94042360574bbaa.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI.Web/Views/Mods/Index.cshtml')
-rw-r--r--src/SMAPI.Web/Views/Mods/Index.cshtml19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/SMAPI.Web/Views/Mods/Index.cshtml b/src/SMAPI.Web/Views/Mods/Index.cshtml
index a6c94cf1..a30a0048 100644
--- a/src/SMAPI.Web/Views/Mods/Index.cshtml
+++ b/src/SMAPI.Web/Views/Mods/Index.cshtml
@@ -4,15 +4,16 @@
ViewData["Title"] = "SMAPI mod compatibility";
}
@section Head {
- <link rel="stylesheet" href="~/Content/css/mods.css?r=20181122" />
+ <link rel="stylesheet" href="~/Content/css/mods.css?r=20190125" />
<script src="https://cdn.jsdelivr.net/npm/vue@2.5.17/dist/vue.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/tablesorter@2.31.0/dist/js/jquery.tablesorter.combined.min.js" crossorigin="anonymous"></script>
- <script src="~/Content/js/mods.js?r=20181122"></script>
+ <script src="~/Content/js/mods.js?r=20190125"></script>
<script>
$(function() {
var data = @Json.Serialize(Model.Mods, new JsonSerializerSettings { Formatting = Formatting.None });
- smapi.modList(data);
+ var enableBeta = @Json.Serialize(Model.BetaVersion != null);
+ smapi.modList(data, enableBeta);
});
</script>
}
@@ -39,7 +40,7 @@
<label for="show-advanced">show advanced info and options</label>
<div id="filters" v-show="showAdvanced">
<div v-for="(filterGroup, key) in filters">
- {{key}}: <span v-for="filter in filterGroup" v-bind:class="{ active: filter.value }"><input type="checkbox" v-bind:id="filter.id" v-model="filter.value" v-on:change="applyFilters" /> <label v-bind:for="filter.id">{{filter.label}}</label></span>
+ {{filterGroup.label}}: <span v-for="filter in filterGroup.value" v-bind:class="{ active: filter.value }"><input type="checkbox" v-bind:id="filter.id" v-model="filter.value" v-on:change="applyFilters" /> <label v-bind:for="filter.id">{{filter.label}}</label></span>
</div>
</div>
</div>
@@ -93,12 +94,10 @@
<span v-else class="mod-closed-source">no source</span>
</td>
<td v-show="showAdvanced">
- <template v-if="mod.LatestCompatibility.Status == 'ok' || mod.LatestCompatibility.Status == 'unofficial' || mod.Smapi3Status == 'ok' || mod.Smapi3Status == 'soon'">
- <small v-if="mod.Smapi3Status == 'ok'">✓</small>
- <small v-else-if="mod.Smapi3Status == 'broken'">✖</small>
- <small v-else-if="mod.Smapi3Status == 'soon' && mod.Smapi3Url"><a v-bind:href="mod.Smapi3Url">↻ soon</a></small>
- <small v-else>↻ {{mod.Smapi3Status}}</small>
- </template>
+ <small v-if="mod.LatestCompatibility.Status == 'ok' || mod.LatestCompatibility.Status == 'unofficial' || mod.Smapi3Status == 'ok' || mod.Smapi3Status == 'soon' || mod.Smapi3Url">
+ <a v-if="mod.Smapi3Url" v-bind:href="mod.Smapi3Url">{{mod.Smapi3DisplayText}}</a>
+ <template v-else>{{mod.Smapi3DisplayText}}</template>
+ </small>
</td>
<td>
<small><a v-bind:href="'#' + mod.Slug">#</a></small>