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

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

Add new home page for the browse service + implement usage of the
before methods on controllers to check if MILK is set up to
allow the various services before the controller methods are invoked.
Also add a top level default controller to redirect user to the correct
home page depending on the mode of operation + improve styles,
remove unused controller and move error template to more general top
level - for re-use across the MILK stack.

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