Skip to content

Commit

Permalink
Update post.tpl
Browse files Browse the repository at this point in the history
  • Loading branch information
LastSymphony12 authored Nov 12, 2024
1 parent b063864 commit afa7f15
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion templates/partials/topic/post.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,15 @@

<div class="content mt-2 text-break" component="post/content" itemprop="text">
{posts.content}

{{{if !posts.isEnglish }}}
<div class="sensitive-content-message">
<a class="btn btn-sm btn-primary view-translated-btn">Click here to view the translated message.</a>
</div>
<div class="translated-content" style="display:none;">
{posts.translatedContent}
</div>
{{{end}}}
</div>
</div>
</div>
Expand Down Expand Up @@ -124,4 +133,4 @@
{widgets.mainpost-footer.html}
{{{ end }}}
</div>
{{{ end }}}
{{{ end }}}

0 comments on commit afa7f15

Please sign in to comment.