mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-04 19:08:45 +00:00
Add the Anti Dopamine feature
This commit is contained in:
parent
71c5da7b3b
commit
28695fb8e6
7 changed files with 30 additions and 5 deletions
|
@ -3,7 +3,9 @@
|
|||
<div class="notification-title-container">
|
||||
<div class="notification-title">
|
||||
Notifications
|
||||
{{if gt .UnreadCount 0}}({{.UnreadCount }}){{end}}
|
||||
{{if and (not $.Ctx.AntiDopamineMode) (gt .UnreadCount 0)}}
|
||||
({{.UnreadCount }})
|
||||
{{end}}
|
||||
</div>
|
||||
<a class="notification-refresh" href="/notifications" target="_self">refresh</a>
|
||||
{{if .ReadID}}
|
||||
|
|
|
@ -41,6 +41,11 @@
|
|||
<input id="dark-mode" name="dark_mode" type="checkbox" value="true" {{if .Settings.DarkMode}}checked{{end}}>
|
||||
<label for="dark-mode"> Use dark theme </label>
|
||||
</div>
|
||||
<div class="settings-form-field">
|
||||
<input id="anti-dopamine-mode" name="anti_dopamine_mode" type="checkbox"
|
||||
value="true" {{if .Settings.AntiDopamineMode}}checked{{end}}>
|
||||
<label for="anti-dopamine-mode"> Remove addictive social media features </label>
|
||||
</div>
|
||||
<button type="submit"> Save </button>
|
||||
</form>
|
||||
|
||||
|
|
|
@ -160,7 +160,9 @@
|
|||
reply
|
||||
</a>
|
||||
<a class="status-reply-count" href="/thread/{{.ID}}#status-{{.ID}}" {{if $.Ctx.ThreadInNewTab}}target="_blank"{{end}}>
|
||||
{{if .RepliesCount}} ({{DisplayInteractionCount .RepliesCount}}) {{end}}
|
||||
{{if and (not $.Ctx.AntiDopamineMode) .RepliesCount}}
|
||||
({{DisplayInteractionCount .RepliesCount}})
|
||||
{{end}}
|
||||
</a>
|
||||
</div>
|
||||
<div class="status-action">
|
||||
|
@ -184,7 +186,9 @@
|
|||
{{end}}
|
||||
{{end}}
|
||||
<a class="status-retweet-count" href="/retweetedby/{{.ID}}" title="click to see the the list">
|
||||
{{if .ReblogsCount}} ({{DisplayInteractionCount .ReblogsCount}}) {{end}}
|
||||
{{if and (not $.Ctx.AntiDopamineMode) .ReblogsCount}}
|
||||
({{DisplayInteractionCount .ReblogsCount}})
|
||||
{{end}}
|
||||
</a>
|
||||
</div>
|
||||
<div class="status-action">
|
||||
|
@ -202,7 +206,9 @@
|
|||
</form>
|
||||
{{end}}
|
||||
<a class="status-like-count" href="/likedby/{{.ID}}" title="click to see the the list">
|
||||
{{if .FavouritesCount}} ({{DisplayInteractionCount .FavouritesCount}}) {{end}}
|
||||
{{if and (not $.Ctx.AntiDopamineMode) .FavouritesCount}}
|
||||
({{DisplayInteractionCount .FavouritesCount}})
|
||||
{{end}}
|
||||
</a>
|
||||
</div>
|
||||
<div class="status-action">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue