From 3d824b3a3a93edfeec807a0e2809ce35687ff4c1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 21 Feb 2012 17:59:36 +0100 Subject: [PATCH] Indentation --- src/lib/Hydra/Controller/Jobset.pm | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/lib/Hydra/Controller/Jobset.pm b/src/lib/Hydra/Controller/Jobset.pm index 11131b20..e90570dd 100644 --- a/src/lib/Hydra/Controller/Jobset.pm +++ b/src/lib/Hydra/Controller/Jobset.pm @@ -20,6 +20,7 @@ sub jobset : Chained('/') PathPart('jobset') CaptureArgs(2) { or notFound($c, "Jobset $jobsetName doesn't exist."); } + sub jobsetIndex { my ($self, $c, $forceStatus) = @_; @@ -89,14 +90,16 @@ sub jobsetIndex { }) ]; } + sub index : Chained('jobset') PathPart('') Args(0) { - my ($self, $c) = @_; - jobsetIndex($self, $c, 0); + my ($self, $c) = @_; + jobsetIndex($self, $c, 0); } + sub indexWithStatus : Chained('jobset') PathPart('') Args(1) { - my ($self, $c, $forceStatus) = @_; - jobsetIndex($self, $c, 1); + my ($self, $c, $forceStatus) = @_; + jobsetIndex($self, $c, 1); } @@ -153,6 +156,7 @@ sub hide : Chained('jobset') PathPart Args(0) { [$c->stash->{project}->name])); } + sub unhide : Chained('jobset') PathPart Args(0) { my ($self, $c) = @_; @@ -166,6 +170,7 @@ sub unhide : Chained('jobset') PathPart Args(0) { [$c->stash->{project}->name])); } + sub delete : Chained('jobset') PathPart Args(0) { my ($self, $c) = @_; @@ -293,6 +298,7 @@ sub clone : Chained('jobset') PathPart('clone') Args(0) { $c->stash->{template} = 'clone-jobset.tt'; } + sub clone_submit : Chained('jobset') PathPart('clone/submit') Args(0) { my ($self, $c) = @_; @@ -324,7 +330,6 @@ sub clone_submit : Chained('jobset') PathPart('clone/submit') Args(0) { }); $c->res->redirect($c->uri_for($c->controller('Jobset')->action_for("edit"), [$jobset->project->name, $newjobsetName])); - }