diff options
author | FChannel <> | 2021-06-17 00:21:07 -0700 |
---|---|---|
committer | FChannel <> | 2021-06-17 00:21:07 -0700 |
commit | cc24155859b65653495747bd0b38be9bcef33298 (patch) | |
tree | c46e5b7273534e9626d746855b3b036ee06c1006 /static/posts.html | |
parent | bf23a5c30ace0525e2ad67a979916af5ebab3001 (diff) |
added html meta data as well as basic hover effect on links
Diffstat (limited to 'static/posts.html')
-rw-r--r-- | static/posts.html | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/static/posts.html b/static/posts.html index ee71faf..bfcc84b 100644 --- a/static/posts.html +++ b/static/posts.html @@ -131,10 +131,13 @@ {{ if .Replies.OrderedItems }} {{ range .Replies.OrderedItems }} <span id="{{$parentId}}-replyto-{{.Id}}"></span> - <script>document.getElementById("{{ $parentId }}-replyto-{{.Id}}").innerHTML = "<a title='{{ .Id }}' href='/{{ $board.Name }}/" + shortURL("{{ $board.Actor.Id }}", "{{ $opId }}") + "#" + shortURL("{{ $board.Actor.Id }}", "{{ .Id }}") + "'>>>" + shortURL("{{ $board.Actor.Id }}", "{{ .Id }}") + "</a>";</script> - {{ end }} - {{ end }} - <p id="{{ .Id }}-content" style="white-space: pre-wrap; margin: 10px 30px 10px 30px;">{{.Content}}</p> + <script> + var content = convertContentNoLink('{{$board.Actor.Id}}', '{{ .Content }}', '{{ $opId }}') + document.getElementById("{{ $parentId }}-replyto-{{.Id}}").innerHTML = "<a title='" + content +"' href='/{{ $board.Name }}/" + shortURL("{{ $board.Actor.Id }}", "{{ $opId }}") + "#" + shortURL("{{ $board.Actor.Id }}", "{{ .Id }}") + "'>>>" + shortURL("{{ $board.Actor.Id }}", "{{ .Id }}") + "</a>"; + </script> + {{ end }} + {{ end }} + <p id="{{ .Id }}-content" style="white-space: pre-wrap; margin: 10px 30px 10px 30px;">{{.Content}}</p> </div> </div> </div> |