From 92520ae30fbb4d87235665e8a7e198387d4954aa Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Sun, 24 Jan 2021 23:47:05 +0100 Subject: custom honk.html and header.html : easier to honk - header.html: very dirty html to allow easier reach of frequent actions (new post, fetching a thread, settings, @you, your posts... to cite a few) - honk.html: no more 'Actions' dropdown menu to simply reply back to a tweet --- views/header.html | 80 +++++++++++++++++++++++++++++++ views/honk.html | 140 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 220 insertions(+) create mode 100644 views/header.html create mode 100644 views/honk.html (limited to 'views') diff --git a/views/header.html b/views/header.html new file mode 100644 index 0000000..a57dcde --- /dev/null +++ b/views/header.html @@ -0,0 +1,80 @@ + + + + +honk + +{{ if .LocalStyleParam }} + +{{ end }} + + + + + + +
+{{ if .UserInfo }} +
+ menu | + new honk | + fanfare | + home | + fetch | + @me | + my honks | + settings + {{ .UserInfo.Username }} + +
+

+{{ else }} +home +tags +events +about +{{ if .ShowRSS }} +rss +{{ end }} +login +{{ end }} +
diff --git a/views/honk.html b/views/honk.html new file mode 100644 index 0000000..2d1e465 --- /dev/null +++ b/views/honk.html @@ -0,0 +1,140 @@ +
+{{ $bonkcsrf := .BonkCSRF }} +{{ $IsPreview := .IsPreview }} +{{ $maplink := .MapLink }} +{{ $omitimages := .OmitImages }} +{{ with .Honk }} +
+{{ if $bonkcsrf }} + +{{ else }} + +{{ end }} + +{{ if $bonkcsrf }} {{ end }} +{{ if .Oonker }} +{{ if $bonkcsrf }} + +{{ else }} + +{{ end }} + +{{ if $bonkcsrf }} {{ end }} +{{ end }} +

+{{ if $bonkcsrf }} +{{ .Username }} +{{ else }} +{{ .Username }} +{{ end }} +{{ .What }} {{ .Date.Local.Format "02 Jan 2006 15:04 -0700" }} +{{ if .Oonker }} +
+ +{{ if $bonkcsrf }} +original: {{ .Oondle }} +{{ else }} +original: {{ .Oondle }} +{{ end }} + +{{ else }} +{{ if .RID }} +
+ +in reply to: {{ .RID }} + +{{ end }} +{{ end }} +
+{{ if $bonkcsrf }} +convoy: {{ .Convoy }} +{{ else }} +convoy: {{ .Convoy }} +{{ end }} +

+

+

+{{ .HTPrecis }}

+

{{ .HTPrecis }} +

{{ .HTML }} +{{ with .Time }} +

Time: {{ .StartTime.Local.Format "03:04PM EDT Mon Jan 02"}} +{{ if .Duration }}
Duration: {{ .Duration }}{{ end }} +{{ end }} +{{ with .Place }} +

Location: {{ with .Url }}{{ end }}{{ .Name }}{{ if .Url }}{{ end }}{{ if or .Latitude .Longitude }} {{ .Latitude }} {{ .Longitude }}{{ end }} +{{ end }} +{{ range .Donks }} +{{ if .Local }} +{{ if eq .Media "text/plain" }} +

Attachment: {{ .Name }}{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} +{{ else if eq .Media "application/pdf" }} +

Attachment: {{ .Name }}{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} +{{ else }} +{{ if $omitimages }} +

Image: {{ .Name }}{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} +{{ else }} +

{{ .Desc }} +{{ end }} +{{ end }} +{{ else }} +{{ if .External }} +

External Attachment: {{ .Name }}{{ if not (eq .Desc .Name) }} {{ .Desc }}{{ end }} +{{ else }} +{{ if eq .Media "video/mp4" }} +

+{{ else }} +

{{ .Desc }} +{{ end }} +{{ end }} +{{ end }} +{{ end }} +

+{{ end }} +{{ if and $bonkcsrf (not $IsPreview) }} +

+

+

+{{ if .Honk.Public }} +{{ if .Honk.IsBonked }} + +{{ else }} + +{{ end }} +{{ else }} + +{{ end }} + + + +

+ +

+{{ end }} +

-- cgit v1.2.3-70-g09d2