Parent Directory | Revision Log | Patch
revision 55 by dpavlin, Sun Apr 6 21:07:20 2008 UTC | revision 59 by dpavlin, Mon Apr 7 09:20:01 2008 UTC | |
---|---|---|
# | Line 35 template '/units' => page { | Line 35 template '/units' => page { |
35 | template 'toggle_edit' => sub { | template 'toggle_edit' => sub { |
36 | my $self = shift; | my $self = shift; |
37 | ||
38 | # don't show editing for anonymous users | |
39 | return unless $self->current_user->id; | |
40 | ||
41 | my $toggleedit = new_action( | my $toggleedit = new_action( |
42 | class => 'ToggleEdit', | class => 'ToggleEdit', |
43 | # moniker => 'toggle-edit', | # moniker => 'toggle-edit', |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |