implement changes filter
[MojoFacets.git] / templates / changes / index.html.ep
1 % layout 'default';
2 <h2><%= $message %></h2>
3
4 <form class=action_filter>
5 <input type=submit value="Filter changes">
6 <ul>
7 % foreach my $type ( sort keys %$actions ) {
8 <li><label>
9 <input type=checkbox name=action_filter value="<%= $type %>">
10 <%= $type %><span class=count><%= $actions->{$type} %></span>
11 </label>
12 % }
13 </ul>
14 <input type=submit value="Filter changes">
15 </form>
16
17 <ul>
18 % foreach my $change ( @$changes ) {
19 <li>
20 <%= $change->{t} %>
21 <a href="<%= url_for( controller => 'changes', action => 'view' )->query( uid => $change->{uid} ) %>"><%= $change->{action} %></a>
22 % }
23 </ul>
24
25 % my $more = ( $#$changes ) * 10;
26 Show <a href="<%= url_for( controller => 'changes', action => 'index' )->query( max => $more ) %>"><%= $more %> changes</a>
27