Skip to content

Commit

Permalink
Make permlink work in comments
Browse files Browse the repository at this point in the history
  • Loading branch information
symkat committed Dec 1, 2021
1 parent 289c838 commit c03cd77
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Web/templates/simple/blog/_comment.tx
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
<!-- Begin simple/blog/_comment.tx -->
<div class="card my-4">
<div class="card-body">
<a name="comment_[% $comment.id %]"></a>
<div class="">
<a href="#">u/[% $comment.author.username %]</a>
<a href="#">[% $comment.author.username %]</a>
<small><span title="[% $comment.created_at %]">[% $comment.time_ago %]</span></small>
</div>
<div class="pt-4">
%% $comment.content
</div>
<br />
<a class="card-link" data-bs-toggle="collapse" href="#replyForm[% $comment.id %]" role="button" aria-expanded="false" aria-controls="replyForm[% $comment.id %]">[Reply]</a>
<a href="#" class="card-link">[Permlink]</a>
<a class="card-link" data-bs-toggle="collapse" href="#replyForm[% $comment.id %]" role="button" aria-expanded="false" aria-controls="replyForm[% $comment.id %]">[Reply]</a>

<a href="[% $c.url_for( '#comment_' ~ $comment.id ) %]" class="card-link">[Permlink]</a>
<div id="replyForm[% $comment.id %]" class="row mx-2 my-4 collapse">
<form method="POST" action="[% $c.url_for( 'do_blog_comment' ) %]">
<input type="hidden" name="parent_id" value="[% $comment.id %]" />
Expand Down

0 comments on commit c03cd77

Please sign in to comment.