@@ -3,7 +3,6 @@ import Back from "@components/Back/Back.astro";
3
3
import RowCard from " @components/RowCard/RowCard.astro" ;
4
4
import { getCollection } from " astro:content" ;
5
5
import { default as Layout } from " src/layouts/Content/Content.astro" ;
6
- import Pagination from " @components/Pagination/Pagination.astro" ;
7
6
const evaluations = await getCollection (" evaluations" );
8
7
9
8
const courseCodes = {
@@ -12,10 +11,7 @@ const courseCodes = {
12
11
13
12
const comp2804Evaluations = evaluations
14
13
.filter ((evaluation ) => evaluation .data .course === " comp2804" )
15
- .sort ((a , b ) => Number (b .data .created_at ) - Number (a .data .created_at ))
16
- .slice (0 , 8 );
17
-
18
- const numberOfPages = Math .ceil (comp2804Evaluations .length / 8 );
14
+ .sort ((a , b ) => Number (b .data .created_at ) - Number (a .data .created_at ));
19
15
---
20
16
21
17
<Layout title =" Evaluations" >
@@ -49,22 +45,6 @@ const numberOfPages = Math.ceil(comp2804Evaluations.length / 8);
49
45
))
50
46
}
51
47
</div >
52
- <Pagination
53
- pagination ={ {
54
- pageNumber: 1 ,
55
- totalPages: numberOfPages ,
56
- hasPrev: false ,
57
- prev: { url: " " },
58
- hasNext: numberOfPages > 1 ,
59
- next: { url: " /evaluations/2" },
60
- first: { url: " /evaluations/1" },
61
- last: { url: ` /evaluations/${numberOfPages } ` },
62
- pagers: Array .from ({ length: numberOfPages }, (_ , i ) => ({
63
- pageNumber: i + 1 ,
64
- url: ` /evaluations/${i + 1 } ` ,
65
- })),
66
- }}
67
- />
68
48
</Layout >
69
49
70
50
<style >
0 commit comments