diff --git a/app/helpers/accounts_helper.rb b/app/helpers/accounts_helper.rb index ff5d37f..7d13159 100644 --- a/app/helpers/accounts_helper.rb +++ b/app/helpers/accounts_helper.rb @@ -10,7 +10,7 @@ def link_to_service name, service when 'github' 'http://github.com/' + service.key when 'facebook' - if service.key =~ /^\sd+$/ + if service.key =~ /^\s*\d+$/ 'http://www.facebook.com/profile.php?id=' + service.key else 'http://www.facebook.com/' + service.key diff --git a/app/views/accounts/_account.html.erb b/app/views/accounts/_account.html.erb index 3bd83d5..b816981 100644 --- a/app/views/accounts/_account.html.erb +++ b/app/views/accounts/_account.html.erb @@ -2,7 +2,7 @@
+======= + <% unless account.names.empty? %> + + Names: + + + + + <% end %> + + <% unless account.nicks.empty? %> + + Nicknames: + + + + + <% end %> + + <% unless account.sites.empty? %> + + Sites: + + + + + <% end %> + + <% unless account.services.empty? %> + + Services: + + + + + <% end %> + + <% unless account.portraits.empty? %> + + Portraits: + + + + + <% end %> + + + + + +>>>>>>> 5b4c07e7ea2b46748a9d590a14745a761e25fb6b