diff --git a/Bootstrap.Admin/Content/css/admin.css b/Bootstrap.Admin/Content/css/admin.css index 1f2e0091..767bac6c 100644 --- a/Bootstrap.Admin/Content/css/admin.css +++ b/Bootstrap.Admin/Content/css/admin.css @@ -200,6 +200,17 @@ ul.sidebar-menu { top: -1px; } +.modal-body .affix { + position: fixed; + bottom: 95px; + right: 50px; +} + + .modal-body .affix a { + font-size: 20px; + margin-top: 16px; + } + .toolbar { position: relative; margin-top: 10px; diff --git a/Bootstrap.Admin/Controllers/ExceptionsController.cs b/Bootstrap.Admin/Controllers/ExceptionsController.cs index 44808592..e2e431cf 100644 --- a/Bootstrap.Admin/Controllers/ExceptionsController.cs +++ b/Bootstrap.Admin/Controllers/ExceptionsController.cs @@ -28,7 +28,9 @@ namespace Bootstrap.Admin.Controllers public IEnumerable Post() { var filePath = HttpContext.Current.Server.MapPath("~/App_Data/ErrorLog"); - return Directory.GetFiles(filePath).Select(f => Path.GetFileNameWithoutExtension(f)).OrderByDescending(s => s); + return Directory.GetFiles(filePath) + .Where(f => Path.GetExtension(f).Equals(".log", System.StringComparison.OrdinalIgnoreCase)) + .Select(f => Path.GetFileNameWithoutExtension(f)).OrderByDescending(s => s); } /// /// @@ -41,7 +43,7 @@ namespace Bootstrap.Admin.Controllers if (!File.Exists(logName)) return new { content = string.Empty }; using (StreamReader reader = new StreamReader(logName)) { - return new { content = reader.ReadToEnd().Replace("\r\n", "
") }; + return new { content = reader.ReadToEnd().Replace("<", "<").Replace(">", ">").Replace("\r\n", "
") }; } } } diff --git a/Bootstrap.Admin/Views/Admin/Exceptions.cshtml b/Bootstrap.Admin/Views/Admin/Exceptions.cshtml index c86810b8..52897741 100644 --- a/Bootstrap.Admin/Views/Admin/Exceptions.cshtml +++ b/Bootstrap.Admin/Views/Admin/Exceptions.cshtml @@ -97,7 +97,13 @@