This repository has been archived by the owner on Oct 26, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74ce82b
commit 2eaa6ce
Showing
8 changed files
with
29 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
src/Reddit2Kindle.Functions/Templates/Partials/NumberComments.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
@using Reddit.Controllers | ||
@inherits RazorLight.TemplatePage<Reddit.Controllers.Comment> | ||
@inherits RazorLight.TemplatePage<(string op, Reddit.Controllers.Comment comment)> | ||
|
||
<li> | ||
@Raw(Model.BodyHTML) | ||
<footer>@Model.Author</footer> | ||
@Raw(Model.comment.BodyHTML) | ||
<footer class="@(Model.comment.Author == Model.op ? "op" : "")">@Model.comment.Author</footer> | ||
<ol> | ||
@foreach (var reply in Model.replies?.Where(reply => reply is not null) ?? Enumerable.Empty<Comment>()) | ||
@foreach (var reply in Model.comment.replies?.Where(reply => reply is not null) ?? Enumerable.Empty<Comment>()) | ||
{ | ||
await IncludeAsync("Templates.Partials.NumberComments", reply); | ||
await IncludeAsync("Templates.Partials.NumberComments", (Model.op, reply)); | ||
} | ||
</ol> | ||
</li> |
10 changes: 5 additions & 5 deletions
10
src/Reddit2Kindle.Functions/Templates/Partials/QuoteComments.cshtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
@using Reddit.Controllers | ||
@inherits RazorLight.TemplatePage<Reddit.Controllers.Comment> | ||
@inherits RazorLight.TemplatePage<(string op, Reddit.Controllers.Comment comment)> | ||
|
||
<blockquote> | ||
@Raw(Model.BodyHTML) | ||
<footer>@Model.Author</footer> | ||
@foreach (var reply in Model.replies?.Where(reply => reply is not null) ?? Enumerable.Empty<Comment>()) | ||
@Raw(Model.comment.BodyHTML) | ||
<footer class="@(Model.comment.Author == Model.op ? "op" : "")">@Model.comment.Author</footer> | ||
@foreach (var reply in Model.comment.replies?.Where(reply => reply is not null) ?? Enumerable.Empty<Comment>()) | ||
{ | ||
await IncludeAsync("Templates.Partials.QuoteComments", reply); | ||
await IncludeAsync("Templates.Partials.QuoteComments", (Model.op, reply)); | ||
} | ||
</blockquote> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters