Skip to content

Commit

Permalink
5560 Hide community spotlight setting if not enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
sakshi-keepworks committed Jan 19, 2015
1 parent 4d8790d commit 327edca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/views/aspects/_no_contacts_message.haml
Expand Up @@ -7,5 +7,6 @@
%br
%br
= t('.try_adding_some_more_contacts')
!= t('.or_spotlight', :link => link_to(t(".community_spotlight") , community_spotlight_path))
- if AppConfig.settings.community_spotlight.enable?
!= t('.or_spotlight', :link => link_to(t(".community_spotlight") , community_spotlight_path))

7 changes: 4 additions & 3 deletions app/views/users/edit.html.haml
Expand Up @@ -85,9 +85,10 @@

= f.fields_for :stream_preferences do |type|
#stream_prefs
= f.label :show_community_spotlight_in_stream, :class => "checkbox" do
= f.check_box :show_community_spotlight_in_stream
= t('.show_community_spotlight')
- if AppConfig.settings.community_spotlight.enable?
= f.label :show_community_spotlight_in_stream, :class => "checkbox" do
= f.check_box :show_community_spotlight_in_stream
= t('.show_community_spotlight')

.small-horizontal-spacer
= f.label :getting_started, :class => "checkbox" do
Expand Down

0 comments on commit 327edca

Please sign in to comment.