Files
grecia/app/components/admin/dashboard/index_component.rb
jensconsul b5c13d63d1 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>
2023-10-16 15:23:19 +02:00

22 lines
394 B
Ruby

class Admin::Dashboard::IndexComponent < ApplicationComponent
include Header
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