Андрей (andy) wrote in changelog,
Андрей
andy
changelog

[ljcom] r9929: LJINT-362 (Comments for side projects)

Committer: ailyin
LJINT-362 (Comments for side projects)
U   trunk/templates/Identity/ExternalLogin.tmpl
Modified: trunk/templates/Identity/ExternalLogin.tmpl
===================================================================
--- trunk/templates/Identity/ExternalLogin.tmpl	2011-01-20 10:37:29 UTC (rev 9928)
+++ trunk/templates/Identity/ExternalLogin.tmpl	2011-01-21 03:54:34 UTC (rev 9929)
@@ -1,123 +1,123 @@
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">-<html>-<head>-<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />-<head>-<title>Log in</title>-<TMPL_VAR js_check_domain>-<TMPL_VAR lj_res_includes>-</head>-<body>-<div class="b-identity">-<ul class="m-auth">-    <TMPL_LOOP type_user>-        <li class="m-auth-item m-auth-<TMPL_VAR type> current"><a href="?type=<TMPL_VAR type>"><span><TMPL_VAR ml_tab_heading></span></a><i class="m-auth-bl"></i><i class="m-auth-br"></i></li>-    </TMPL_LOOP>--    <TMPL_LOOP type_openid>-        <li class="m-auth-item m-auth-<TMPL_VAR type>"><a href="?type=<TMPL_VAR type>"><span><TMPL_VAR ml_tab_heading></span></a><i class="m-auth-bl"></i><i class="m-auth-br"></i></li>-    </TMPL_LOOP>--    <TMPL_LOOP type_facebook>-        <li class="m-auth-item m-auth-<TMPL_VAR type>"><a href="?type=<TMPL_VAR type>"><span><TMPL_VAR ml_tab_heading></span></a><i class="m-auth-bl"></i><i class="m-auth-br"></i></li>-    </TMPL_LOOP>--    <TMPL_LOOP type_twitter>-        <li class="m-auth-item m-auth-<TMPL_VAR type>"><a href="?type=<TMPL_VAR type>"><span><TMPL_VAR ml_tab_heading></span></a><i class="m-auth-bl"></i><i class="m-auth-br"></i></li>-    </TMPL_LOOP>--</ul>-<ul class="b-auth">-    <TMPL_LOOP type_user>-        <li id="tab-<TMPL_VAR type>" class="b-auth-item">-			<form action="<tmpl_var action>" method="post" target="">-                <p class="b-auth-desc"><TMPL_VAR expr="ml('/identity/login.bml.user.desc')"></p>-                <p class="b-auth-user-form">-                    <span class="b-auth-input-wrapper">-                        <label for="ljusername"><TMPL_VAR expr="ml('/identity/login.bml.user.label.name')"></label>-                        <input type="text" name="user" id="ljusername" value="" class="b-auth-user-input" />-                    </span>-                    <span class="b-auth-input-wrapper">-                        <label for="ljuserpassword"><TMPL_VAR expr="ml('/identity/login.bml.user.label.pass')"></label>-                        <input type="password" name="password" id="ljuserpassword" value="" class="b-auth-user-input" />-                        <a href="<TMPL_VAR expr="ml('/identity/login.bml.user.help.link')">"><TMPL_VAR expr="ml('/identity/login.bml.user.help')"></a>-                    </span>-                    <button type="submit"><TMPL_VAR expr="ml('/identity/login.bml.user.btn.login')"></button>-                </p>-                <TMPL_IF errors><TMPL_LOOP errors><p class="b-auth-error"><span class="i-message i-message-error"><TMPL_VAR error></span></p></TMPL_LOOP></TMPL_IF>--                <input type="hidden" name="type" value="<TMPL_VAR type>" />-                <input type="hidden" name="returnto" value="<TMPL_VAR returnto>" />-            </form>-        </li>-    </TMPL_LOOP>--    <TMPL_LOOP type_openid>-        <li id="tab-<TMPL_VAR type>" class="b-auth-item" style="display:none">-			<form action="<tmpl_var action>" method="post" target="lj-identity-auth">-                <p class="b-auth-desc"><TMPL_VAR expr="ml('/identity/login.bml.openid.desc')"></p>-                <p class="b-auth-openid-form">-                    <span class="b-auth-input-wrapper">-                        <label for="openid_url"><TMPL_VAR expr="ml('/identity/login.bml.openid.label.url')"></label>-                        <input type="url" name="openid:url" id="openid_url" value="" class="b-auth-openid-input" />-                        <span><TMPL_VAR expr="ml('/identity/login.bml.openid.label.sample')"></span>-                    </span>-                    <button type="submit"><TMPL_VAR expr="ml('/identity/login.bml.openid.btn.login')"></button>-                </p>-                <TMPL_IF errors><TMPL_LOOP errors><p class="b-auth-error"><span class="i-message i-message-error"><TMPL_VAR error></span></p></TMPL_LOOP></TMPL_IF>--                <input type="hidden" name="type" value="<TMPL_VAR type>" />-            </form>-        </li>-    </TMPL_LOOP>--    <TMPL_LOOP type_facebook>-        <li id="tab-<TMPL_VAR type>" class="b-auth-item" style="display:none">-			<form action="<tmpl_var action>" method="post" target="lj-identity-auth">-                <button type="submit" class="b-facebookbtn" title="<TMPL_VAR expr="ml('/identity/login.bml.facebook.btn.connect')">"><span><i></i><TMPL_VAR expr="ml('/identity/login.bml.facebook.btn.connect')"></span></button>-                <p class="b-auth-desc"><TMPL_VAR expr="ml('/identity/login.bml.facebook.desc')"></p>-                <TMPL_IF errors><TMPL_LOOP errors><p class="b-auth-error"><span class="i-message i-message-error"><TMPL_VAR error></span></p></TMPL_LOOP></TMPL_IF>--                <input type="hidden" name="type" value="<TMPL_VAR type>" />-            </form>-        </li>-    </TMPL_LOOP>--    <TMPL_LOOP type_twitter>-        <li id="tab-<TMPL_VAR type>" class="b-auth-item" style="display:none">-			<form action="<tmpl_var action>" method="post" target="lj-identity-auth">-                <button type="submit" class="b-twitterbtn"><span><i></i><TMPL_VAR expr="ml('/identity/login.bml.twitter.btn.connect')"></span></button>-                <p class="b-auth-desc"><TMPL_VAR expr="ml('/identity/login.bml.twitter.desc')"></p>-                <TMPL_IF errors><TMPL_LOOP errors><p class="b-auth-error"><span class="i-message i-message-error"><TMPL_VAR error></span></p></TMPL_LOOP></TMPL_IF>--                <input type="hidden" name="type" value="<TMPL_VAR type>" />-            </form>-        </li>-    </TMPL_LOOP>-</ul>-</div>--<script type="text/javascript">-    jQuery(function($) {-        $(".m-auth a").click(function(e) {-            e.preventDefault();--            var type = $(this).attr("href").replace(/.*type=/, "");--            $(".m-auth-item").removeClass("current");-            $(".b-auth-item").hide();-            $(this).parent('li').addClass("current");-            $("#tab-" + type).show();-        });--        $("form").submit(function(e) {-            var form = $(this);--            if (form.attr("target") == "lj-identity-auth") {-                window.open("about:blank", "lj-identity-auth", "width=800,height=600");-            }-        });-    });-</script>-</body>-</html>+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<head>
+<title>Log in</title>
+<TMPL_VAR js_check_domain>
+<TMPL_VAR lj_res_includes>
+</head>
+<body>
+<div class="b-identity">
+<ul class="m-auth">
+    <TMPL_LOOP type_user>
+        <li class="m-auth-item m-auth-<TMPL_VAR type> current"><a href="?type=<TMPL_VAR type>"><span><TMPL_VAR ml_tab_heading></span></a><i class="m-auth-bl"></i><i class="m-auth-br"></i></li>
+    </TMPL_LOOP>
+
+    <TMPL_LOOP type_openid>
+        <li class="m-auth-item m-auth-<TMPL_VAR type>"><a href="?type=<TMPL_VAR type>"><span><TMPL_VAR ml_tab_heading></span></a><i class="m-auth-bl"></i><i class="m-auth-br"></i></li>
+    </TMPL_LOOP>
+
+    <TMPL_LOOP type_facebook>
+        <li class="m-auth-item m-auth-<TMPL_VAR type>"><a href="?type=<TMPL_VAR type>"><span><TMPL_VAR ml_tab_heading></span></a><i class="m-auth-bl"></i><i class="m-auth-br"></i></li>
+    </TMPL_LOOP>
+
+    <TMPL_LOOP type_twitter>
+        <li class="m-auth-item m-auth-<TMPL_VAR type>"><a href="?type=<TMPL_VAR type>"><span><TMPL_VAR ml_tab_heading></span></a><i class="m-auth-bl"></i><i class="m-auth-br"></i></li>
+    </TMPL_LOOP>
+
+</ul>
+<ul class="b-auth">
+    <TMPL_LOOP type_user>
+        <li id="tab-<TMPL_VAR type>" class="b-auth-item">
+			<form action="<tmpl_var action>" method="post" target="">
+                <p class="b-auth-desc"><TMPL_VAR expr="ml('/identity/login.bml.user.desc')"></p>
+                <p class="b-auth-user-form">
+                    <span class="b-auth-input-wrapper">
+                        <label for="ljusername"><TMPL_VAR expr="ml('/identity/login.bml.user.label.name')"></label>
+                        <input type="text" name="user" id="ljusername" value="" class="b-auth-user-input" />
+                    </span>
+                    <span class="b-auth-input-wrapper">
+                        <label for="ljuserpassword"><TMPL_VAR expr="ml('/identity/login.bml.user.label.pass')"></label>
+                        <input type="password" name="password" id="ljuserpassword" value="" class="b-auth-user-input" />
+                        <a href="<TMPL_VAR expr="ml('/identity/login.bml.user.help.link')">"><TMPL_VAR expr="ml('/identity/login.bml.user.help')"></a>
+                    </span>
+                    <button type="submit"><TMPL_VAR expr="ml('/identity/login.bml.user.btn.login')"></button>
+                </p>
+                <TMPL_IF errors><TMPL_LOOP errors><p class="b-auth-error"><span class="i-message i-message-error"><TMPL_VAR error></span></p></TMPL_LOOP></TMPL_IF>
+
+                <input type="hidden" name="type" value="<TMPL_VAR type>" />
+                <input type="hidden" name="returnto" value="<TMPL_VAR returnto>" />
+            </form>
+        </li>
+    </TMPL_LOOP>
+
+    <TMPL_LOOP type_openid>
+        <li id="tab-<TMPL_VAR type>" class="b-auth-item" style="display:none">
+			<form action="<tmpl_var action>" method="post" target="lj-identity-auth">
+                <p class="b-auth-desc"><TMPL_VAR expr="ml('/identity/login.bml.openid.desc')"></p>
+                <p class="b-auth-openid-form">
+                    <span class="b-auth-input-wrapper">
+                        <label for="openid_url"><TMPL_VAR expr="ml('/identity/login.bml.openid.label.url')"></label>
+                        <input type="url" name="openid:url" id="openid_url" value="" class="b-auth-openid-input" />
+                        <span><TMPL_VAR expr="ml('/identity/login.bml.openid.label.sample')"></span>
+                    </span>
+                    <button type="submit"><TMPL_VAR expr="ml('/identity/login.bml.openid.btn.login')"></button>
+                </p>
+                <TMPL_IF errors><TMPL_LOOP errors><p class="b-auth-error"><span class="i-message i-message-error"><TMPL_VAR error></span></p></TMPL_LOOP></TMPL_IF>
+
+                <input type="hidden" name="type" value="<TMPL_VAR type>" />
+            </form>
+        </li>
+    </TMPL_LOOP>
+
+    <TMPL_LOOP type_facebook>
+        <li id="tab-<TMPL_VAR type>" class="b-auth-item" style="display:none">
+			<form action="<tmpl_var action>" method="post" target="lj-identity-auth">
+                <button type="submit" class="b-facebookbtn" title="<TMPL_VAR expr="ml('/identity/login.bml.facebook.btn.connect')">"><span><i></i><TMPL_VAR expr="ml('/identity/login.bml.facebook.btn.connect')"></span></button>
+                <p class="b-auth-desc"><TMPL_VAR expr="ml('/identity/login.bml.facebook.desc')"></p>
+                <TMPL_IF errors><TMPL_LOOP errors><p class="b-auth-error"><span class="i-message i-message-error"><TMPL_VAR error></span></p></TMPL_LOOP></TMPL_IF>
+
+                <input type="hidden" name="type" value="<TMPL_VAR type>" />
+            </form>
+        </li>
+    </TMPL_LOOP>
+
+    <TMPL_LOOP type_twitter>
+        <li id="tab-<TMPL_VAR type>" class="b-auth-item" style="display:none">
+			<form action="<tmpl_var action>" method="post" target="lj-identity-auth">
+                <button type="submit" class="b-twitterbtn"><span><i></i><TMPL_VAR expr="ml('/identity/login.bml.twitter.btn.connect')"></span></button>
+                <p class="b-auth-desc"><TMPL_VAR expr="ml('/identity/login.bml.twitter.desc')"></p>
+                <TMPL_IF errors><TMPL_LOOP errors><p class="b-auth-error"><span class="i-message i-message-error"><TMPL_VAR error></span></p></TMPL_LOOP></TMPL_IF>
+
+                <input type="hidden" name="type" value="<TMPL_VAR type>" />
+            </form>
+        </li>
+    </TMPL_LOOP>
+</ul>
+</div>
+
+<script type="text/javascript">
+    jQuery(function($) {
+        $(".m-auth a").click(function(e) {
+            e.preventDefault();
+
+            var type = $(this).attr("href").replace(/.*type=/, "");
+
+            $(".m-auth-item").removeClass("current");
+            $(".b-auth-item").hide();
+            $(this).parent('li').addClass("current");
+            $("#tab-" + type).show();
+        });
+
+        $("form").submit(function(e) {
+            var form = $(this);
+
+            if (form.attr("target") == "lj-identity-auth") {
+                window.open("about:blank", "lj-identity-auth", "width=800,height=600");
+            }
+        });
+    });
+</script>
+</body>
+</html>

Tags: andy, ljcom, tmpl
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments