condense information
This commit is contained in:
parent
de4e1693ae
commit
156a4029a2
2
fun.go
2
fun.go
|
@ -318,7 +318,7 @@ func originate(u string) string {
|
||||||
func honkerhandle(h string) string {
|
func honkerhandle(h string) string {
|
||||||
m := re_unurl.FindStringSubmatch(h)
|
m := re_unurl.FindStringSubmatch(h)
|
||||||
if len(m) > 2 {
|
if len(m) > 2 {
|
||||||
return fmt.Sprintf("%s@%s", m[2], m[1])
|
return m[2]
|
||||||
}
|
}
|
||||||
return h
|
return h
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,22 +2,22 @@
|
||||||
{{ with .Honk }}
|
{{ with .Honk }}
|
||||||
<header>
|
<header>
|
||||||
<img alt="avatar" src="/a?a={{ .Honker}}">
|
<img alt="avatar" src="/a?a={{ .Honker}}">
|
||||||
<p><a href="{{ .Honker }}" rel=noreferrer>{{ .Username }}</a> <span class="clip">{{ .What }} {{ .Date.Format "02 Jan 2006 15:04" }} <a href="{{ .URL }}" rel=noreferrer>{{ .URL }}</a></span>
|
<p><a href="{{ .Honker }}" rel=noreferrer>{{ .Username }}</a> <span class="clip"><a href="{{ .URL }}" rel=noreferrer>{{ .What }}</a> {{ .Date.Format "02 Jan 2006 15:04" }}</span>
|
||||||
{{ if .Oonker }}
|
{{ if .Oonker }}
|
||||||
<br>
|
<br>
|
||||||
<span style="margin-left: 3em;" class="clip">
|
<span style="margin-left: 1em;" class="clip">
|
||||||
original: {{ .Oonker }}
|
original: {{ .Oonker }}
|
||||||
</span>
|
</span>
|
||||||
{{ else }}
|
{{ else }}
|
||||||
{{ if .RID }}
|
{{ if .RID }}
|
||||||
<br>
|
<br>
|
||||||
<span style="margin-left: 3em;" class="clip">
|
<span style="margin-left: 1em;" class="clip">
|
||||||
in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
|
in reply to: <a href="{{ .RID }}" rel=noreferrer>{{ .RID }}</a>
|
||||||
</span>
|
</span>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
<br>
|
<br>
|
||||||
<span style="margin-left: 3em;" class="clip">
|
<span style="margin-left: 1em;" class="clip">
|
||||||
convoy: <a href="/t?c={{ .Convoy }}">{{ .Convoy }}</a>
|
convoy: <a href="/t?c={{ .Convoy }}">{{ .Convoy }}</a>
|
||||||
</span>
|
</span>
|
||||||
</header>
|
</header>
|
||||||
|
|
Loading…
Reference in New Issue