source: MILK/trunk/milk_server/milk_server/templates/atom_editor/layout.html @ 5116

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

Improve MILK configuration file, to simplify switching on/off the
browse/discovery/editor modes + improve look and feel - according
to mode of operation (inc. add new logos) + remove some obsolete
functionality + hide functions not relevant to the selected mode of
operation.

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('@*')">
26    <div id="entirepage">
27      <div py:replace="header()"/>
28      ${Markup(c.tbinfo)}
29
30      <div id="logo"><img src="$g.LeftLogo" alt="$g.LeftAlt" /></div>
31      <div py:if="g.discoveryEnabled">
32                  <span py:with="panelTab = select('panelTab/text()')" py:strip="">
33                    <py:if test="panelTab">
34                      <div py:replace="PageTabs(panelTab)"/>
35                    </py:if>
36                  </span>
37              <div py:replace="searchOneLine()"/>
38          </div>
39      <div id="content">
40                <table py:if="g.atomEditorEnabled and c.title != ATOM_HOME_TITLE" class="homeHelpBar">
41                        <tr><td align="left">
42                            <a href="${h.url_for('home')}">Home</a>
43                            </td><td align="right"><a py:if="c.title != HELP_PAGE_TITLE" href="${h.url_for('help')}">Help</a>
44                            </td></tr>
45                    </table>
46                <div id="loading" class='hidden'><img src="$g.loadingIcon" alt="Loading" />Please wait...</div>
47                    ${select('*[local-name()!="panelTab" and local-name()!="includeCorrectionLink"]')}
48      </div>
49          <span py:with="corrLink = list(select('includeCorrectionLink/text()'))" py:strip="">
50            <py:if test="corrLink">
51              <div py:replace="corrections()"/>
52            </py:if>
53          </span>
54      <div py:replace="footer()"/>
55    </div>
56    </body>
57  </py:match>
58</html>
Note: See TracBrowser for help on using the repository browser.