Add information about the project to admin index

This way it'll be easier for people to know how to contact the Consul
Democracy Foundation.

Co-Authored-By: Javi Martín <javim@elretirao.net>
This commit is contained in:
jensconsul
2023-10-11 14:59:24 +02:00
committed by Javi Martín
parent 4435673ace
commit b5c13d63d1
5 changed files with 66 additions and 0 deletions

View File

@@ -2,3 +2,10 @@
<%= header(skip_section_title: true) %>
<p><%= t("admin.dashboard.index.description", org: setting["org_name"]) %></p>
<%= info %>
<address>
<%= email_link %>
<%= website_link %>
</address>

View File

@@ -4,4 +4,18 @@ class Admin::Dashboard::IndexComponent < ApplicationComponent
def title
t("admin.dashboard.index.title")
end
private
def info
sanitize t("admin.dashboard.index.info")
end
def email_link
mail_to "info@consulfoundation.org"
end
def website_link
link_to "https://consuldemocracy.org", "https://consuldemocracy.org"
end
end