1 package MojoFacets::Changes;
6 use base 'Mojolicious::Controller';
14 foreach my $path ( glob '/tmp/changes/*' ) {
15 if ( $path =~ m{/((\d+\.\d+)\.data\.(.+))$} ) {
16 push @$changes, { uid => $1, t => $2, action => $3 };
18 warn "ignore: $path\n";
22 # Render template "changes/index.html.ep" with message
23 $self->render(message => 'Latest Changes', changes => $changes );
29 my $uid = $self->param('uid');
30 $self->render( change => retrieve( "/tmp/changes/$uid" ), uid => $uid );