| 1 |
{% extends "base.html" %} |
| 2 |
|
| 3 |
{% block title %}Dashboard - Makenotwork{% endblock %} |
| 4 |
{% block body_attrs %} class="{{ crate::shell::measure(crate::shell::Measure::Wide) }} dashboard-page dashboard-user-page"{% endblock %} |
| 5 |
|
| 6 |
{% block content %} |
| 7 |
{% include "partials/site_header.html" %} |
| 8 |
|
| 9 |
{% if let Some(su) = session_user %}{% if su.is_sandbox %} |
| 10 |
<div class="sandbox-banner"> |
| 11 |
Sandbox mode: your data will be deleted when the session expires. |
| 12 |
<a href="/join" class="sandbox-banner-link">Create an account</a> to keep your work. |
| 13 |
</div> |
| 14 |
{% endif %}{% endif %} |
| 15 |
|
| 16 |
<div class="container"> |
| 17 |
{% if deactivated %} |
| 18 |
<div class="alert alert-warning"> |
| 19 |
<p class="alert-title">Account Deactivated</p> |
| 20 |
<p>Your account is deactivated. Your content is hidden from fans and no new content can be created.</p> |
| 21 |
<p>You can:</p> |
| 22 |
<div class="account-status-actions"> |
| 23 |
<form hx-post="/api/users/me/reactivate" hx-swap="none" |
| 24 |
data-submit="reactivateReload"> |
| 25 |
<button type="submit" class="btn-primary">Reactivate Account</button> |
| 26 |
</form> |
| 27 |
<a href="/dashboard/export" class="button">Export Data</a> |
| 28 |
<a href="/dashboard/delete-account" class="button btn-danger">Permanently Delete</a> |
| 29 |
</div> |
| 30 |
</div> |
| 31 |
{% elif creator_paused %} |
| 32 |
<div class="alert alert-warning"> |
| 33 |
<p class="alert-title">Account Paused</p> |
| 34 |
<p>Your creator account is paused. Existing fan subscriptions will expire at the end of their billing period. One-time purchases remain accessible. No new sales can be made.</p> |
| 35 |
<p>To resume, re-subscribe to a creator plan:</p> |
| 36 |
<div class="account-status-actions"> |
| 37 |
<a href="/creators" class="button btn-primary">Resume: Choose a Tier</a> |
| 38 |
<a href="/dashboard/export" class="button">Export Data</a> |
| 39 |
</div> |
| 40 |
</div> |
| 41 |
{% elif suspended %} |
| 42 |
<div class="suspension-wrap"> |
| 43 |
{% let reason = suspension_reason.as_deref().unwrap_or("No reason provided") %} |
| 44 |
{% include "partials/suspension_banner.html" %} |
| 45 |
</div> |
| 46 |
{% endif %} |
| 47 |
|
| 48 |
{% if let Some(warning) = password_warning %} |
| 49 |
<div class="password-warning-banner"> |
| 50 |
<strong>Password Warning:</strong> {{ warning }} |
| 51 |
You can change your password in Account settings. |
| 52 |
</div> |
| 53 |
{% endif %} |
| 54 |
|
| 55 |
<header> |
| 56 |
<h1 class="page-title">{{ user.username }}</h1> |
| 57 |
<div class="dash-user-header-links"> |
| 58 |
<a href="/u/{{ user.username }}" class="dash-user-header-link">View public profile →</a> |
| 59 |
<a href="/dashboard/export" class="dash-user-header-link">Export data →</a> |
| 60 |
</div> |
| 61 |
</header> |
| 62 |
|
| 63 |
<div id="onboarding-area"> |
| 64 |
{% if let Some(checklist) = onboarding %} |
| 65 |
{% include "partials/onboarding_checklist.html" %} |
| 66 |
{% endif %} |
| 67 |
{% if show_checklist_recovery %} |
| 68 |
<div class="checklist-recovery"> |
| 69 |
<a href="#" hx-post="/dashboard/onboarding/restore" hx-target="#onboarding-area" hx-swap="innerHTML" |
| 70 |
class="checklist-recovery-link">Show setup checklist</a> |
| 71 |
</div> |
| 72 |
{% endif %} |
| 73 |
</div> |
| 74 |
|
| 75 |
{{ tabs|safe }} |
| 76 |
</div> |
| 77 |
{% endblock %} |
| 78 |
|
| 79 |
{% block scripts %} |
| 80 |
<script src="/static/passkey.js"></script> |
| 81 |
{% endblock %} |
| 82 |
|
| 83 |
|