]> git.openstreetmap.org Git - osqa.git/blobdiff - forum_modules/facebookauth/templates/button.html
make user decorated name decoratable through OSQA modules, allow superusers to edit...
[osqa.git] / forum_modules / facebookauth / templates / button.html
index a634d1d17639288e449e71f9d9d2908f07577fe1..497533d056dfc894c2c42566aef5f05cc873a731 100644 (file)
@@ -1,31 +1,3 @@
 {% load extra_tags %}\r
 \r
 {% load extra_tags %}\r
 \r
-<div id="fb-root"></div>\r
-<script src="http://connect.facebook.net/en_US/all.js"></script>\r
-<script>\r
-    function check_login_status() {\r
-        var FB_API_KEY = "{{ provider.API_KEY }}";\r
-        FB.init({\r
-            appId:FB_API_KEY, cookie:true,\r
-            status:true, xfbml:true\r
-        });\r
-        FB.getLoginStatus(function(response) {\r
-            if (response.session) {\r
-                redirect_to_done_page();\r
-            } else {\r
-                FB.login(function(response) {\r
-                    if (response.session) {\r
-                      redirect_to_done_page();\r
-                    } else {\r
-                      // user cancelled login\r
-                    }\r
-                }, {perms:'email'});\r
-            }\r
-        });\r
-    }\r
-\r
-    function redirect_to_done_page() {\r
-        window.location = "{% url auth_provider_done provider=provider.id %}";\r
-    }\r
-</script>\r
-<a style="position: relative; top: -8px;" href="javascript:void(0);" onclick="check_login_status()" perms="email"><img src="{% media '/media/images/openid/facebook.gif' %}" /></a>\r
+<a style="position: relative; top: -8px;" href="{% url auth_provider_signin provider="facebook" %}"><img src="{% media '/media/images/openid/facebook.gif' %}" /></a>\r