diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-08-04 15:55:24 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2019-09-14 19:00:50 -0400 |
commit | f24e7428df15ee8bcc9a2a45de98363670e72231 (patch) | |
tree | 0308828076f50995cb45c281c34a17d7cf217658 /src/SMAPI.Web/Views | |
parent | 1b9ce5e64ff248a9cf616f1b7fe8a39a74bd8baa (diff) | |
download | SMAPI-f24e7428df15ee8bcc9a2a45de98363670e72231.tar.gz SMAPI-f24e7428df15ee8bcc9a2a45de98363670e72231.tar.bz2 SMAPI-f24e7428df15ee8bcc9a2a45de98363670e72231.zip |
add line highlighting and linking (#654)
Diffstat (limited to 'src/SMAPI.Web/Views')
-rw-r--r-- | src/SMAPI.Web/Views/JsonValidator/Index.cshtml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/SMAPI.Web/Views/JsonValidator/Index.cshtml b/src/SMAPI.Web/Views/JsonValidator/Index.cshtml index cd7ca912..6658e7b9 100644 --- a/src/SMAPI.Web/Views/JsonValidator/Index.cshtml +++ b/src/SMAPI.Web/Views/JsonValidator/Index.cshtml @@ -107,7 +107,7 @@ else if (Model.PasteID != null) @foreach (JsonValidatorErrorModel error in Model.Errors) { <tr> - <td>@error.Line</td> + <td><a href="#L@(error.Line)">@error.Line</a></td> <td>@error.Path</td> <td>@error.Message</td> </tr> @@ -121,6 +121,6 @@ else if (Model.PasteID != null) } <h2>Raw content</h2> - <pre class="sunlight-highlight-javascript">@Model.Content</pre> + <pre id="raw-content" class="sunlight-highlight-javascript">@Model.Content</pre> </div> } |