summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/SMAPI.Web/Views/Mods/Index.cshtml10
-rw-r--r--src/SMAPI.Web/wwwroot/Content/js/mods.js15
2 files changed, 19 insertions, 6 deletions
diff --git a/src/SMAPI.Web/Views/Mods/Index.cshtml b/src/SMAPI.Web/Views/Mods/Index.cshtml
index a6c94cf1..92637f01 100644
--- a/src/SMAPI.Web/Views/Mods/Index.cshtml
+++ b/src/SMAPI.Web/Views/Mods/Index.cshtml
@@ -93,12 +93,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>
diff --git a/src/SMAPI.Web/wwwroot/Content/js/mods.js b/src/SMAPI.Web/wwwroot/Content/js/mods.js
index 28992908..b0352d36 100644
--- a/src/SMAPI.Web/wwwroot/Content/js/mods.js
+++ b/src/SMAPI.Web/wwwroot/Content/js/mods.js
@@ -127,6 +127,21 @@ smapi.modList = function (mods) {
// set overall compatibility
mod.LatestCompatibility = mod.BetaCompatibility || mod.Compatibility;
+ // set SMAPI 3.0 display text
+ switch (mod.Smapi3Status) {
+ case "ok":
+ mod.Smapi3DisplayText = "✓";
+ break;
+
+ case "broken":
+ mod.Smapi3DisplayText = "✖";
+ break;
+
+ default:
+ mod.Smapi3DisplayText = "↻ " + mod.Smapi3Status;
+ break;
+ }
+
// concatenate searchable text
mod.SearchableText = [mod.Name, mod.AlternateNames, mod.Author, mod.AlternateAuthors, mod.Compatibility.Summary, mod.BrokeIn];
if (mod.Compatibility.UnofficialVersion)