|
|
|
@ -126,10 +126,11 @@ namespace ndview
|
|
|
|
|
if (post.ImageURL != null)
|
|
|
|
|
await WriteImageFigure(index, post, token);
|
|
|
|
|
|
|
|
|
|
await using (await index.TagAsync("blockquote", token))
|
|
|
|
|
await WriteBody(index, post, token);
|
|
|
|
|
/*await using (await index.TagAsync("blockquote", token))
|
|
|
|
|
{
|
|
|
|
|
await index.AppendHtml(post.Body);
|
|
|
|
|
}
|
|
|
|
|
}*/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await imageExtractor;
|
|
|
|
@ -222,6 +223,11 @@ namespace ndview
|
|
|
|
|
{
|
|
|
|
|
await index.AppendHtml(post.Body);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/*if(post.ModLog.UserBanned)
|
|
|
|
|
{
|
|
|
|
|
await index.AppendHtml("<div class='ban'>USER WAS BANNED FOR THIS POST</div>");
|
|
|
|
|
}*/ //TODO: Idk?
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private async Task WriteThread(HtmlGenerator index, ThreadInfo thread, DirectoryInfo img, bool wasEnc, CancellationToken token)
|
|
|
|
@ -327,7 +333,7 @@ namespace ndview
|
|
|
|
|
}
|
|
|
|
|
await using (await index.TagAsync("div", cancel, ("class", "stat")))
|
|
|
|
|
{
|
|
|
|
|
await index.Append($"Showing {Board.Threads.Count} threads containing {Board.Threads.Select(x => x.Children.Count).Sum()} posts and {Board.Threads.Count + Board.Threads.Select(x => x.Children.Where(y => y.ImageURL != null).Count()).Sum()} images.", cancel);
|
|
|
|
|
await index.Append($"Showing {Board.Threads.Count} threads containing {Board.Threads.Select(x => x.Children.Count).Sum()} posts and {Board.Threads.Count + Board.Threads.Select(x => x.Children.Where(y => y.IsImageEncrypted || y.ImageURL != null).Count()).Sum()} images.", cancel);
|
|
|
|
|
await index.AppendHtml($"<br />Taken at <time>{Board.DumpTimestamp.ToString()}</time>.<br />Original: <a href='{Board.BoardURL}'>", cancel);
|
|
|
|
|
await index.Append(Board.BoardName, cancel);
|
|
|
|
|
await index.AppendHtml($"</a>", cancel);
|
|
|
|
@ -340,6 +346,13 @@ namespace ndview
|
|
|
|
|
{
|
|
|
|
|
await using(await index.TagAsync("nav", cancel, ("class", "script")))
|
|
|
|
|
{
|
|
|
|
|
await using(await index.TagAsync("span", cancel)) {
|
|
|
|
|
await using(await index.TagAsync("a", cancel, ("href", Board.BoardURL)))
|
|
|
|
|
await index.Append(Board.BoardName);
|
|
|
|
|
await using(await index.TagAsync("time"))
|
|
|
|
|
await index.Append(Board.DumpTimestamp.ToString());
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
await using(await index.TagAsync("ul", cancel)) {
|
|
|
|
|
await using(await index.TagAsync("li", cancel))
|
|
|
|
|
await using(await index.TagAsync("a", cancel, ("href", "#!"), ("id", "expand_all_threads")))
|
|
|
|
|