Files
devrant/templates/index.html
T
retoor be0745a393 feat: implement real-time chat feature with WebSocket support
- Add WebSocket endpoint for bidirectional messaging
- Create chat message model with user and timestamp fields
- Implement message broadcasting to all connected clients
- Include input validation and rate limiting for chat messages
2025-08-28 18:30:47 +00:00

21 lines
634 B
HTML

{% extends 'base.html' %}
{% from 'components/rant_card.html' import render_rant_card %}
{% block navigation %}
{% include '_header.html' %}
{% endblock %}
{% block content %}
<div class="sort-options">
<a href="/?sort=recent" class="sort-btn {% if current_sort == 'recent' %}active{% endif %}">Recent</a>
<a href="/?sort=top" class="sort-btn {% if current_sort == 'top' %}active{% endif %}">Top</a>
<a href="/?sort=algo" class="sort-btn {% if current_sort == 'algo' %}active{% endif %}">Algorithm</a>
</div>
<div>
{% for rant in rants %}
{{ render_rant_card(rant) }}
{% endfor %}
</div>
{% endblock %}