source: TI12-security/trunk/python/ndg.security.server/ndg/security/server/sso/sso/templates/ndg/security/wayf.kid @ 3658

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/ndg.security.server/ndg/security/server/sso/sso/templates/ndg/security/wayf.kid@3658
Revision 3658, 2.3 KB checked in by pjkersha, 12 years ago (diff)

sso: refactoring redirects from NDG Browse version.

Line 
1<html py:extends="'ndgPage.kid'" xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#">
2    <head>
3    <replace py:replace="pagehead()"/>
4    </head>
5    <body>
6        <div py:replace="header()"/>
7        <div class="wayfContent" style="text-indent:5px">       
8        <h4> Where are you from? </h4>
9        <p> You can login in at:
10        <?python
11        # Sort alphabetically
12        providerNames = c.providers.keys()
13        providerNames.sort()
14        ?>
15        <ul py:for="h in providerNames">
16            <li> <a href="${c.providers[h]}?r=${c.b64encReturnTo}">${h}</a></li>
17        </ul></p>
18        <p>Before clicking on these links, please check that the links redirect to a site
19        you trust with your security credentials.</p>
20        <p> How can I tell?  For any of the above, following login you will be
21        redirected back to the URL: <a href="${c.returnTo}">${c.returnTo}</a></p>
22                </div>
23        <div py:replace="footer()"/>
24    </body>
25   
26        <div py:def="footer()" id="Footer">
27        <center><table><tbody>
28            <tr>
29                <td align="center" width="60%">
30                    <table><tbody>
31                    <tr><td><span py:replace="linkimage(g.securityCfg.ndgLink,g.securityCfg.ndgImage,'NDG')"/></td>
32                    <td> This portal is a product of the <a href="http://ndg.nerc.ac.uk"> NERC DataGrid</a>
33                    Not all functionality is completely implemented, bugs and problems are expected </td>
34                    </tr>
35                    </tbody></table>
36                </td>
37                <td width="40%" align="center">
38                    <div id="loginStatus">
39                        <!--! now we choose one of the next two (logged in or not) -->
40                        <div py:if="'ndgSec' in session"><table><tbody><tr><td> User [${session['ndgSec']['u']}] logged in
41                        at [${session['ndgSec']['h']}] with roles [${session['ndgSec']['roles']}]</td><td>
42                        &nbsp;<span py:replace="logOut()"/></td></tr></tbody></table></div>
43                        <div py:if="'ndgSec' not in session"></div>
44                    </div>
45                </td>
46                <td><span py:replace="linkimage(g.securityCfg.stfcLink,g.securityCfg.stfcImage,'Hosted by the STFC CEDA')"/></td>
47            </tr>
48        </tbody></table></center>
49    </div>
50</html>
Note: See TracBrowser for help on using the repository browser.