0687c8fb4d45e11d0a1ccfa3aaf4c38d93dfef7f
[MojoFacets.git] / templates / changes / edits.html.ep
1 % layout 'default';
2
3
4 % my $apply_on_path = param('apply_on_path');
5
6 <form method=post>
7 <input type=submit value="Apply"> on
8 <select name=apply_on_path>
9 % foreach my $p ( @$loaded ) {
10 <option<%= $p eq $apply_on_path ? ' selected' : '' %>><%= $p %></option>
11 % }
12 </select>
13 </form>
14
15 % if ( $apply_on_path ) {
16 <ul>
17 %  foreach my $status ( keys %$stats ) {
18 <li><%= $status %> <span class=count><%= $stats->{$status} %></span>
19 %  }
20 </ul>
21 % }
22
23 % foreach my $e ( @$edits ) {
24 <div class="edit edit-<%= $e->{_status} || 'unknown' %>">
25 <span class="edit-options">
26 <a href="<%= url_for( action => 'edit' )->query( remove => $e->{time} ) %>">remove</a>
27 %  if ( my $status = $e->{_status} ) {
28 <div title="status">
29 <%= $status %>
30 </div>
31 %  }
32 </span>
33 <pre class=debug><%= dumper $e %></pre>
34 </div>
35 % }
36
37 <pre class=debug>
38 <%= dumper( $stats ) %>
39 </pre>