summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanvolchek <volchek2@illinois.edu>2018-10-08 19:58:53 -0500
committerdanvolchek <volchek2@illinois.edu>2018-10-08 19:58:53 -0500
commit40f0a53f8fbab603b9b5349d9a9707cf1373c063 (patch)
tree802f51d3195a93027ca3cfa0af3f46e6fa8b7c71
parent7829df45cbe563ecbf95b84ffbc8cc86e06b1c92 (diff)
downloadSMAPI-40f0a53f8fbab603b9b5349d9a9707cf1373c063.tar.gz
SMAPI-40f0a53f8fbab603b9b5349d9a9707cf1373c063.tar.bz2
SMAPI-40f0a53f8fbab603b9b5349d9a9707cf1373c063.zip
display author of content packs
-rw-r--r--docs/release-notes.md1
-rw-r--r--src/SMAPI.Web/Views/LogParser/Index.cshtml13
2 files changed, 13 insertions, 1 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index 6ce0169a..0abef381 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -21,6 +21,7 @@
* For the web UI:
* The log parser now has a separate filter for game messages.
+ * The log parser now displays the author of each content pack.
* For modders:
* Added [data API](https://stardewvalleywiki.com/Modding:Modder_Guide/APIs/Data).
diff --git a/src/SMAPI.Web/Views/LogParser/Index.cshtml b/src/SMAPI.Web/Views/LogParser/Index.cshtml
index e735e8f3..1bd5558a 100644
--- a/src/SMAPI.Web/Views/LogParser/Index.cshtml
+++ b/src/SMAPI.Web/Views/LogParser/Index.cshtml
@@ -165,7 +165,18 @@ else if (Model.ParsedLog?.IsValid == true)
</div>
}
</td>
- <td v-pre>@mod.Author</td>
+ <td v-pre>
+ @mod.Author
+ @if (contentPacks != null && contentPacks.TryGetValue(mod.Name, out contentPackList))
+ {
+ <div class="content-packs">
+ @foreach (var contentPack in contentPackList)
+ {
+ <text>+ @contentPack.Author</text><br />
+ }
+ </div>
+ }
+ </td>
@if (mod.Errors == 0)
{
<td v-pre class="color-green">no errors</td>