source: MILK/trunk/milk_server/milk_server/templates/layout.html @ 5948

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/MILK/trunk/milk_server/milk_server/templates/layout.html@5948
Revision 5948, 3.1 KB checked in by sdonegan, 11 years ago (diff)

Updates to styles, tweaks etc etc

Line 
1<html lang="en" xmlns="http://www.w3.org/1999/xhtml" 
2        xmlns:py="http://genshi.edgewall.org/"
3        xmlns:xi="http://www.w3.org/2001/XInclude" py:strip="">
4<xi:include href="ndgPage.html" />
5<!--  to see the vocab server autocomplete working, uncomment this line and the line further down
6<xi:include href="vocabsearch/vocabsearch.html" />
7-->
8<?python
9from milk_server.controllers.atom_editor.editorconstants import *
10from milk_server.controllers.browse.browserconstants import *
11?>
12
13
14
15  <py:match path="head" once="true">
16    <head py:attrs="select('@*')">
17   
18      <title py:with="title = list(select('title/text()'))">
19     
20        <py:if test="title">${title}</py:if>
21       
22      </title>
23                ${Markup(h.javascript_include_tag(builtins=True))}
24                <script type="text/javascript" src="$g.server/js/yui/build/yui/yui-min.js" />
25            <script type="text/javascript" src="$g.server/js/toggleDiv.js"/>
26        <script type="text/javascript" src="$g.server/js/ndgJavascript.js"/>
27        <link media="all, screen" href="$g.server/layout/style/ndg2.css" 
28                type="text/css" rel="stylesheet"/>
29
30                <!--! Include anything else specified in the parent template header -->
31            ${select('*[local-name()!="title"]')}
32    </head>
33  </py:match>
34
35  <py:match path="body" once="true">
36    <body py:attrs="select('@*')" onUnload="Div_hide('loading');">
37    <div id="entirepage">
38      <div py:replace="header()"/>
39      ${Markup(c.tbinfo)}
40      <div py:if="g.discoveryEnabled and c.title != DISCOVERY_HOME_TITLE">
41                  <span py:with="panelTab = select('panelTab/text()')" py:strip="">
42                    <py:if test="panelTab">
43                      <div py:replace="PageTabs(panelTab)"/>
44                    </py:if>
45                  </span>
46              <div py:replace="searchOneLine()"/>
47          </div>
48      <div py:if="g.browseEnabled or g.atomEditorEnabled">
49            <div py:replace="localTextSearch()"/>
50          </div>
51<!--  to see the vocab server autocomplete working, uncomment this line and the line further up
52          <div py:replace="vocabSearchAutoComplete()" />
53-->
54      <div id="content">
55                <table py:if="g.atomEditorEnabled and c.title != ATOM_HOME_TITLE" class="homeHelpBar">
56                        <tr><td align="left">
57                            <a href="${h.url_for('atomHome')}">Home</a>
58                            </td><td align="right"><a py:if="c.title != HELP_PAGE_TITLE" href="${h.url_for('help')}">Help</a>
59                            </td></tr>
60                    </table>
61                <div id="loading" class='hidden'><img src="$g.loadingIcon" alt="Loading" />Please wait...</div>
62                    ${select('*[local-name()!="panelTab" and local-name()!="includeCorrectionLink"]')}
63                        <div class="javascriptWarning"><script type="text/javascript"><!--
64                        document.write("<div style='display:none' id='moreinfo'>");
65                        //-->
66                        </script>WARNING: You currently have javascript disabled.  For these pages to work correctly, please enable javascript.<script type="text/javascript"><!--
67                        document.write("</div>");
68                        //--></script></div>
69      </div>
70          <span py:with="corrLink = list(select('includeCorrectionLink/text()'))" py:strip="">
71            <py:if test="corrLink">
72              <div py:replace="corrections()"/>
73            </py:if>
74          </span>
75      <div py:replace="footer()"/>
76    </div>
77    </body>
78  </py:match>
79</html>
Note: See TracBrowser for help on using the repository browser.