summaryrefslogtreecommitdiff
path: root/src/SMAPI.Web/Views
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-12-25 01:53:10 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-12-25 01:53:10 -0500
commit70cbfa541dade1822394f81bd1d5b6baa18e51e9 (patch)
tree7b20e8fc6a7e79687a3367ea9aa28a5181eb5444 /src/SMAPI.Web/Views
parentadee66b3b4ea111b0082a31108e55726fab10643 (diff)
downloadSMAPI-70cbfa541dade1822394f81bd1d5b6baa18e51e9.tar.gz
SMAPI-70cbfa541dade1822394f81bd1d5b6baa18e51e9.tar.bz2
SMAPI-70cbfa541dade1822394f81bd1d5b6baa18e51e9.zip
support contextual nav URLs, update nav menu (#411)
Diffstat (limited to 'src/SMAPI.Web/Views')
-rw-r--r--src/SMAPI.Web/Views/Shared/_Layout.cshtml10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/SMAPI.Web/Views/Shared/_Layout.cshtml b/src/SMAPI.Web/Views/Shared/_Layout.cshtml
index 547a8178..ac98c71b 100644
--- a/src/SMAPI.Web/Views/Shared/_Layout.cshtml
+++ b/src/SMAPI.Web/Views/Shared/_Layout.cshtml
@@ -1,3 +1,7 @@
+@using Microsoft.Extensions.Options
+@using StardewModdingAPI.Web.Framework.ConfigModels
+@inject IOptions<ContextConfig> ContextConfig
+
<!DOCTYPE html>
<html>
<head>
@@ -10,9 +14,9 @@
<div id="sidebar">
<h4>SMAPI</h4>
<ul>
- <li><a href="https://stardewvalleywiki.com/Modding:Index">FAQs & guides</a></li>
- <li><a href="https://github.com/pathoschild/SMAPI/releases">Download SMAPI</a></li>
- <li><a href="https://discord.gg/stardewvalley">Get help on Discord</a></li>
+ <li><a href="@ContextConfig.Value.RootUrl">About SMAPI</a></li>
+ <li><a href="@ContextConfig.Value.LogParserUrl">Log parser</a></li>
+ <li><a href="https://stardewvalleywiki.com/Modding:Index">Docs</a></li>
</ul>
</div>
<div id="content-column">