Files
balanceboard/themes/vanilla-js/comment-template.html
chelsea cb894b2159 BalanceBoard - Clean release
- Docker deployment ready
- Content aggregation and filtering
- User authentication
- Polling service for updates

🤖 Generated with Claude Code
2025-10-11 21:24:21 +00:00

22 lines
804 B
HTML

<!-- Comment Template - Nested comment rendering with unlimited depth -->
<template id="comment-template">
<div class="comment" data-comment-uuid="{{uuid}}" data-depth="{{depth}}" style="margin-left: {{depth * 20}}px">
<div class="comment-header">
<span class="comment-author">{{author}}</span>
<time class="comment-time" datetime="{{timestamp}}">{{formatTimeAgo(timestamp)}}</time>
<span class="comment-score" title="Score">↑ {{score}}</span>
</div>
<div class="comment-body">
<p class="comment-content">{{renderMarkdown(content)|safe}}</p>
</div>
<div class="comment-footer">
<span class="comment-depth-indicator">Depth: {{depth}}</span>
</div>
<!-- Placeholder for nested children -->
{{children_section|safe}}
</div>
</template>