improve display w/noscript
authorJoey Hess <joey@kitenet.net>
Sat, 8 May 2010 01:44:06 +0000 (21:44 -0400)
committerJoey Hess <joey@kitenet.net>
Sat, 8 May 2010 01:46:11 +0000 (21:46 -0400)
templates/openid-selector.tmpl

index 06eefebb97d72c785cab85c53ca862a958aa0211..7e5ae9a01bfcacb0149dfa07b3fc5186716c51fe 100644 (file)
@@ -10,6 +10,13 @@ $(document).ready(function() {
        <fieldset>
                <legend>Select your account provider</legend>
 
+               <noscript>
+               <ul>
+               <TMPL_IF NONOPENIDURL>
+               <li><a href="<TMPL_VAR NONOPENIDURL>">Local Account</a></li>
+               </TMPL_IF>
+               <li>OpenID:</div>
+               </noscript>
                <input type="hidden" name="do" value="signin" />
                <input type="hidden" name="action" value="verify" />
                <div id="openid_choice">
@@ -22,5 +29,9 @@ $(document).ready(function() {
                <TMPL_IF OPENID_ERROR>
                <div class="error"><TMPL_VAR OPENID_ERROR></div>
                </TMPL_IF>
+               <noscript>
+               </li>
+               </ul>
+               </noscript>
        </fieldset>
 </form>