From: Matt S Trout Date: Tue, 19 Jul 2011 23:22:16 +0000 (+0000) Subject: switch FilterBuilder to short form X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FApp-IdiotBox.git;a=commitdiff_plain;h=fb836c4beb4fa318ed17208e2ca32ea63f028157 switch FilterBuilder to short form --- diff --git a/lib/App/IdiotBox.pm b/lib/App/IdiotBox.pm index af5bc38..b1fc058 100644 --- a/lib/App/IdiotBox.pm +++ b/lib/App/IdiotBox.pm @@ -87,9 +87,9 @@ sub show_front_page { sub { $_->select('.bucket-name')->replace_content($obj->bucket->name) ->select('.made-at')->replace_content($obj->made_at) - ->select('.bucket-link')->set_attribute({ - name => 'href', value => $obj->bucket->slug.'/' - }) + ->select('.bucket-link')->set_attribute( + 'href' => $obj->bucket->slug.'/' + ) ->select('.new-videos')->replace_content($obj->video_count) ->select('.total-videos')->replace_content( $obj->bucket->video_count @@ -110,7 +110,7 @@ sub show_bucket { $_->select('.video-name')->replace_content($video->name) ->select('.video-author')->replace_content($video->author) ->select('.video-link')->set_attribute( - { name => 'href', value => $video->slug.'/' } + href => $video->slug.'/' ) } })) @@ -132,7 +132,7 @@ sub show_video { $_->select('.video-name')->replace_content($video->name) ->select('.author-name')->replace_content($video->author) ->select('.bucket-link')->set_attribute( - { name => 'href', value => '../' } + href => '../' ) ->select('.bucket-name')->replace_content($video->bucket->name) ->select('.video-details')->replace_content($video->details)