From 780a21b67b91199e6fff841c412095ceb0db87be Mon Sep 17 00:00:00 2001 From: TEC Date: Sun, 16 Oct 2022 21:56:19 +0800 Subject: [PATCH] Add donation links to the survey exit page --- app/resources/surveys/views/thanks.jl.html | 78 +++++++++++++++++++++- 1 file changed, 76 insertions(+), 2 deletions(-) diff --git a/app/resources/surveys/views/thanks.jl.html b/app/resources/surveys/views/thanks.jl.html index 7ff9cb0..0e6d461 100644 --- a/app/resources/surveys/views/thanks.jl.html +++ b/app/resources/surveys/views/thanks.jl.html @@ -8,14 +8,88 @@ -
+

Thank you for taking part in the survey!

We hope to see you next year 🙂

You can view your results as <% map(resultlinks) do (fmt, url) %> $(fmt) - <% end |> l -> join(l, ", ", ", or ")%> + <% end |> l -> join(l, ", ", ", or ") %> .

+

+

Financially supporting the Emacs community

+

If you are able to, financially supporting the Emacs community dignifies + the work they do and helps people find and justify the time they spend + improving the state of Emacs' ecosystem.

+

Should this sound like something you would be interested in, here + is a small selection of donation links that may be of interest.

+
    + <% + let donations = [ + ("https://liberapay.com/org-mode/", + "The Org Project", nothing, + ["org-mode" => "https://orgmode.org"]), + ("https://liberapay.com/hlissner/", + "Henrik Lissner", "hlissner", + ["Doom Emacs" => "doomemacs/doomemacs", "assorted packages"]), + ("https://liberapay.com/magit/", + "Jonas Bernoulli", "tarsius", + ["Magit" => "magit", "Transient" => "transient", "others"]), + ("https://github.com/sponsors/abo-abo", + "Oleh Krehel", "abo-abo", + ["Swiper" => "swiper", "Hydra" => "hydra", + "Avy" => "avy", "Lispy" => "Lispy"]), + ("https://github.com/sponsors/progfolio", + "Nicholas Vollmer", "progfolio", + ["Straight" => "radian-software/straight.el", + "Elpaca" => "elpaca", "Doct" => "doct"]), + ("https://liberapay.com/protesilaos/", + "Protesilaos Stavrou", "protesilaos", + ["Modus themes" => "https://git.sr.ht/~protesilaos/modus-themes", + "Denote" => "https://git.sr.ht/~protesilaos/denote", + "others"]), + ("https://github.com/sponsors/yyoncho", + "Ivan Yonchovski", "yyoncho", + ["lsp-mode" => "emacs-lsp/lsp-mode", "dap-mode" => "emacs-lisp/dap-mode", + "and other LSP things"]), + ("https://liberapay.com/wasamasa/", + "Vasilij Schneidermann", "wasamasa", + ["nov.el" => "https://depp.brause.cc/nov.el/", + "circe" => "https://github.com/emacs-circe/circe", + "eyebrowse" => "https://depp.brause.cc/eyebrowse", + "shackle" => "https://depp.brause.cc/shackle"]), + ("https://my.fsf.org/donate", + "The Free Software Foundation", nothing, + ["an assortment of projects"]), + ]; + map(donations) do (link, name, github, projects) + string("
  • Donate to ", + name, ' ', + if !isnothing(github) + "@$github" + else "" end, + " (responsible for ", + join(map(projects) do proj + if proj isa String + proj + elseif proj isa Pair{String, String} + string("", + proj[1], "") + else "" end + end, ", ", ", and "), + ")
  • ") + end |> lines -> join(lines, '\n') + end + %> +

Go Home