/[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 4 by dpavlin, Tue Jun 16 19:47:21 2009 UTC revision 5 by dpavlin, Tue Jun 16 20:01:10 2009 UTC
# Line 17  to move forward to a static page. Line 17  to move forward to a static page.
17  <input type=submit value=run>  <input type=submit value=run>
18  </form>  </form>
19    
20    <h1><%= $hostname %></h1>
21    
22  % foreach my $cmd ( @{ $self->stash('commands') } ) {  % foreach my $cmd ( @{ $self->stash('commands') } ) {
23  %       my $run = $hostname ? "ssh $hostname $cmd" : $cmd;  %       if ( $cmd =~ s{^(#+)\s*}{} ) {
24    %               my $l = length($1) + 1;
25    %= "<h$l>$cmd</h$l>"
26    %       } else {
27    %               my $run = $hostname ? "ssh $hostname $cmd" : $cmd;
28  <b><tt><%= $cmd %></tt></b><br>  <b><tt><%= $cmd %></tt></b><br>
29  <pre><%= `$run` %></pre>  <pre><%= `$run` %></pre>
30    %       }
31  % }  % }

Legend:
Removed from v.4  
changed lines
  Added in v.5

  ViewVC Help
Powered by ViewVC 1.1.26