Update of /cvsroot/http-webtest/HTTP-WebTest-Recorder/lib/HTTP/WebTest/template
In directory sc8-pr-cvs1:/tmp/cvs-serv23439/lib/HTTP/WebTest/template
Modified Files:
page.inc
Log Message:
Add recorder turn on/off switch to all pages
Index: page.inc
===================================================================
RCS file: /cvsroot/http-webtest/HTTP-WebTest-Recorder/lib/HTTP/WebTest/template/page.inc,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** page.inc 3 Jan 2003 23:01:24 -0000 1.1.1.1
--- page.inc 24 Jan 2003 09:37:44 -0000 1.2
***************
*** 2,5 ****
--- 2,6 ----
[% USE HTML %]
+ [% USE enable_url = URL('enable') %]
<html>
***************
*** 8,13 ****
--- 9,22 ----
</head>
<body>
+
+ [% IF controller.recorder.is_recording %]
+ <p><a href="[% enable_url(enable => 0) %]">Turn off</a> recording</p>
+ [% ELSE %]
+ <p><a href="[% enable_url(enable => 1) %]">Turn on</a> recording</p>
+ [% END %]
+
<h1>[% HTML.escape(title) %]</h1>
[% content %]
+
</body>
</html>
|