many improvements.
[monitor.git] / web / MonitorWeb / monitorweb / templates / sitelist.kid
index 299daa8..50b296e 100644 (file)
@@ -1,6 +1,7 @@
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <?python
 layout_params['page_title'] = "Monitor Site List"
+from links import *
 ?>
 <html py:layout="'sitemenu.kid'"
       xmlns:py="http://purl.org/kid/ns#"
@@ -10,11 +11,11 @@ layout_params['page_title'] = "Monitor Site List"
        <table width="100%">
                <thead>
                        <tr>
-                               <th><a href="${tg.url('site', filter='good')}">Compliant(${fc['good']})</a></th>
-                               <th><a href="${tg.url('site', filter='down')}">Down(${fc['down']})</a></th>
-                               <th><a href="${tg.url('site', filter='new')}">New Sites(${fc['new']})</a></th>
-                               <th><a href="${tg.url('site', filter='pending')}">Disabled(${fc['pending']})</a></th>
-                               <th><a href="${tg.url('site', filter='all')}">All(${fc['all']})</a></th>
+                               <th><a href="${link('site', filter='good')}">Compliant(${fc['good']})</a></th>
+                               <th><a href="${link('site', filter='down')}">Down(${fc['down']})</a></th>
+                               <th><a href="${link('site', filter='new')}">New Sites(${fc['new']})</a></th>
+                               <th><a href="${link('site', filter='pending')}">Disabled(${fc['pending']})</a></th>
+                               <th><a href="${link('site', filter='all')}">All(${fc['all']})</a></th>
                        </tr>
                </thead>
                <tbody>
@@ -33,7 +34,7 @@ layout_params['page_title'] = "Monitor Site List"
                        <tbody>
                                <tr py:for="i,site in enumerate(query)" class="${i%2 and 'odd' or 'even'}" >
                                        <td></td>
-                                       <td nowrap="true"><a href="siteview?loginbase=${site.loginbase}">${site.loginbase}</a></td>
+                                       <td nowrap="true"><a href="${link('siteview', loginbase=site.loginbase)}">${site.loginbase}</a></td>
                                        <td id="site-${site.status}" py:content="site.last_changed"></td>
                                        <td>${site.slices_used}/${site.slices_total}</td>
                                        <td>${site.nodes_up} / ${site.nodes_total}</td>