FossilRepo

fossilrepo / templates / accounts / notification_prefs.html
Source Blame History 111 lines
c588255… ragelink 1 {% extends "base.html" %}
c588255… ragelink 2 {% block title %}Notification Preferences — Fossilrepo{% endblock %}
c588255… ragelink 3
c588255… ragelink 4 {% block content %}
c588255… ragelink 5 <h1 class="text-2xl font-bold text-gray-100 mb-6">Notification Preferences</h1>
c588255… ragelink 6
c588255… ragelink 7 <form method="post" class="space-y-6">
c588255… ragelink 8 {% csrf_token %}
c588255… ragelink 9
c588255… ragelink 10 <div class="rounded-lg bg-gray-800 border border-gray-700 p-6">
c588255… ragelink 11 <h2 class="text-lg font-semibold text-gray-200 mb-4">Delivery Mode</h2>
c588255… ragelink 12 <p class="text-sm text-gray-400 mb-4">Choose how you receive notifications.</p>
c588255… ragelink 13 <div class="space-y-3">
c588255… ragelink 14 <label class="flex items-start gap-3 cursor-pointer">
c588255… ragelink 15 <input type="radio" name="delivery_mode" value="immediate"
c588255… ragelink 16 {% if prefs.delivery_mode == "immediate" %}checked{% endif %}
c588255… ragelink 17 class="mt-1 text-brand focus:ring-brand">
c588255… ragelink 18 <div>
c588255… ragelink 19 <span class="text-sm font-medium text-gray-200">Immediate (per event)</span>
c588255… ragelink 20 <p class="text-xs text-gray-500">Get an email for each event as it happens.</p>
c588255… ragelink 21 </div>
c588255… ragelink 22 </label>
c588255… ragelink 23 <label class="flex items-start gap-3 cursor-pointer">
c588255… ragelink 24 <input type="radio" name="delivery_mode" value="daily"
c588255… ragelink 25 {% if prefs.delivery_mode == "daily" %}checked{% endif %}
c588255… ragelink 26 class="mt-1 text-brand focus:ring-brand">
c588255… ragelink 27 <div>
c588255… ragelink 28 <span class="text-sm font-medium text-gray-200">Daily Digest</span>
c588255… ragelink 29 <p class="text-xs text-gray-500">Receive a single daily summary of all notifications.</p>
c588255… ragelink 30 </div>
c588255… ragelink 31 </label>
c588255… ragelink 32 <label class="flex items-start gap-3 cursor-pointer">
c588255… ragelink 33 <input type="radio" name="delivery_mode" value="weekly"
c588255… ragelink 34 {% if prefs.delivery_mode == "weekly" %}checked{% endif %}
c588255… ragelink 35 class="mt-1 text-brand focus:ring-brand">
c588255… ragelink 36 <div>
c588255… ragelink 37 <span class="text-sm font-medium text-gray-200">Weekly Digest</span>
c588255… ragelink 38 <p class="text-xs text-gray-500">Receive a weekly summary of all notifications.</p>
c588255… ragelink 39 </div>
c588255… ragelink 40 </label>
c588255… ragelink 41 <label class="flex items-start gap-3 cursor-pointer">
c588255… ragelink 42 <input type="radio" name="delivery_mode" value="off"
c588255… ragelink 43 {% if prefs.delivery_mode == "off" %}checked{% endif %}
c588255… ragelink 44 class="mt-1 text-brand focus:ring-brand">
c588255… ragelink 45 <div>
c588255… ragelink 46 <span class="text-sm font-medium text-gray-200">Off</span>
c588255… ragelink 47 <p class="text-xs text-gray-500">Do not send any email notifications.</p>
c588255… ragelink 48 </div>
c588255… ragelink 49 </label>
c588255… ragelink 50 </div>
c588255… ragelink 51 </div>
c588255… ragelink 52
c588255… ragelink 53 <div class="rounded-lg bg-gray-800 border border-gray-700 p-6">
c588255… ragelink 54 <h2 class="text-lg font-semibold text-gray-200 mb-4">Event Types</h2>
c588255… ragelink 55 <p class="text-sm text-gray-400 mb-4">Choose which types of events you want to be notified about.</p>
c588255… ragelink 56 <div class="space-y-3">
c588255… ragelink 57 <label class="flex items-center gap-3 cursor-pointer">
c588255… ragelink 58 <input type="checkbox" name="notify_checkins"
c588255… ragelink 59 {% if prefs.notify_checkins %}checked{% endif %}
c588255… ragelink 60 class="rounded border-gray-600 bg-gray-900 text-brand focus:ring-brand">
c588255… ragelink 61 <div>
c588255… ragelink 62 <span class="text-sm font-medium text-gray-200">Checkins</span>
c588255… ragelink 63 <span class="text-xs text-gray-500 ml-2">New commits and code changes</span>
c588255… ragelink 64 </div>
c588255… ragelink 65 </label>
c588255… ragelink 66 <label class="flex items-center gap-3 cursor-pointer">
c588255… ragelink 67 <input type="checkbox" name="notify_tickets"
c588255… ragelink 68 {% if prefs.notify_tickets %}checked{% endif %}
c588255… ragelink 69 class="rounded border-gray-600 bg-gray-900 text-brand focus:ring-brand">
c588255… ragelink 70 <div>
c588255… ragelink 71 <span class="text-sm font-medium text-gray-200">Tickets</span>
c588255… ragelink 72 <span class="text-xs text-gray-500 ml-2">New and updated tickets</span>
c588255… ragelink 73 </div>
c588255… ragelink 74 </label>
c588255… ragelink 75 <label class="flex items-center gap-3 cursor-pointer">
c588255… ragelink 76 <input type="checkbox" name="notify_wiki"
c588255… ragelink 77 {% if prefs.notify_wiki %}checked{% endif %}
c588255… ragelink 78 class="rounded border-gray-600 bg-gray-900 text-brand focus:ring-brand">
c588255… ragelink 79 <div>
c588255… ragelink 80 <span class="text-sm font-medium text-gray-200">Wiki</span>
c588255… ragelink 81 <span class="text-xs text-gray-500 ml-2">Wiki page changes</span>
c588255… ragelink 82 </div>
c588255… ragelink 83 </label>
c588255… ragelink 84 <label class="flex items-center gap-3 cursor-pointer">
c588255… ragelink 85 <input type="checkbox" name="notify_releases"
c588255… ragelink 86 {% if prefs.notify_releases %}checked{% endif %}
c588255… ragelink 87 class="rounded border-gray-600 bg-gray-900 text-brand focus:ring-brand">
c588255… ragelink 88 <div>
c588255… ragelink 89 <span class="text-sm font-medium text-gray-200">Releases</span>
c588255… ragelink 90 <span class="text-xs text-gray-500 ml-2">New releases and tags</span>
c588255… ragelink 91 </div>
c588255… ragelink 92 </label>
c588255… ragelink 93 <label class="flex items-center gap-3 cursor-pointer">
c588255… ragelink 94 <input type="checkbox" name="notify_forum"
c588255… ragelink 95 {% if prefs.notify_forum %}checked{% endif %}
c588255… ragelink 96 class="rounded border-gray-600 bg-gray-900 text-brand focus:ring-brand">
c588255… ragelink 97 <div>
c588255… ragelink 98 <span class="text-sm font-medium text-gray-200">Forum</span>
c588255… ragelink 99 <span class="text-xs text-gray-500 ml-2">Forum posts and replies</span>
c588255… ragelink 100 </div>
c588255… ragelink 101 </label>
c588255… ragelink 102 </div>
c588255… ragelink 103 </div>
c588255… ragelink 104
c588255… ragelink 105 <div>
c588255… ragelink 106 <button type="submit" class="rounded-md bg-brand px-4 py-2 text-sm font-semibold text-white hover:bg-brand-hover">
c588255… ragelink 107 Save Preferences
c588255… ragelink 108 </button>
c588255… ragelink 109 </div>
c588255… ragelink 110 </form>
c588255… ragelink 111 {% endblock %}

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button