diff --git a/app/views/layouts/_sidebar.html.erb b/app/views/layouts/_sidebar.html.erb index 935899a1e04a695d6800969a583f3f1ffb075227..5ddcf1b4cb33fe28118ca2653d409856222d1601 100644 --- a/app/views/layouts/_sidebar.html.erb +++ b/app/views/layouts/_sidebar.html.erb @@ -59,4 +59,18 @@ </p> </div> </div> + + <% chat = SiteSetting['ChatLink'] %> + <% if chat.present? %> + <div class="widget has-margin-4"> + <div class="widget--header"> + Chat + </div> + <div class="widget--body"> + <p> + <%= link_to 'Join us in chat!', chat %> + </p> + </div> + </div> + <% end %> </div> \ No newline at end of file diff --git a/db/seeds/site_settings.yml b/db/seeds/site_settings.yml index 9e6a61aa6b4af0b14a0fd99168a4a411d9a72f89..eeddd795c4e70ff2454efb363eb9a2f49e8e73b2 100644 --- a/db/seeds/site_settings.yml +++ b/db/seeds/site_settings.yml @@ -235,3 +235,10 @@ category: Integrations description: > Site ID for this community in your Matomo analytics instance. + +- name: ChatLink + value: ~ + value_type: string + category: Integrations + description: > + Link to your chat platform of choice.