mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2025-05-10 22:08:45 +00:00
Added filter reactions settings; Change allowed emoji filter; Emoji module correct commit
This commit is contained in:
parent
9cdac3e623
commit
c5d552e7d8
11 changed files with 29 additions and 5 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
<div class="emoji-list-container">
|
||||
{{range .Emojis}}
|
||||
{{if Allowed_emoji_page .ShortCode "blobfox" "senko" "shiro" "cirno" "pleroma" "udongein"}}
|
||||
{{if Allowed_emoji_page .ShortCode "blobfox senko shiro cirno pleroma udongein"}}
|
||||
<div class="emoji-item-container">
|
||||
<div class="emoji-item">
|
||||
<img class="emoji" src="{{.URL}}" alt="{{.ShortCode}}" height="32" loading="lazy" />
|
||||
|
|
|
@ -1,18 +1,24 @@
|
|||
{{with .Data}}
|
||||
{{template "header.tmpl" (WithContext .CommonData $.Ctx)}}
|
||||
<div class="page-title"> Reactions </div>
|
||||
{{$st_id := .ID}}
|
||||
<div class="scrollable-emoji" style="overflow-y: scroll; height:400px;">
|
||||
<div class="pleroma-reactions">
|
||||
<div class="page-title"> Add reaction </div>
|
||||
<div class="scrollable-emoji" style="overflow-y: scroll; height:200px;">
|
||||
<div class="pleroma-reactions">
|
||||
{{$emoji_filter := $.Ctx.AddReactionsFilter}}
|
||||
{{range $shortcode, $code := .ReactionEmojis}}
|
||||
{{if Allowed_emoji_page $shortcode $emoji_filter}}
|
||||
<form action="/react-with/{{$st_id}}?emoji={{$code}}" method="post" target="_self" title="{{$shortcode}}">
|
||||
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
||||
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
||||
<input type="submit" value="{{$code}}" class="pleroma-emoji">
|
||||
</form>
|
||||
{{end}}
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="page-title"> Who reacted </div>
|
||||
{{range .Reactions}}
|
||||
<div class="page-title">{{.Name}}</div>
|
||||
{{template "userlist.tmpl" (WithContext .Accounts $.Ctx)}}
|
||||
|
|
|
@ -70,6 +70,12 @@
|
|||
<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">
|
||||
<label for=""> Reactions filter (example_allowed anotherexample ...): </label>
|
||||
</div>
|
||||
<div>
|
||||
<textarea id="pleroma-reactions-filter" name="pleroma-reactions-filter" cols="80" rows="1">{{.Settings.AddReactionsFilter}}</textarea>
|
||||
</div>
|
||||
<div class="settings-form-field">
|
||||
<label for="css"> Custom CSS: </label>
|
||||
</div>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue