From 34816f3a7f1ccc7955e60d75050a685095979645 Mon Sep 17 00:00:00 2001 From: danielgrippi Date: Thu, 20 Oct 2011 12:08:05 -0700 Subject: [PATCH] add ability to email suggestions for community spotlight members --- app/views/contacts/spotlight.haml | 7 ++++++- config/application.yml.example | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/app/views/contacts/spotlight.haml b/app/views/contacts/spotlight.haml index 54918e6fa..9347ebb48 100644 --- a/app/views/contacts/spotlight.haml +++ b/app/views/contacts/spotlight.haml @@ -14,7 +14,12 @@ = render 'shared/contact_sidebar' -.span-18.last +.span-18.last{:style => "position:relative;"} + + - if AppConfig[:spotlight_suggest_email].present? + .right + = link_to "Suggest a member", "mailto:#{AppConfig[:spotlight_suggest_email]}", :class => "button" + %h3 = t('contacts.spotlight.community_spotlight') %br diff --git a/config/application.yml.example b/config/application.yml.example index 557dd1c6c..c2817d5ce 100644 --- a/config/application.yml.example +++ b/config/application.yml.example @@ -64,6 +64,8 @@ defaults: &defaults # (expressed as an array of Diaspora IDs) community_spotlight: - 'diasporahq@joindiaspora.com' + # Email to send spotlight suggestions to + spotlight_suggest_email: '' # List of users who have admin privileges # (expressed as an array of local usernames)