aboutsummaryrefslogtreecommitdiff
path: root/static/manage.html
diff options
context:
space:
mode:
authorFChannel <=>2021-02-04 12:33:42 -0800
committerFChannel <=>2021-02-04 12:33:42 -0800
commit1df70fec27ab5e4aa3dff8521767454be6b5498c (patch)
tree4902b557879b46f37103ac7a62c62833796c8c22 /static/manage.html
parentf6eecc720abaefb954fda9a26aab78bb1d706ba4 (diff)
when merging boards into a feed show the board color based on posts restrictions
Diffstat (limited to 'static/manage.html')
-rw-r--r--static/manage.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/static/manage.html b/static/manage.html
index 06288cd..570c0f5 100644
--- a/static/manage.html
+++ b/static/manage.html
@@ -16,7 +16,7 @@
</ul>
</div>
<a href="/{{ .Board.Name }}">[Return]</a>
-{{ $actor := .Actor.Id }}
+{{ $actor := .Board.Actor.Id }}
{{ $board := .Board }}
{{ $key := .Key }}
{{ if .IsLocal }}
@@ -24,9 +24,9 @@
<h4>Subscribed</h4>
<form id="follow-form" action="/{{ .Key }}/{{ .Board.Name }}/follow" method="post" enctype="application/x-www-form-urlencoded">
<label>Subscribe:</label><br>
- <input id="follow" name="follow" style="margin-bottom: 12px;" placeholder="https://localhost:3000/g"></input>
+ <input id="follow" name="follow" style="margin-bottom: 12px;" placeholder="https://server.fchan.xyz/g"></input>
<input type="submit" value="Subscribe"><br>
- <input type="hidden" name="actor" value="{{ .Actor.Id }}">
+ <input type="hidden" name="actor" value="{{ $board.Actor.Id }}">
</form>
<ul style="display: inline-block; padding: 0; margin: 0;">
@@ -81,8 +81,8 @@
reportedArray.forEach(function(r, i){
var id = r.getAttribute("post")
- r.innerText = "/" + {{ .Board.Name }} + "/" + shortURL("{{ .Actor.Id }}", id)
- r.href = {{ .Domain }} + "/" + {{ .Board.Name }} + "/" + shortURL("{{ .Actor.Id }}", id)
+ r.innerText = "/" + {{ .Board.Name }} + "/" + shortURL("{{ .Board.Actor.Id }}", id)
+ r.href = {{ .Domain }} + "/" + {{ .Board.Name }} + "/" + shortURL("{{ .Board.Actor.Id }}", id)
})
</script>
{{ end }}