This commit is contained in:
hamdy
2020-11-18 16:15:40 +02:00
parent fa9b5b67e5
commit 5f8af344c8
8 changed files with 50 additions and 187 deletions

View File

@@ -114,21 +114,13 @@
</div>
</div>
</section>
<div class="pagination flex justify-center mb-8">
<Pagination
:baseUrl="$page.project.path"
:currentPage="$page.project.belongsTo.pageInfo.currentPage"
:totalPages="$page.project.belongsTo.pageInfo.totalPages"
:maxVisibleButtons="5"
v-if="$page.project.belongsTo.pageInfo.totalPages > 1"
/>
</div>
</div>
</Layout>
</template>
<page-query>
query($id: ID!, $page:Int) {
query($id: ID!) {
project(id: $id) {
id
title
@@ -166,8 +158,8 @@
}
rank
excerpt
content
belongsTo(perPage: 5, page: $page) @paginate {
belongsTo {
totalCount
pageInfo {
totalPages
@@ -180,6 +172,13 @@
name
image(width:64, height:64, fit:inside)
path
project_ids{
id
title
path
logo
image
}
}
}
}