run inflate to produce files
authorDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 7 Apr 2011 19:26:23 +0000 (19:26 +0000)
committerDobrica Pavlinusic <dpavlin@rot13.org>
Thu, 7 Apr 2011 19:26:23 +0000 (19:26 +0000)
templates/gnuplot.html.ep [new file with mode: 0644]
templates/index.html.ep [new file with mode: 0644]
templates/layouts/default.html.ep [new file with mode: 0644]
templates/ping.html.ep [new file with mode: 0644]
web_ui.pl

diff --git a/templates/gnuplot.html.ep b/templates/gnuplot.html.ep
new file mode 100644 (file)
index 0000000..6cb9816
--- /dev/null
@@ -0,0 +1,11 @@
+% layout 'default';
+<%= form_for gnuplot => begin %>
+ <%= text_area 'sql', cols => 80, rows => 5 %>
+ <br>with <%= select_field with => [qw(dots points steps lines)], 'dots' %>
+ <%= submit_button 'execute' %>
+<% end %>
+% if ( $img ) {
+<img src="<%= $img %>">
+% }
+<pre><%= $gnuplot %></pre>
+
diff --git a/templates/index.html.ep b/templates/index.html.ep
new file mode 100644 (file)
index 0000000..a06ee19
--- /dev/null
@@ -0,0 +1,21 @@
+% layout 'default';
+% title 'Gearman demo';
+
+<ul>
+<li><a href="/gearman.html#ping/127.0.0.1">Gearman</a> web interface
+<li><%= link_to 'CRM' => 'CRM.html' %> search with tabular output
+</ul>
+
+Gnuplot graphs:
+
+<ul>
+<li><a href="/gnuplot?sql=select start,ping_error,adsl_ok from poll">poll stats</a>
+<li><a href="/gnuplot?sql=select timestamp,snrtx,attntx,pwrtx,pwrrx,attnrx,snrrx from adsl where username='test36zg@h1snc'">adsl stat for single user</a>
+<li><a href="/gnuplot?sql=select timestamp,rtt from ping where ip << inet '10.17/16' order by timestamp desc limit 1000">ttl from 10.17 network</a>
+</ul>
+
+Low-level API tests:
+
+<%= link_to 'HTTP ping' => 'ping_http' %>
+<%= link_to 'Gearman ping' => 'ping_g' %>
+
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
new file mode 100644 (file)
index 0000000..1694d57
--- /dev/null
@@ -0,0 +1,4 @@
+<!doctype html><html>
+  <head><title><%= title %></title></head>
+  <body><%= content %></body>
+</html>
diff --git a/templates/ping.html.ep b/templates/ping.html.ep
new file mode 100644 (file)
index 0000000..d75ab87
--- /dev/null
@@ -0,0 +1,3 @@
+% layout 'default';
+pong: <tt><%= $pong %>
+
index 733873e..742252f 100755 (executable)
--- a/web_ui.pl
+++ b/web_ui.pl
@@ -154,48 +154,3 @@ get '/_redis' => sub {
 };
 
 app->start;
-__DATA__
-
-@@ index.html.ep
-% layout 'default';
-% title 'Gearman demo';
-
-<ul>
-<li><a href="/gearman.html#ping/127.0.0.1">Gearman</a> web interface
-<li><%= link_to 'CRM' => 'CRM.html' %> search with tabular output
-</ul>
-
-Gnuplot graphs:
-
-<ul>
-<li><a href="/gnuplot?sql=select start,ping_error,adsl_ok from poll">poll stats</a>
-<li><a href="/gnuplot?sql=select timestamp,snrtx,attntx,pwrtx,pwrrx,attnrx,snrrx from adsl where username='test36zg@h1snc'">adsl stat for single user</a>
-<li><a href="/gnuplot?sql=select timestamp,rtt from ping where ip << inet '10.17/16' order by timestamp desc limit 1000">ttl from 10.17 network</a>
-</ul>
-
-Low-level API tests:
-
-<%= link_to 'HTTP ping' => 'ping_http' %>
-<%= link_to 'Gearman ping' => 'ping_g' %>
-
-@@ ping.html.ep
-% layout 'default';
-pong: <tt><%= $pong %>
-
-@@ gnuplot.html.ep
-% layout 'default';
-<%= form_for gnuplot => begin %>
- <%= text_area 'sql', cols => 80, rows => 5 %>
- <br>with <%= select_field with => [qw(dots points steps lines)], 'dots' %>
- <%= submit_button 'execute' %>
-<% end %>
-% if ( $img ) {
-<img src="<%= $img %>">
-% }
-<pre><%= $gnuplot %></pre>
-
-@@ layouts/default.html.ep
-<!doctype html><html>
-  <head><title><%= title %></title></head>
-  <body><%= content %></body>
-</html>