Files
balanceboard/themes/modern-card-ui/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

42 lines
1.3 KiB
HTML

<!-- Modern Card UI - Comment Template -->
<template id="modern-comment-template">
<div class="comment-card" data-comment-id="{{uuid}}" style="margin-left: {{depth * 24}}px">
<div class="comment-surface">
<!-- Comment Header -->
<header class="comment-header">
<div class="comment-meta">
<span class="comment-author">{{author}}</span>
<span class="comment-time">{{formatTimeAgo(timestamp)}}</span>
{% if score != 0 %}
<div class="comment-score">
<span class="score-number">{{score}}</span>
<span class="score-label">pts</span>
</div>
{% endif %}
</div>
</header>
<!-- Comment Content -->
<div class="comment-body">
<div class="comment-text">
{{ renderMarkdown(content)|safe }}
</div>
{% if children_section %}
<!-- Nested replies section -->
<div class="comment-replies">
{{children_section|safe}}
</div>
{% endif %}
</div>
<!-- Comment Footer (for actions) -->
<footer class="comment-footer">
<div class="depth-indicator" data-depth="{{depth}}">
<span class="depth-label">Level {{depth + 1}}</span>
</div>
</footer>
</div>
</div>
</template>