diff --git a/dist/treebird20.css b/dist/treebird20.css index 4270081..7c2e97c 100644 --- a/dist/treebird20.css +++ b/dist/treebird20.css @@ -1680,11 +1680,37 @@ ul.large-list li a text-decoration: none; } +.bullet-separate +{ + color: #808080; + margin-left: 5px; + margin-right: 5px; +} + .menubar { + background: linear-gradient(#fcfcfc, #efefef); + border-bottom: 1px solid #cacaca; padding: 6px; + /* box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.1); */ } +.mini-links +{ + margin: 10px 8px; + text-align: center; + color: #909090; + font-size: 10px; +} + +.mini-links .bullet-separate +{ + color: #909090; + font-size: 10px; + margin: unset; +} + + /****************************** * Scrobbles * ******************************/ diff --git a/src/about.c b/src/about.c index 114a1e8..0282acf 100644 --- a/src/about.c +++ b/src/about.c @@ -16,6 +16,7 @@ * along with this program. If not, see . */ +#include #include "base_page.h" #include "about.h" @@ -26,7 +27,7 @@ void content_about(struct session* ssn, mastodont_t* api, char** data) { struct base_page b = { .category = BASE_CAT_NONE, - .content = data_about, + .content = (char*)data_about, .sidebar_left = NULL }; @@ -37,13 +38,22 @@ void content_about(struct session* ssn, mastodont_t* api, char** data) void content_about_license(struct session* ssn, mastodont_t* api, char** data) { + char* page; + char* referer = getenv("HTTP_REFERER"); + struct license_template tdata = { + .back_ref = referer, + .license_str = "License" + }; + page = tmpl_gen_license(&tdata, NULL); + struct base_page b = { .category = BASE_CAT_NONE, - .content = data_license, + .content = page, .sidebar_left = NULL }; // Output render_base_page(&b, ssn, api); + free(page); } diff --git a/src/base_page.c b/src/base_page.c index f5d5e52..a7857cf 100644 --- a/src/base_page.c +++ b/src/base_page.c @@ -145,7 +145,10 @@ void render_base_page(struct base_page* page, struct session* ssn, mastodont_t* .sidebar_leftbar = page->sidebar_left, .instance_panel = ssn->config.instance_panel ? instance_str : "", .main = page->content, - .sidebar_rightbar = sidebar_str + .sidebar_rightbar = sidebar_str, + .about_link_str = "About", + .license_link_str = "License", + .source_link_str = "Source code", }; size_t len; diff --git a/static/about.tmpl b/static/about.tmpl index 310c4b3..ed1967e 100644 --- a/static/about.tmpl +++ b/static/about.tmpl @@ -3,19 +3,19 @@

Treebird

-

Treebird is a Pleroma frontend that tries to be lightweight, efficient, and true to the web. It's written in C for no particular reason, but it has an open base for contributions. It is very tight to the philosophy of how the internet has always worked, while still being simple enough that anyone can use it.

+

Treebird is a Pleroma frontend that is lightweight, efficient, and true to the web. It's written in C with FCGI making it simple and fast to work with and deploy. It is very tight to the philosophy of how the internet has always worked; Javascript provides extra sugar (or scripting) to improve the experience but not a requirement, while still being simple enough that anyone can use it.

-

Treebird was created in response to PleromaFE being slow and being buggy. Treebird resembles GNU Social in appearance by default, but keeps the familiarity that many are used to of PleromaFE.

+

Treebird was created in response to PleromaFE performance issues and ironically a lack of PleromaAPI backend support. Treebird resembles GNU Social in appearance by default, but keeps the familiarity that many are used to of PleromaFE.

Treebird was created by Nekobit, who created mastodont-c, a library that can communicate with Revolver's, Pleroma's, and Mastodon's REST APIs.

Other contributors

Treebird is licensed in AGPLv3, and mastodont-c is LGPLv3 licensed. Other licenses apply to libraries as well. View the AGPLv3 license here.

diff --git a/static/index.tmpl b/static/index.tmpl index cf730da..647c93e 100644 --- a/static/index.tmpl +++ b/static/index.tmpl @@ -41,6 +41,13 @@ {{ %s : sidebar_leftbar }} {{ %s : instance_panel }} + diff --git a/static/license.tmpl b/static/license.tmpl index 36defd0..27986e8 100644 --- a/static/license.tmpl +++ b/static/license.tmpl @@ -1,4 +1,5 @@
+

< {{ %s : license_str }}

GNU AFFERO GENERAL PUBLIC LICENSE

Version 3, 19 November 2007

diff --git a/static/timeline_options.tmpl b/static/timeline_options.tmpl index 94afd7d..1b584f3 100644 --- a/static/timeline_options.tmpl +++ b/static/timeline_options.tmpl @@ -2,7 +2,7 @@
{{ %s : only_media }} - - + {{ %s : replies }}