Skip to content
This repository has been archived by the owner on Dec 8, 2018. It is now read-only.

Commit

Permalink
Updated Razor views
Browse files Browse the repository at this point in the history
  • Loading branch information
ajaybhargavb committed Mar 23, 2018
1 parent 424c0b0 commit 7720041
Show file tree
Hide file tree
Showing 10 changed files with 1,023 additions and 1,502 deletions.
1,145 changes: 540 additions & 605 deletions src/Microsoft.AspNetCore.Diagnostics.Elm/Views/DetailsPage.Designer.cs

Large diffs are not rendered by default.

28 changes: 15 additions & 13 deletions src/Microsoft.AspNetCore.Diagnostics.Elm/Views/DetailsPage.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,27 @@
if (log.Severity >= Model.Options.MinLevel &&
(string.IsNullOrEmpty(Model.Options.NamePrefix) || log.Name.StartsWith(Model.Options.NamePrefix, StringComparison.Ordinal)))
{
WriteLiteralTo(writer, " <tr>\r\n <td>");
WriteTo(writer, string.Format("{0:MM/dd/yy}", log.Time));
WriteLiteralTo(writer, "</td>\r\n <td>");
WriteTo(writer, string.Format("{0:H:mm:ss}", log.Time));
PushWriter(writer);
WriteLiteral(" <tr>\r\n <td>");
Write(string.Format("{0:MM/dd/yy}", log.Time));
WriteLiteral("</td>\r\n <td>");
Write(string.Format("{0:H:mm:ss}", log.Time));
var severity = log.Severity.ToString().ToLowerInvariant();
WriteLiteralTo(writer, $"</td>\r\n <td class=\"{severity}\">");
WriteTo(writer, log.Severity);
WriteLiteral($"</td>\r\n <td class=\"{severity}\">");
Write(log.Severity);

WriteLiteralTo(writer, $"</td>\r\n <td title=\"{log.Name}\">");
WriteTo(writer, log.Name);
WriteLiteral($"</td>\r\n <td title=\"{log.Name}\">");
Write(log.Name);

WriteLiteralTo(writer, $"</td>\r\n <td title=\"{log.Message}\""+
WriteLiteral($"</td>\r\n <td title=\"{log.Message}\""+
"class=\"logState\" width=\"100px\">");
WriteTo(writer, log.Message);
Write(log.Message);

WriteLiteralTo(writer, $"</td>\r\n <td title=\"{log.Exception}\">");
WriteTo(writer, log.Exception);
WriteLiteral($"</td>\r\n <td title=\"{log.Exception}\">");
Write(log.Exception);

WriteLiteralTo(writer, "</td>\r\n </tr>\r\n");
WriteLiteral("</td>\r\n </tr>\r\n");
PopWriter();
}
});
}
Expand Down
Loading

0 comments on commit 7720041

Please sign in to comment.