From ba82de54cc1ab8fb055de4a9404d132d155458c0 Mon Sep 17 00:00:00 2001 From: danielpalme Date: Fri, 4 Nov 2016 21:51:04 +0100 Subject: [PATCH] Improved navigation to files of class --- ReportGenerator.Reporting/Rendering/HtmlRenderer.cs | 5 +++-- .../Rendering/resources/customAngularApp.js | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/ReportGenerator.Reporting/Rendering/HtmlRenderer.cs b/ReportGenerator.Reporting/Rendering/HtmlRenderer.cs index 766f1974..4d91ebde 100644 --- a/ReportGenerator.Reporting/Rendering/HtmlRenderer.cs +++ b/ReportGenerator.Reporting/Rendering/HtmlRenderer.cs @@ -25,6 +25,7 @@ internal class HtmlRenderer : RendererBase, IReportRenderer, IDisposable + {0} - {1} {2} @@ -179,7 +180,7 @@ public void TestMethods(IEnumerable testMethods, IDictionary{3}
", + "{3}
", codeElement.Type == CodeElementType.Method ? "method" : "property", item.Key, codeElement.Line, @@ -413,7 +414,7 @@ public void KeyValueRow(string key, string value) /// The files. public void KeyValueRow(string key, IEnumerable files) { - string value = string.Join("
", files.Select(v => string.Format(CultureInfo.InvariantCulture, "{1}", WebUtility.HtmlEncode(ReplaceNonLetterChars(v)), WebUtility.HtmlEncode(v)))); + string value = string.Join("
", files.Select(v => string.Format(CultureInfo.InvariantCulture, "{1}", WebUtility.HtmlEncode(ReplaceNonLetterChars(v)), WebUtility.HtmlEncode(v)))); this.reportTextWriter.WriteLine( "{0}{1}", diff --git a/ReportGenerator.Reporting/Rendering/resources/customAngularApp.js b/ReportGenerator.Reporting/Rendering/resources/customAngularApp.js index b8e623ee..f5dff176 100644 --- a/ReportGenerator.Reporting/Rendering/resources/customAngularApp.js +++ b/ReportGenerator.Reporting/Rendering/resources/customAngularApp.js @@ -67,7 +67,7 @@ function DetailViewCtrl($scope, $window) { } }; - $scope.navigateToCodeElement = function (hash) { + $scope.navigateToHash = function (hash) { // Prevent history entries when selecting methods/properties if ($window.history !== undefined && $window.history.replaceState !== undefined) { $window.history.replaceState(undefined, undefined, hash);