forked from retoor/devplacepy
chore: add docker infrastructure, gists feature, attachment system, and admin CLI tools
- Add .dockerignore, Dockerfile, and docker compose targets to Makefile for containerized deployment - Implement gists router with CRUD operations, database schema, and polymorphic comment/vote reuse - Create attachment upload system with thumbnail generation, MIME detection, and storage path management - Add attachments_prune CLI command to clean orphaned attachment records and files - Introduce rate limiting middleware with 60 requests per minute window - Add custom 404 and 500 error handlers with SEO-optimized template responses - Extend database initialization with gists and attachments indexes plus upload site settings defaults - Update load_comments to include attachment mapping for comment resources - Register gists and uploads routers in main application and update AGENTS.md documentation
This commit is contained in:
@@ -3,9 +3,9 @@
|
||||
<span class="pagination-info">{{ pagination.total }} items · Page {{ pagination.page }} of {{ pagination.total_pages }}</span>
|
||||
<div class="pagination-controls">
|
||||
{% if pagination.has_prev %}
|
||||
<a href="?page={{ pagination.prev_page }}" class="pagination-btn">← Previous</a>
|
||||
<a href="?page={{ pagination.prev_page }}" class="pagination-btn"><span class="icon">←</span>Previous</a>
|
||||
{% else %}
|
||||
<span class="pagination-btn pagination-btn-disabled">← Previous</span>
|
||||
<span class="pagination-btn pagination-btn-disabled"><span class="icon">←</span>Previous</span>
|
||||
{% endif %}
|
||||
|
||||
<div class="pagination-pages">
|
||||
@@ -19,9 +19,9 @@
|
||||
</div>
|
||||
|
||||
{% if pagination.has_next %}
|
||||
<a href="?page={{ pagination.next_page }}" class="pagination-btn">Next →</a>
|
||||
<a href="?page={{ pagination.next_page }}" class="pagination-btn">Next <span class="icon">→</span></a>
|
||||
{% else %}
|
||||
<span class="pagination-btn pagination-btn-disabled">Next →</span>
|
||||
<span class="pagination-btn pagination-btn-disabled">Next <span class="icon">→</span></span>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user