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

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

Lots of tidy ups to MILK codebase:

Implement new input search filters - with javascript datapickers to
pick the date ranges + add the vocab search ahead text input and
combine this with the text input.

Refactor discovery controller to tidy it up significantly - making more
structured and improving error handling and logging. Improve
templates for the search filter, splitting into multiple files to
organise better.

Various tidying up and tweaks of other codebase - e.g. standardising
use of global variables across app.

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