link avatars

This commit is contained in:
Ted Unangst 2019-10-06 20:42:53 -04:00
parent d38d50d143
commit 029287af30
1 changed files with 13 additions and 1 deletions

View File

@ -2,9 +2,21 @@
{{ $bonkcsrf := .BonkCSRF }} {{ $bonkcsrf := .BonkCSRF }}
{{ with .Honk }} {{ with .Honk }}
<header> <header>
{{ if $bonkcsrf }}
<a class="honkerlink" href="/h?xid={{ .Honker }}" data-xid="{{ .Honker }}">
{{ else }}
<a href="{{ .Honker }}" rel=noreferrer>
{{ end }}
<img alt="" src="/a?a={{ .Honker}}"> <img alt="" src="/a?a={{ .Honker}}">
{{ if $bonkcsrf }} </a> {{ end }}
{{ if .Oonker }} {{ if .Oonker }}
{{ if $bonkcsrf }}
<a class="honkerlink" href="/h?xid={{ .Oonker }}" data-xid="{{ .Oonker }}">
{{ else }}
<a href="{{ .Oonker }}" rel=noreferrer>
{{ end }}
<img alt="" src="/a?a={{ .Oonker}}"> <img alt="" src="/a?a={{ .Oonker}}">
{{ if $bonkcsrf }} </a> {{ end }}
{{ end }} {{ end }}
<p> <p>
{{ if $bonkcsrf }} {{ if $bonkcsrf }}
@ -17,7 +29,7 @@
<br> <br>
<span style="margin-left: 1em;" class="clip"> <span style="margin-left: 1em;" class="clip">
{{ if $bonkcsrf }} {{ if $bonkcsrf }}
original: <a class="honkerlink" href="/h?xid={{ .Oonker }}">{{ .Oondle }}</a> original: <a class="honkerlink" href="/h?xid={{ .Oonker }}" data-xid="{{ .Oonker }}">{{ .Oondle }}</a>
{{ else }} {{ else }}
original: <a href="{{ .Oonker }}" rel=noreferrer>{{ .Oondle }}</a> original: <a href="{{ .Oonker }}" rel=noreferrer>{{ .Oondle }}</a>
{{ end }} {{ end }}