source: TI12-security/trunk/NDGSecurity/python/ndg_security_server/ndg/security/server/wsgi/authz/result_handler/genshi/templates/base.html @ 6268

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/NDGSecurity/python/ndg_security_server/ndg/security/server/wsgi/authz/result_handler/genshi/templates/base.html@6268
Revision 6268, 1.9 KB checked in by pjkersha, 10 years ago (diff)
Line 
1<!-- This is a bunch of named templates for use in pages -->
2<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/">
3    <?python from genshi import HTML ?>
4    <!-- HTML Header and Document header follow -->
5   
6    <head py:def="pagehead()" py:strip="True">
7        <title py:content="c.title">title</title>
8        <link media="all, screen" href="${c.baseURL}/layout/default.css" 
9            type="text/css" rel="stylesheet"/>
10        <link rel="icon" type="image/ico" 
11            href="${c.baseURL}/layout/favicon.jpg"/>
12    </head>
13
14    <div py:def="header()" id="header">
15        <div py:if="c.heading">
16            <h1>${c.heading}</h1>
17        </div>
18        <div py:if="c.leftLogo" id="logo">
19            <img src="${c.leftLogo}" alt="${c.leftAlt}" />
20        </div>
21    </div>
22
23    <!-- Page Footer follows -->
24    <div py:def="footer()" id="footer">
25        <table width="100%"><tbody>
26            <tr>
27                <td align="left" width="60%" valign="top">
28                    <table>
29                        <tbody>
30                            <tr>
31                                <td valign="top" py:if="c.leftImage and c.leftLink"><span py:replace="linkimage(c.leftLink, c.leftImage, c.leftAlt)"/></td>
32                                <td valign="top" py:if="c.footerText">${HTML(c.footerText)}</td>
33                            </tr>
34                        </tbody>
35                    </table>
36                </td>
37                <td align="right" valign="top" width="40%"><span py:replace="linkimage(c.rightLink, c.rightImage, c.rightAlt)"/></td>
38            </tr>
39        </tbody></table>
40    </div>
41   
42    <!-- Utility Functions follow -->
43   
44    <!-- hyperlinked image -->
45    <span py:def="linkimage(linkref,imageref,alttext)">
46        <a href="$linkref"><image src="$imageref" alt="$alttext" title="$alttext"/></a>
47    </span>
48</html>
Note: See TracBrowser for help on using the repository browser.