From 10f7d14b51ab09aa8641605245e5eb576b29bb46 Mon Sep 17 00:00:00 2001 From: Miquel Lionel Date: Fri, 5 Feb 2021 14:36:10 +0100 Subject: create folder structure corresponding to honk ver --- patches/01_prettier_rssfeed.patch | 16 ---- v0.9.5/patches/01_prettier_rssfeed.patch | 16 ++++ v0.9.5/views/header.html | 90 ++++++++++++++++++++ v0.9.5/views/header_fr.html | 92 ++++++++++++++++++++ v0.9.5/views/honk.html | 140 +++++++++++++++++++++++++++++++ v0.9.5/views/local.css | 8 ++ views/header.html | 90 -------------------- views/header_fr.html | 92 -------------------- views/honk.html | 140 ------------------------------- views/local.css | 8 -- 10 files changed, 346 insertions(+), 346 deletions(-) delete mode 100644 patches/01_prettier_rssfeed.patch create mode 100644 v0.9.5/patches/01_prettier_rssfeed.patch create mode 100644 v0.9.5/views/header.html create mode 100644 v0.9.5/views/header_fr.html create mode 100644 v0.9.5/views/honk.html create mode 100644 v0.9.5/views/local.css delete mode 100644 views/header.html delete mode 100644 views/header_fr.html delete mode 100644 views/honk.html delete mode 100644 views/local.css diff --git a/patches/01_prettier_rssfeed.patch b/patches/01_prettier_rssfeed.patch deleted file mode 100644 index 80e8d9e..0000000 --- a/patches/01_prettier_rssfeed.patch +++ /dev/null @@ -1,16 +0,0 @@ -diff --git a/web.go b/web.go -index 11adf5b..502e15f 100644 ---- a/web.go -+++ b/web.go -@@ -190,9 +190,9 @@ func showrss(w http.ResponseWriter, r *http.Request) { - name += " " - } - feed := rss.Feed{ -- Title: name + "honk", -+ Title: "@" + name + " - honking from " + serverName, - Link: home, -- Description: name + "honk rss", -+ Description: "RSS Feed of honks from " + name + "@" + serverName, - Image: &rss.Image{ - URL: base + "icon.png", - Title: name + "honk rss", diff --git a/v0.9.5/patches/01_prettier_rssfeed.patch b/v0.9.5/patches/01_prettier_rssfeed.patch new file mode 100644 index 0000000..80e8d9e --- /dev/null +++ b/v0.9.5/patches/01_prettier_rssfeed.patch @@ -0,0 +1,16 @@ +diff --git a/web.go b/web.go +index 11adf5b..502e15f 100644 +--- a/web.go ++++ b/web.go +@@ -190,9 +190,9 @@ func showrss(w http.ResponseWriter, r *http.Request) { + name += " " + } + feed := rss.Feed{ +- Title: name + "honk", ++ Title: "@" + name + " - honking from " + serverName, + Link: home, +- Description: name + "honk rss", ++ Description: "RSS Feed of honks from " + name + "@" + serverName, + Image: &rss.Image{ + URL: base + "icon.png", + Title: name + "honk rss", diff --git a/v0.9.5/views/header.html b/v0.9.5/views/header.html new file mode 100644 index 0000000..4498ca1 --- /dev/null +++ b/v0.9.5/views/header.html @@ -0,0 +1,90 @@ + + + + +honk + +{{ if .LocalStyleParam }} + +{{ end }} + + + + + + + + +
+{{ if .UserInfo }} +
+ menu {{ .UserInfo.Username }} + +
+ + +
+ new honk | + front | + home | + fetch | + @me | + profile | + settings | +
+ +
+
+ + +

+{{ else }} +home +tags +events +about +{{ if .ShowRSS }} +rss +{{ end }} +login +{{ end }} +
diff --git a/v0.9.5/views/header_fr.html b/v0.9.5/views/header_fr.html new file mode 100644 index 0000000..580ce07 --- /dev/null +++ b/v0.9.5/views/header_fr.html @@ -0,0 +1,92 @@ + + + + +honk + +{{ if .LocalStyleParam }} + +{{ end }} + + + + + + + + +
+{{ if .UserInfo }} +
+ menu {{ .UserInfo.Username }} + +
+ + +
+ 🎺 | + front | + accueil | + récup | + @moi | + profil | + ⚙️ | +
+ +
+
+ + +

+{{ else }} +accueil +balises +moments +à propos +{{ if .ShowRSS }} +rss +{{ end }} +login +{{ end }} +
diff --git a/v0.9.5/views/honk.html b/v0.9.5/views/honk.html new file mode 100644 index 0000000..2d1e465 --- /dev/null +++ b/v0.9.5/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 }} +

diff --git a/v0.9.5/views/local.css b/v0.9.5/views/local.css new file mode 100644 index 0000000..680d300 --- /dev/null +++ b/v0.9.5/views/local.css @@ -0,0 +1,8 @@ +#altnavbar{ + margin-left:17%; + position:fixed; + background:var(--bg-page); + opacity:0.7; + top:0; + padding:5px +} diff --git a/views/header.html b/views/header.html deleted file mode 100644 index 4498ca1..0000000 --- a/views/header.html +++ /dev/null @@ -1,90 +0,0 @@ - - - - -honk - -{{ if .LocalStyleParam }} - -{{ end }} - - - - - - - - -
-{{ if .UserInfo }} -
- menu {{ .UserInfo.Username }} - -
- - -
- new honk | - front | - home | - fetch | - @me | - profile | - settings | -
- -
-
- - -

-{{ else }} -home -tags -events -about -{{ if .ShowRSS }} -rss -{{ end }} -login -{{ end }} -
diff --git a/views/header_fr.html b/views/header_fr.html deleted file mode 100644 index 580ce07..0000000 --- a/views/header_fr.html +++ /dev/null @@ -1,92 +0,0 @@ - - - - -honk - -{{ if .LocalStyleParam }} - -{{ end }} - - - - - - - - -
-{{ if .UserInfo }} -
- menu {{ .UserInfo.Username }} - -
- - -
- 🎺 | - front | - accueil | - récup | - @moi | - profil | - ⚙️ | -
- -
-
- - -

-{{ else }} -accueil -balises -moments -à propos -{{ if .ShowRSS }} -rss -{{ end }} -login -{{ end }} -
diff --git a/views/honk.html b/views/honk.html deleted file mode 100644 index 2d1e465..0000000 --- a/views/honk.html +++ /dev/null @@ -1,140 +0,0 @@ -
-{{ $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 }} -

diff --git a/views/local.css b/views/local.css deleted file mode 100644 index 680d300..0000000 --- a/views/local.css +++ /dev/null @@ -1,8 +0,0 @@ -#altnavbar{ - margin-left:17%; - position:fixed; - background:var(--bg-page); - opacity:0.7; - top:0; - padding:5px -} -- cgit v1.2.3-70-g09d2