summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Views/Mods
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-05-09 14:06:10 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-05-09 14:06:10 -0400
commitdf84df5ff195ccb7b9a47fbf644e175a26b40aa4 (patch)
tree229a18b48b67406e78da0eea2190f64d17db8af9 /src/SMAPI.Web/Views/Mods
parentf82a8e3c2dbc52e9db293fb71be693aed48825c4 (diff)
downloadSMAPI-df84df5ff195ccb7b9a47fbf644e175a26b40aa4.tar.gz
SMAPI-df84df5ff195ccb7b9a47fbf644e175a26b40aa4.tar.bz2
SMAPI-df84df5ff195ccb7b9a47fbf644e175a26b40aa4.zip
add GitHub licenses to mod compatibility list, update release notes
Diffstat (limited to 'src/SMAPI.Web/Views/Mods')
-rw-r--r--src/SMAPI.Web/Views/Mods/Index.cshtml11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/SMAPI.Web/Views/Mods/Index.cshtml b/src/SMAPI.Web/Views/Mods/Index.cshtml
index f9835d36..842a1e03 100644
--- a/src/SMAPI.Web/Views/Mods/Index.cshtml
+++ b/src/SMAPI.Web/Views/Mods/Index.cshtml
@@ -1,6 +1,7 @@
@using Humanizer
@using Humanizer.Localisation
@using StardewModdingAPI.Web.Framework
+@using StardewModdingAPI.Web.ViewModels
@model StardewModdingAPI.Web.ViewModels.ModListModel
@{
ViewData["Title"] = "Mod compatibility";
@@ -15,7 +16,7 @@
<script src="~/Content/js/mods.js?r=20200218"></script>
<script>
$(function() {
- var data = @this.ForJson(Model.Mods);
+ var data = @this.ForJson(Model.Mods ?? new ModModel[0]);
var enableBeta = @this.ForJson(Model.BetaVersion != null);
smapi.modList(data, enableBeta);
});
@@ -103,7 +104,13 @@ else
</td>
<td class="mod-broke-in" v-html="mod.LatestCompatibility.BrokeIn" v-show="showAdvanced"></td>
<td v-show="showAdvanced">
- <span v-if="mod.SourceUrl"><a v-bind:href="mod.SourceUrl">source</a></span>
+ <span v-if="mod.SourceUrl">
+ <a v-bind:href="mod.SourceUrl">source</a>
+ <span v-if="mod.GitHubRepo">
+ @* see https://shields.io/category/license *@
+ (<img v-bind:src="'http://img.shields.io/github/license/' + mod.GitHubRepo + '?style=flat-square.png&label='" class="license-badge" alt="source" />)
+ </span>
+ </span>
<span v-else class="mod-closed-source">no source</span>
</td>
<td>