forked from retoor/devplacepy
feat: add reactions, bookmarks, polls modules with session remember config
Add three new feature modules (reactions, bookmarks, polls) with corresponding database tables, indexes, and router registrations. Introduce `SESSION_MAX_AGE_REMEMBER` config for extended session duration, add `get_unread_messages` template global, and include operational defaults for rate limiting and session settings in `site_settings`.
This commit is contained in:
@@ -147,6 +147,22 @@
|
||||
<div class="profile-content">
|
||||
<a href="/feed" class="back-link">← Back</a>
|
||||
|
||||
<div class="profile-heatmap-card">
|
||||
<div class="heatmap-header">
|
||||
<h3 class="heatmap-title">Contributions</h3>
|
||||
<span class="streak-info"><span class="icon">🔥</span> {{ streak.current }} day streak · Longest {{ streak.longest }}</span>
|
||||
</div>
|
||||
<div class="heatmap-grid">
|
||||
{% for week in heatmap %}
|
||||
<div class="heatmap-week">
|
||||
{% for day in week %}
|
||||
<span class="heatmap-cell level-{{ day.level }}" title="{{ day.count }} on {{ day.date }}"></span>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="profile-tabs">
|
||||
<a href="/profile/{{ profile_user['username'] }}?tab=posts" class="profile-tab {% if current_tab == 'posts' %}active{% endif %}"><span class="icon">📝</span> Posts</a>
|
||||
<a href="/profile/{{ profile_user['username'] }}?tab=projects" class="profile-tab {% if current_tab == 'projects' %}active{% endif %}"><span class="icon">🚀</span> Projects</a>
|
||||
@@ -164,7 +180,7 @@
|
||||
{% endfor %}
|
||||
{% elif current_tab == 'projects' %}
|
||||
{% for p in projects %}
|
||||
<a href="/projects/{{ p['slug'] or p['uid'] }}" class="project-card fade-in">
|
||||
<a href="/projects/{{ p['slug'] or p['uid'] }}" class="project-card">
|
||||
<div class="project-card-header">
|
||||
<h3 class="project-card-title">{{ p['title'] }}</h3>
|
||||
</div>
|
||||
@@ -189,7 +205,7 @@
|
||||
{% elif current_tab == 'gists' %}
|
||||
{% for entry in gists %}
|
||||
{% set g = entry.gist %}
|
||||
<a href="/gists/{{ g['slug'] or g['uid'] }}" class="gist-card fade-in">
|
||||
<a href="/gists/{{ g['slug'] or g['uid'] }}" class="gist-card">
|
||||
<div class="gist-card-header">
|
||||
<h3 class="gist-card-title">{{ g['title'] }}</h3>
|
||||
<span class="gist-card-star">☆ {{ g.get('stars', 0) }}</span>
|
||||
@@ -209,7 +225,7 @@
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
{% for act in activities %}
|
||||
<div class="post-card fade-in activity-card">
|
||||
<div class="post-card activity-card">
|
||||
<div class="activity-row">
|
||||
<span class="activity-icon">
|
||||
{% if act['type'] == 'post' %}📝{% else %}💬{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user