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

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

Adjust atom links when in editor mode to point to the editor instance

  • and correct these when saving the data so that the links actually

point to the browse service + turn of granule delete function when not
in edit mode + remove duplicated inclusion of badc icon + tidy up
config file.

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