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:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user