/[SysIface]/templates/example/welcome.html.epl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /templates/example/welcome.html.epl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 6 by dpavlin, Tue Jun 16 20:01:10 2009 UTC revision 7 by dpavlin, Wed Jun 17 11:28:12 2009 UTC
# Line 8  to reload the page or Line 8  to reload the page or
8  <a href="/index.html">here</a>  <a href="/index.html">here</a>
9  to move forward to a static page.  to move forward to a static page.
10    
11  % my $hostname = $self->param('hostname');  <%= $self->render_partial( template => 'commands' ); %>
   
 <form method=get>  
 <label  for=hostname>hostname  
 <input name=hostname type=text value="<%= $hostname %>">  
 </label>  
 <input type=submit value=run>  
 </form>  
   
 <h1><%= $hostname %></h1>  
   
 % foreach my $cmd ( @{ $self->stash('commands') } ) {  
 %       if ( $cmd =~ s{^(#+)\s*}{} ) {  
 %               my $l = length($1) + 1;  
 %= "<h$l>$cmd</h$l>"  
 %       } else {  
 %               my $run = $hostname ? "ssh $hostname $cmd" : $cmd;  
 <b><tt><%= $cmd %></tt></b><br>  
 <pre><%= `$run` %></pre>  
 %       }  
 % }  

Legend:
Removed from v.6  
changed lines
  Added in v.7

  ViewVC Help
Powered by ViewVC 1.1.26