line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Data::Paging::Renderer::NavigationBar; |
2
|
1
|
|
|
1
|
|
831
|
use common::sense; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
7
|
|
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
1117
|
use parent 'Data::Paging::Renderer::Base'; |
|
1
|
|
|
|
|
397
|
|
|
1
|
|
|
|
|
6
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
sub render { |
7
|
2
|
|
|
2
|
0
|
10
|
my ($self, $collection) = @_; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
return +{ |
10
|
7
|
|
|
|
|
86
|
entries => $collection->sliced_entries, |
11
|
|
|
|
|
|
|
has_prev => $collection->has_prev, |
12
|
|
|
|
|
|
|
has_next => $collection->has_next, |
13
|
|
|
|
|
|
|
prev_page => $collection->prev_page, |
14
|
|
|
|
|
|
|
next_page => $collection->next_page, |
15
|
|
|
|
|
|
|
current_page => $collection->current_page, |
16
|
|
|
|
|
|
|
total_count => $collection->total_count, |
17
|
|
|
|
|
|
|
begin_count => $collection->begin_count, |
18
|
|
|
|
|
|
|
end_count => $collection->end_count, |
19
|
|
|
|
|
|
|
base_url => $collection->base_url, |
20
|
|
|
|
|
|
|
begin_navigation_page => $collection->begin_navigation_page, |
21
|
|
|
|
|
|
|
end_navigation_page => $collection->end_navigation_page, |
22
|
|
|
|
|
|
|
navigation => [ |
23
|
2
|
|
|
|
|
8
|
map { +{ page_number => $_} } @{$collection->navigation} |
|
2
|
|
|
|
|
6
|
|
24
|
|
|
|
|
|
|
], |
25
|
|
|
|
|
|
|
}; |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |