fix services index with incomplete oauth_keys.yml
This commit is contained in:
parent
668c4ddfc5
commit
82ca293825
1 changed files with 3 additions and 3 deletions
|
|
@ -12,10 +12,10 @@
|
|||
= link_to t('services.index.disconnect'), service_path(service), :confirm => t('services.index.really_disconnect', :service => service.provider), :method => :delete
|
||||
|
||||
- unless @services.any?{|x| x.provider == 'twitter'}
|
||||
%h4= link_to t('services.index.connect_to_twitter'), "/auth/twitter" if SERVICES['twitter']['consumer_key']!= ""
|
||||
%h4= link_to t('services.index.connect_to_twitter'), "/auth/twitter" if SERVICES['twitter'] && SERVICES['twitter']['consumer_key']!= ""
|
||||
|
||||
- unless @services.any?{|x| x.provider == 'facebook'}
|
||||
%h4= link_to t('services.index.connect_to_facebook'), "/auth/facebook" if SERVICES['facebook']['app_id'] !=""
|
||||
%h4= link_to t('services.index.connect_to_facebook'), "/auth/facebook" if SERVICES['facebook'] && SERVICES['facebook']['app_id'] !=""
|
||||
|
||||
- unless @services.any?{|x| x.provider == 'tumblr'}
|
||||
%h4= link_to t('services.index.connect_to_tumblr'), "/auth/tumblr" if SERVICES['tumblr']['consumer_key'] !=""
|
||||
%h4= link_to t('services.index.connect_to_tumblr'), "/auth/tumblr" if SERVICES['tumblr'] && SERVICES['tumblr']['consumer_key'] !=""
|
||||
|
|
|
|||
Loading…
Reference in a new issue