+
+
+ @if (version is not null && current is not null)
+ {
+
+
+ -
+
+
+ -
+
+
+
+
+ @if (activeTab == DiffTab.Fields)
+ {
+
+
+
+
+ | Field |
+
+ v@(version.VersionNumber)
+
+ @version.CreatedAt.ToLocalTime().ToString("MMM dd HH:mm")
+
+ |
+ Current |
+
+
+
+ @FieldRow("Title", version.Title, current.Title)
+ @FieldRow("Author", version.AuthorName ?? "", current.AuthorName ?? "")
+ @FieldRow("Short Description", version.ShortDescription, current.ShortDescription)
+ @FieldRow("Image URL", version.PreviewImageUrl, current.PreviewImageUrl)
+ @FieldRow("Fallback Image URL", version.PreviewImageUrlFallback ?? "", current.PreviewImageUrlFallback ?? "")
+ @FieldRow("Tags", version.TagsAsString, current.TagsAsString)
+ @FieldRow("Published", version.IsPublished ? "Yes" : "No", current.IsPublished ? "Yes" : "No")
+ @FieldRow("Updated Date",
+ version.UpdatedDate.ToString("yyyy-MM-dd HH:mm:ss"),
+ current.UpdatedDate.ToString("yyyy-MM-dd HH:mm:ss"))
+
+
+
+ }
+
+ @if (activeTab == DiffTab.Content)
+ {
+
+ @if (contentLines.Count > 0)
+ {
+
+ +@insertedLines added
+ -@deletedLines removed
+ @unchangedLines unchanged lines
+
+
+ @foreach (var line in contentLines)
+ {
+ @if (line.IsCollapse)
+ {
+
+ ···
+ ···
+ @line.CollapseCount unchanged lines
+
+ }
+ else
+ {
+
+
+ @line.OldNum
+
+
+ @line.NewNum
+
+
+ @line.Prefix
+
+
+ @line.Text
+
+
+ }
+ }
+
+ }
+ else
+ {
+
Content is identical.
+ }
+
+ }
+