Mayel de Borniol 2022-05-22 09:53:14 +12:00
parent 5ea6f720fe
commit 44551d8580
3 changed files with 28 additions and 15 deletions

View file

@ -22,16 +22,10 @@ defmodule Bonfire.Web.HomeLive do
l("About Bonfire") => "https://bonfirenetworks.org/",
l("Contribute") => "https://bonfirenetworks.org/contribute/"
})
welcome_title = Bonfire.Common.Config.get([:ui, :theme, :instance_welcome, :title], l "About")
welcome_text =
Bonfire.Common.Config.get([:ui, :theme, :instance_welcome, :description], nil)
|| Bonfire.Common.Config.get([:ui, :theme, :instance_description], l "Welcome")
{:ok, socket
|> assign(
page_title: instance_name,
welcome_title: welcome_title,
welcome: welcome_text,
links: links,
sidebar_widgets: [
users: [

View file

@ -1,8 +1,27 @@
<div class="items-start justify-center w-full max-w-screen-xl mx-auto tablet:flex ">
<div class="items-start justify-center w-full max-w-screen-xl mx-auto space-y-4">
<Bonfire.UI.Common.WidgetTextLive
widget_title={e(assigns, :welcome_title, "About")}
text={e(assigns, :welcome, "")}
widget_title={Config.get([:ui, :theme, :instance_welcome, :title], l "About")}
banner_image={Config.get([:ui, :theme, :instance_image], nil)}
text={Config.get([:ui, :theme, :instance_welcome, :description], nil) || Config.get([:ui, :theme, :instance_description], l "Welcome")}
/>
{#case Config.get([:bonfire, :terms, :conduct], nil)}
{#match terms when is_binary(terms)}
<Bonfire.UI.Common.WidgetTextLive
widget_title={l "Code of Conduct"}
text={terms}
/>
{#match _}
{/case}
{#case Config.get([:bonfire, :terms, :privacy], nil)}
{#match terms when is_binary(terms)}
<Bonfire.UI.Common.WidgetTextLive
widget_title={l "Privacy Policy"}
text={terms}
/>
{#match _}
{/case}
</div>

View file

@ -4,7 +4,7 @@
"absinthe_error_payload": {:hex, :absinthe_error_payload, "1.1.4", "502ff239148c8deaac028ddb600d6502d5be68d24fece0c93f4c3cf7e74c1a4d", [:make, :mix], [{:absinthe, "~> 1.3", [hex: :absinthe, repo: "hexpm", optional: false]}, {:ecto, "~> 3.1", [hex: :ecto, repo: "hexpm", optional: false]}], "hexpm", "9e262ef2fd4a2c644075e0cdde2573b1f713c0676ab905c8640eaa8a882b2aca"},
"absinthe_phoenix": {:hex, :absinthe_phoenix, "2.0.2", "e607b438db900049b9b3760f8ecd0591017a46122fffed7057bf6989020992b5", [:mix], [{:absinthe, "~> 1.5", [hex: :absinthe, repo: "hexpm", optional: false]}, {:absinthe_plug, "~> 1.5", [hex: :absinthe_plug, repo: "hexpm", optional: false]}, {:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}, {:phoenix, "~> 1.5", [hex: :phoenix, repo: "hexpm", optional: false]}, {:phoenix_html, "~> 2.13 or ~> 3.0", [hex: :phoenix_html, repo: "hexpm", optional: true]}, {:phoenix_pubsub, "~> 2.0", [hex: :phoenix_pubsub, repo: "hexpm", optional: false]}], "hexpm", "d36918925c380dc7d2ed7d039c9a3b4182ec36723f7417a68745ade5aab22f8d"},
"absinthe_plug": {:hex, :absinthe_plug, "1.5.8", "38d230641ba9dca8f72f1fed2dfc8abd53b3907d1996363da32434ab6ee5d6ab", [:mix], [{:absinthe, "~> 1.5", [hex: :absinthe, repo: "hexpm", optional: false]}, {:plug, "~> 1.4", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "bbb04176647b735828861e7b2705465e53e2cf54ccf5a73ddd1ebd855f996e5a"},
"activity_pub": {:git, "https://github.com/bonfire-networks/activity_pub", "fee54f4f5c87bf2107390e5cc6e707ff7e08b275", [branch: "develop"]},
"activity_pub": {:git, "https://github.com/bonfire-networks/activity_pub", "a03a112ca48d8289b68c13ed12ac46fbb438494d", [branch: "develop"]},
"argon2_elixir": {:hex, :argon2_elixir, "2.4.1", "edb27bdd326bc738f3e4614eddc2f73507be6fedc9533c6bcc6f15bbac9c85cc", [:make, :mix], [{:comeonin, "~> 5.3", [hex: :comeonin, repo: "hexpm", optional: false]}, {:elixir_make, "~> 0.6", [hex: :elixir_make, repo: "hexpm", optional: false]}], "hexpm", "0e21f52a373739d00bdfd5fe6da2f04eea623cb4f66899f7526dd9db03903d9f"},
"arrows": {:git, "https://github.com/bonfire-networks/arrows", "bfd904d9c4d1439b0feefafa771ee74661a4c8a4", [branch: "main"]},
"bamboo": {:hex, :bamboo, "2.2.0", "f10a406d2b7f5123eb1f02edfa043c259db04b47ab956041f279eaac776ef5ce", [:mix], [{:hackney, ">= 1.15.2", [hex: :hackney, repo: "hexpm", optional: false]}, {:jason, "~> 1.0", [hex: :jason, repo: "hexpm", optional: true]}, {:mime, "~> 1.4", [hex: :mime, repo: "hexpm", optional: false]}, {:plug, "~> 1.0", [hex: :plug, repo: "hexpm", optional: false]}], "hexpm", "8c3b14ba7d2f40cb4be04128ed1e2aff06d91d9413d38bafb4afccffa3ade4fc"},
@ -26,7 +26,7 @@
"bonfire_data_social": {:git, "https://github.com/bonfire-networks/bonfire_data_social", "75da41940b0dfd9f572804f8ffbfce29f213e041", [branch: "main"]},
"bonfire_ecto": {:git, "https://github.com/bonfire-networks/bonfire_ecto", "88ad2c495c07a33d7df0f0b825e96c2b9cf1f2e0", [branch: "main"]},
"bonfire_editor_ck": {:git, "https://github.com/bonfire-networks/bonfire_editor_ck", "bac3329a5679cd990a98bf6923fcbb1daa89ab2b", [branch: "main"]},
"bonfire_editor_quill": {:git, "https://github.com/bonfire-networks/bonfire_editor_quill", "31db3c8efd31062027df34d5d2eed19d3db938e5", [branch: "main"]},
"bonfire_editor_quill": {:git, "https://github.com/bonfire-networks/bonfire_editor_quill", "a17141645b83dfac98a65ff01d66be3eb91113ca", [branch: "main"]},
"bonfire_epics": {:git, "https://github.com/bonfire-networks/bonfire_epics", "34300053dbafa9b9cfede22bd4e6433d04344b69", [branch: "main"]},
"bonfire_fail": {:git, "https://github.com/bonfire-networks/bonfire_fail", "4ce2a1254c68388f8877e1c86dfd782a773600ea", [branch: "main"]},
"bonfire_federate_activitypub": {:git, "https://github.com/bonfire-networks/bonfire_federate_activitypub", "b718a551fd9e279cd15197f5f3705dc2c2790083", [branch: "main"]},
@ -40,18 +40,18 @@
"bonfire_search": {:git, "https://github.com/bonfire-networks/bonfire_search", "76fff2546ac4fd8c4fd06c892d09febe01de1f37", [branch: "main"]},
"bonfire_social": {:git, "https://github.com/bonfire-networks/bonfire_social", "ab18ec60d51cb4bea459670659c469e71556dea3", [branch: "main"]},
"bonfire_tag": {:git, "https://github.com/bonfire-networks/bonfire_tag", "ee02c6290a132a5b8da7d7c7e80cca1fe516ebbe", [branch: "main"]},
"bonfire_ui_common": {:git, "https://github.com/bonfire-networks/bonfire_ui_common", "a152b6ce90be9350602ba53f3e472ffa0e30a107", [branch: "main"]},
"bonfire_ui_common": {:git, "https://github.com/bonfire-networks/bonfire_ui_common", "a7f5b4ec82874b6fe33a09738e9088feb25bdc6d", [branch: "main"]},
"bonfire_ui_coordination": {:git, "https://github.com/bonfire-networks/bonfire_ui_coordination", "40b24b68b542c31a0c99be2650b8148c5ad01161", [branch: "main"]},
"bonfire_ui_kanban": {:git, "https://github.com/bonfire-networks/bonfire_ui_kanban", "69f42c5c38e5d63e4e60b4ef8d0191224c297b14", [branch: "main"]},
"bonfire_ui_me": {:git, "https://github.com/bonfire-networks/bonfire_ui_me", "345a2b9cb9f5b31958a49b1fcee60e4488a292b6", [branch: "main"]},
"bonfire_ui_me": {:git, "https://github.com/bonfire-networks/bonfire_ui_me", "fee5284fb3fb0a1fc03c7869c7e25475631a5ef4", [branch: "main"]},
"bonfire_ui_reflow": {:git, "https://github.com/bonfire-networks/bonfire_ui_reflow", "befd9ccb3b28b1e46e4a485deb493a041fde181b", [branch: "main"]},
"bonfire_ui_social": {:git, "https://github.com/bonfire-networks/bonfire_ui_social", "129d6d30ac9ed9cc7e672cc480c487698b6b1117", [branch: "main"]},
"bonfire_ui_social": {:git, "https://github.com/bonfire-networks/bonfire_ui_social", "9214a3411a162cdbd223945651c96ed2cf5e0847", [branch: "main"]},
"bonfire_ui_valueflows": {:git, "https://github.com/bonfire-networks/bonfire_ui_valueflows", "1b767e92009a9d82f5f258c9f8b415a8ee0c73c8", [branch: "main"]},
"bonfire_upcycle": {:git, "https://gitlab.com/bonfire-networks/bonfire_upcycle", "bb3fb7f2ad8664290913cf0d76f877b7aac2f269", [branch: "master"]},
"bonfire_valueflows": {:git, "https://github.com/bonfire-networks/bonfire_valueflows", "83d9148c94f876e946f6deba1fc67cfbbda6fd72", [branch: "main"]},
"bonfire_valueflows_observe": {:git, "https://github.com/bonfire-networks/bonfire_valueflows_observe", "f0076e8f120cbb60b924ef5833e27de01c5ff737", [branch: "main"]},
"bonfire_website": {:git, "https://github.com/bonfire-networks/bonfire_website", "47a0d80079c00814209e6d495530f6ad724b974c", [branch: "main"]},
"boruta": {:git, "https://gitlab.com/patatoid/boruta_auth", "315f68d39e99c4413787e19b05bf19f06e210501", [branch: "master"]},
"boruta": {:git, "https://gitlab.com/patatoid/boruta_auth", "2878509696e0d67e47490aa197a5b261e27993cc", [branch: "master"]},
"cachex": {:hex, :cachex, "3.4.0", "868b2959ea4aeb328c6b60ff66c8d5123c083466ad3c33d3d8b5f142e13101fb", [:mix], [{:eternal, "~> 1.2", [hex: :eternal, repo: "hexpm", optional: false]}, {:jumper, "~> 1.0", [hex: :jumper, repo: "hexpm", optional: false]}, {:sleeplocks, "~> 1.1", [hex: :sleeplocks, repo: "hexpm", optional: false]}, {:unsafe, "~> 1.0", [hex: :unsafe, repo: "hexpm", optional: false]}], "hexpm", "370123b1ab4fba4d2965fb18f87fd758325709787c8c5fce35b3fe80645ccbe5"},
"certifi": {:hex, :certifi, "2.9.0", "6f2a475689dd47f19fb74334859d460a2dc4e3252a3324bd2111b8f0429e7e21", [:rebar3], [], "hexpm", "266da46bdb06d6c6d35fde799bcb28d36d985d424ad7c08b5bb48f5b5cdd4641"},
"cldr_utils": {:hex, :cldr_utils, "2.17.2", "4dcb582caa2108d4461a86fb761b9b072ab84a6b191173dae6bff1c67d10115e", [:mix], [{:castore, "~> 0.1", [hex: :castore, repo: "hexpm", optional: true]}, {:certifi, "~> 2.5", [hex: :certifi, repo: "hexpm", optional: true]}, {:decimal, "~> 1.9 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: false]}], "hexpm", "9c5667e647c2ec20f9beba530f7e72557a0dc29f92947738a8ced2d0cdf04c1c"},