many improvements.
[monitor.git] / web / MonitorWeb / monitorweb / templates / sitemenu.kid
index d46e500..4383b84 100644 (file)
@@ -2,21 +2,29 @@
 <html xmlns:py="http://purl.org/kid/ns#">
   <head>
     <title>App Name - ${page_title}</title>
-    <link href="/static/css/style.css" type="text/css" rel="stylesheet" />
+    <link href="static/css/style.css" type="text/css" rel="stylesheet" />
+    <script type="text/javascript" src="tg_js/MochiKit.js"></script>
+    <script type="text/javascript" src="static/javascript/sortable_tables.js"></script>
+
+       <!-- If in an iframe, then include this... -->
+       <?python from monitor import config ?>
+       <base py:if="config.embedded" target="_top" href="https://${config.MONITOR_HOST}/db/monitor/" />
+
   </head>
 
   <body>
     <div id="header">Monitor : ${page_title}</div>
-       <table valign="top" border="1" bgcolor="white" align="center" width="60em">
+       <table valign="top" border="1" bgcolor="white" align="center" width="700px">
        <tr>
                <td>
                        <table id="nps-table" width="100%">
                        <thead>
                        <tr>
-                               <th><a href="${tg.url('node')}">Nodes</a></th>
-                               <th><a href="${tg.url('pcu')}">PCUs</a></th>
-                               <th><a href="${tg.url('site')}">Sites</a></th>
-                               <th><a href="${tg.url('action')}">Actions</a></th>
+                               <?python from monitorweb.templates.links import link ?>
+                               <th><a href="${link('site')}">Sites</a></th>
+                               <th><a href="${link('pcu')}">PCUs</a></th>
+                               <th><a href="${link('node')}">Nodes</a></th>
+                               <th><a href="${link('action')}">Actions</a></th>
                        </tr>
                        </thead>
                        <tbody>