mirror of
https://github.com/rystaf/mlmym.git
synced 2024-11-05 06:43:21 +00:00
add fedilink. fixes #57
This commit is contained in:
parent
c935ffabea
commit
624b7e4847
|
@ -52,6 +52,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<ul class="buttons">
|
<ul class="buttons">
|
||||||
<li><a href="/{{.State.Host}}/comment/{{.P.Comment.ID}}">permalink</a></li>
|
<li><a href="/{{.State.Host}}/comment/{{.P.Comment.ID}}">permalink</a></li>
|
||||||
|
<li><a href="{{.P.Comment.ApID}}">fedilink</a></li>
|
||||||
{{ if ne .Op "source"}}
|
{{ if ne .Op "source"}}
|
||||||
<li><a class="source" for="c{{.P.Comment.ID}}" href="/{{.State.Host}}/comment/{{.P.Comment.ID}}?source">source</a></li>
|
<li><a class="source" for="c{{.P.Comment.ID}}" href="/{{.State.Host}}/comment/{{.P.Comment.ID}}?source">source</a></li>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
|
|
|
@ -60,6 +60,7 @@
|
||||||
<div class="buttons">
|
<div class="buttons">
|
||||||
{{ if .Post.NSFW }}<span class="nsfw">NSFW</span>{{end}}
|
{{ if .Post.NSFW }}<span class="nsfw">NSFW</span>{{end}}
|
||||||
<a href="/{{ .State.Host }}/post/{{ .Post.ID }}">{{ .Counts.Comments }} comments</a>
|
<a href="/{{ .State.Host }}/post/{{ .Post.ID }}">{{ .Counts.Comments }} comments</a>
|
||||||
|
<a href="{{ .Post.ApID}}">fedilink</a>
|
||||||
{{ if and .State.Session (eq .State.Session.UserID .Post.CreatorID) }}
|
{{ if and .State.Session (eq .State.Session.UserID .Post.CreatorID) }}
|
||||||
{{ if not .Post.Deleted }}<a href="/{{ .State.Host }}/post/{{ .Post.ID }}?edit">edit</a>{{end}}
|
{{ if not .Post.Deleted }}<a href="/{{ .State.Host }}/post/{{ .Post.ID }}?edit">edit</a>{{end}}
|
||||||
<form class="link-btn" method="POST">
|
<form class="link-btn" method="POST">
|
||||||
|
|
Loading…
Reference in a new issue