From 594d176d39691ff46b2c99fdfaa4299a4ea43616 Mon Sep 17 00:00:00 2001
From: Jesse Plamondon-Willard
Date: Thu, 15 Mar 2018 23:36:16 -0400
Subject: prepare home page for upcoming beta (#457)
---
src/SMAPI.Web/Views/Index/Index.cshtml | 35 +++++++++++++++++++++++++++-------
1 file changed, 28 insertions(+), 7 deletions(-)
(limited to 'src/SMAPI.Web/Views')
diff --git a/src/SMAPI.Web/Views/Index/Index.cshtml b/src/SMAPI.Web/Views/Index/Index.cshtml
index ad58898e..4efb9f8a 100644
--- a/src/SMAPI.Web/Views/Index/Index.cshtml
+++ b/src/SMAPI.Web/Views/Index/Index.cshtml
@@ -13,7 +13,11 @@
-
Download SMAPI @Model.LatestVersion
+
Download SMAPI @Model.StableVersion.Version
+ @if (Model.BetaVersion != null)
+ {
+
Download SMAPI @Model.BetaVersion.Version
for Stardew Valley 1.3 beta
+ }
Install guide
FAQs

@@ -25,12 +29,29 @@
Get help on Discord or in the forums
-
What's new in SMAPI @Model.LatestVersion?
-
- @Html.Raw(Markdig.Markdown.ToHtml(Model.Description))
-
+@if (Model.BetaVersion == null)
+{
+
What's new in SMAPI @Model.StableVersion.Version?
+
+ @Html.Raw(Markdig.Markdown.ToHtml(Model.StableVersion.Description))
+
+
See the release notes and mod compatibility list for more info.
+}
+else
+{
+
What's new in...
+
SMAPI @Model.StableVersion.Version?
+
+ @Html.Raw(Markdig.Markdown.ToHtml(Model.StableVersion.Description))
+
+
See the release notes and mod compatibility list for more info.
-
See the release notes and mod compatibility list for more info.
+
SMAPI @Model.BetaVersion.Version?
+
+ @Html.Raw(Markdig.Markdown.ToHtml(Model.BetaVersion.Description))
+
+
See the release notes and mod compatibility list for more info.
+}
Donate to support SMAPI ♥
@@ -62,7 +83,7 @@
For mod creators
--
cgit
From 91561eedc7c8247a6179e0158eb9f9affdf65012 Mon Sep 17 00:00:00 2001
From: Jesse Plamondon-Willard
Date: Fri, 23 Mar 2018 01:21:50 -0400
Subject: fix log parser errors when log text contains {{tokens}}
---
src/SMAPI.Web/Views/LogParser/Index.cshtml | 36 +++++++++++++++---------------
1 file changed, 18 insertions(+), 18 deletions(-)
(limited to 'src/SMAPI.Web/Views')
diff --git a/src/SMAPI.Web/Views/LogParser/Index.cshtml b/src/SMAPI.Web/Views/LogParser/Index.cshtml
index d2d8004e..9c21c8c0 100644
--- a/src/SMAPI.Web/Views/LogParser/Index.cshtml
+++ b/src/SMAPI.Web/Views/LogParser/Index.cshtml
@@ -54,23 +54,23 @@
Game info:
| SMAPI version: |
- @Model.ParsedLog.ApiVersion |
+ @Model.ParsedLog.ApiVersion |
| Game version: |
- @Model.ParsedLog.GameVersion |
+ @Model.ParsedLog.GameVersion |
| Platform: |
- @Model.ParsedLog.OperatingSystem |
+ @Model.ParsedLog.OperatingSystem |
| Mods path: |
- @Model.ParsedLog.ModPath |
+ @Model.ParsedLog.ModPath |
| Log started: |
- @Model.ParsedLog.Timestamp.UtcDateTime.ToString("yyyy-MM-dd HH:mm") UTC ({{localTimeStarted}} your time) |
+ @Model.ParsedLog.Timestamp.UtcDateTime.ToString("yyyy-MM-dd HH:mm") UTC ({{localTimeStarted}} your time) |
@@ -85,7 +85,7 @@
{
|
-
+ |
@mod.Name
@if (contentPacks != null && contentPacks.TryGetValue(mod.Name, out LogModInfo[] contentPackList))
{
@@ -97,19 +97,19 @@
}
|
- @mod.Version |
- @mod.Author |
+ @mod.Version |
+ @mod.Author |
@if (mod.Errors == 0)
{
- no errors |
+ no errors |
}
else if (mod.Errors == 1)
{
- @mod.Errors error |
+ @mod.Errors error |
}
else
{
- @mod.Errors errors |
+ @mod.Errors errors |
}
}
@@ -130,16 +130,16 @@
string levelStr = message.Level.ToString().ToLower();
- | @message.Time |
- @message.Level.ToString().ToUpper() |
- @message.Mod |
- @message.Text |
+ @message.Time |
+ @message.Level.ToString().ToUpper() |
+ @message.Mod |
+ @message.Text |
if (message.Repeated > 0)
{
|
- repeats [@message.Repeated] times. |
+ repeats [@message.Repeated] times. |
}
}
@@ -151,11 +151,11 @@ else if (Model.ParsedLog?.IsValid == false)
Parsed log
We couldn't parse that file, but you can still share the link.
-
Error details: @Model.ParsedLog.Error
+
Error details: @Model.ParsedLog.Error
Raw log
- @Model.ParsedLog.RawText
+ @Model.ParsedLog.RawText
}
--
cgit
From 56288e1d0ec072d35040b7954fc7c0f8b086663e Mon Sep 17 00:00:00 2001
From: Jesse Plamondon-Willard
Date: Mon, 26 Mar 2018 09:22:45 -0400
Subject: fix log parser timestamp not rendered
---
src/SMAPI.Web/Views/LogParser/Index.cshtml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
(limited to 'src/SMAPI.Web/Views')
diff --git a/src/SMAPI.Web/Views/LogParser/Index.cshtml b/src/SMAPI.Web/Views/LogParser/Index.cshtml
index 9c21c8c0..7213e286 100644
--- a/src/SMAPI.Web/Views/LogParser/Index.cshtml
+++ b/src/SMAPI.Web/Views/LogParser/Index.cshtml
@@ -70,7 +70,7 @@
| Log started: |
- @Model.ParsedLog.Timestamp.UtcDateTime.ToString("yyyy-MM-dd HH:mm") UTC ({{localTimeStarted}} your time) |
+ @Model.ParsedLog.Timestamp.UtcDateTime.ToString("yyyy-MM-dd HH:mm") UTC ({{localTimeStarted}} your time) |
--
cgit