Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

this moved

  • Loading branch information...
commit f4d204557196126ebb9e6b8183de99358b3e509d 1 parent 07cedca
lestrrat lestrrat authored
16 plugins/Pixis-Plugin-Event/lib/Pixis/Web/Controller/Event/Track.pm
@@ -2,7 +2,6 @@
2 2 package Pixis::Web::Controller::Event::Track;
3 3 use strict;
4 4 use base qw(Catalyst::Controller::HTML::FormFu);
5   -use DateTime::Format::Strptime;
6 5
7 6 sub load_track :Chained('/event/load_event')
8 7 :PathPart('track')
@@ -50,19 +49,4 @@ sub view_default :Chained('load_track')
50 49 $c->res->redirect($c->uri_for('/event', $c->stash->{event}->id, 'track', $c->stash->{track}->id, $dates[0]->date));
51 50 }
52 51
53   -my $fmt = DateTime::Format::Strptime->new(pattern => '%Y-%m-%d', time_zone => 'local');
54   -sub view :Chained('load_track')
55   - :Args(1)
56   - :PathPart('')
57   -{
58   - my ($self, $c, $date) = @_;
59   -
60   - $c->stash->{date} = $fmt->parse_datetime($date);
61   - my $d = Pixis::Registry->get(api => 'EventDate')->load_from_event_date({ event_id => $c->stash->{event}->id, date => $date });
62   - $d->start_on =~ /^(\d+)/;
63   - $c->stash->{start_hour} = int( $1 );
64   - $d->end_on =~ /^(\d+)/;
65   - $c->stash->{end_hour} = int( $1 );
66   -}
67   -
68 52 1;

0 comments on commit f4d2045

Please sign in to comment.
Something went wrong with that request. Please try again.