diff options
Diffstat (limited to 'funcweb/funcweb/templates')
-rw-r--r-- | funcweb/funcweb/templates/master.html | 16 | ||||
-rw-r--r-- | funcweb/funcweb/templates/method.html | 9 | ||||
-rw-r--r-- | funcweb/funcweb/templates/method_args.html | 16 | ||||
-rw-r--r-- | funcweb/funcweb/templates/minion.html | 5 | ||||
-rw-r--r-- | funcweb/funcweb/templates/minions.html | 7 | ||||
-rw-r--r-- | funcweb/funcweb/templates/module.html | 2 | ||||
-rw-r--r-- | funcweb/funcweb/templates/run.html | 5 |
7 files changed, 42 insertions, 18 deletions
diff --git a/funcweb/funcweb/templates/master.html b/funcweb/funcweb/templates/master.html index ab14ca0..073adc1 100644 --- a/funcweb/funcweb/templates/master.html +++ b/funcweb/funcweb/templates/master.html @@ -9,9 +9,9 @@ <title py:content="'Your Title Goes Here'"></title> <script type="text/javascript" src="${tg.url('/static/javascript/jquery.js')}" /> - - <link py:for="js in tg_js_head" py:strip="">${XML(js)}</link> - <link py:for="css in tg_css" py:strip="">${XML(css)}</link> + <link py:for="js in tg_js_head" py:strip="">${ET(js.display())}</link> + <link py:for="css in tg_css" py:strip="">${ET(css.display())}</link> + <script type="text/javascript" src="${tg.url('/static/javascript/ajax.js')}" /> <link href="${tg.url('/static/images/favicon.ico')}" type="image/vnd.microsoft.icon" rel="shortcut icon" /> @@ -20,10 +20,16 @@ <style type="text/css" media="screen"> @import url("/static/css/style.css"); - </style> + </style> + + <script type="text/javascript"> + jQuery._$ = MochiKit.DOM.getElement; + var myj = jQuery.noConflict(); + </script> + </head> <body py:match="body" py:attrs="select('@*')"> - <div py:for="js in tg_js_bodytop" py:replace="XML(js.display())" /> + <div py:for="js in tg_js_bodytop" py:replace="ET(js.display())" /> <div class="wrapper"> <div class="head"> <h1><a href="http://fedorahosted.org/func">Func</a></h1> diff --git a/funcweb/funcweb/templates/method.html b/funcweb/funcweb/templates/method.html index 1f67ce9..af20d86 100644 --- a/funcweb/funcweb/templates/method.html +++ b/funcweb/funcweb/templates/method.html @@ -2,18 +2,17 @@ <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/" xmlns:xi="http://www.w3.org/2001/XInclude"> + + <body> <div class="method"> ${minion}.${module}.${method} - - <form action="" method="GET" onsubmit="$('#results').hide().load('/run/${minion}/${module}/${method}/').show('slow'); return false;"> + + <form action="" method="GET" onsubmit="myj('#results').hide().load('/run/${minion}/${module}/${method}/').show('slow'); return false;"> <input type="text" name="arguments" id="methodargs" class="methodargs"/> </form> <div class="results" id="results" /> - <script type="text/javascript"> - $(document).ready($("#methodargs").focus()); - </script> </div> </body> </html> diff --git a/funcweb/funcweb/templates/method_args.html b/funcweb/funcweb/templates/method_args.html new file mode 100644 index 0000000..2e7d4bd --- /dev/null +++ b/funcweb/funcweb/templates/method_args.html @@ -0,0 +1,16 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html xmlns="http://www.w3.org/1999/xhtml" + xmlns:py="http://genshi.edgewall.org/" + xmlns:xi="http://www.w3.org/2001/XInclude"> + +<body> + <div py:if="minion_form" id="men"> + ${ET(minion_form.display(displays_on='genshi'))} + </div> + <div py:if="not minion_form" id="men"> + <a href="#" onclick="myj('#results').hide().load('/execute_link/${minion}/${module}/${method}/').show('slow');">Run Method</a> + <div class="results" id="results" /> + </div> +</body> +</html> + diff --git a/funcweb/funcweb/templates/minion.html b/funcweb/funcweb/templates/minion.html index f171b00..a526764 100644 --- a/funcweb/funcweb/templates/minion.html +++ b/funcweb/funcweb/templates/minion.html @@ -2,12 +2,13 @@ <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/" xmlns:xi="http://www.w3.org/2001/XInclude"> + <body> - <div id="modules" class="modules"> + <div id="modules" class="modules"> <ul py:for="minion, mods in modules.items()"> <h2>${minion[:13]}</h2> <li py:for="module in mods"> - <a href="#" onclick="$('#col4').hide();$('#col3').hide().load('/minion/${minion}/${module}').show('slow');">${module}</a> + <a href="#" onclick="myj('#col5').hide();myj('#col3').hide().load('/minion/${minion}/${module}').show('slow');">${module}</a> </li> </ul> </div> diff --git a/funcweb/funcweb/templates/minions.html b/funcweb/funcweb/templates/minions.html index 94ccbc1..6a39f54 100644 --- a/funcweb/funcweb/templates/minions.html +++ b/funcweb/funcweb/templates/minions.html @@ -3,20 +3,21 @@ xmlns:py="http://genshi.edgewall.org/" xmlns:xi="http://www.w3.org/2001/XInclude"> <xi:include href="master.html"/> -<head/> + <head/> <body> - <div class="col-group"> + <div class="col-group"> <div class="col" id="col1"> <ul> <li><h2>minions</h2></li> <li py:for="minion in minions"> - <a onclick="$('#col3').hide();$('#col4').hide();$('#col2').hide().load('/minion/${minion}').show('slow');" href="#">${minion}</a> + <a onclick="jQuery('#col3').hide();myj('#col4').hide();myj('#col5').hide();getElement('col2').innerHTML=toHTML(IMG({src:'../static/images/loading.gif',width:'80',height:'80'}));myj('#col2').hide().load('/minion/${minion}').show('slow');" href="#">${minion}</a> </li> </ul> </div> <div class="col" id="col2" /> <div class="col" id="col3" /> <div class="col" id="col4" /> + <div class="col" id="col5" /> </div> </body> </html> diff --git a/funcweb/funcweb/templates/module.html b/funcweb/funcweb/templates/module.html index 2d433f6..a4794d0 100644 --- a/funcweb/funcweb/templates/module.html +++ b/funcweb/funcweb/templates/module.html @@ -7,7 +7,7 @@ <ul py:for="minion, methods in modules.items()"> <h2>${module}</h2> <li py:for="method in methods"> - <a href="#" onclick="$('#col4').hide().load('/minion/${minion}/${module}/${method}').show('slow')">${method}</a> + <a href="#" onclick="myj('#col2').hide();myj('#col5').hide().show('slow');myj('#col4').hide().load('/method_display/${minion}/${module}/${method}').show('slow')">${method}</a> </li> </ul> </div> diff --git a/funcweb/funcweb/templates/run.html b/funcweb/funcweb/templates/run.html index cb17cdd..7ae047b 100644 --- a/funcweb/funcweb/templates/run.html +++ b/funcweb/funcweb/templates/run.html @@ -2,7 +2,8 @@ <html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://genshi.edgewall.org/" xmlns:xi="http://www.w3.org/2001/XInclude"> -<body> - ${results.values()[0]} + <body> + + ${results.values()[0]} </body> </html> |