Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
4d8314ae
Commit
4d8314ae
authored
Nov 03, 2016
by
Regis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move last to computed
parent
0c15bbad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
app/assets/javascripts/vue_pipelines_index/vue_gl_pagination.vue.js.es6
...ascripts/vue_pipelines_index/vue_gl_pagination.vue.js.es6
+4
-9
No files found.
app/assets/javascripts/vue_pipelines_index/vue_gl_pagination.vue.js.es6
View file @
4d8314ae
...
...
@@ -3,11 +3,6 @@
((gl) => {
gl.VueGlPagination = Vue.extend({
data() {
return {
last: Math.ceil(+this.count / 5),
};
},
props: [
'changepage',
'pages',
...
...
@@ -21,6 +16,9 @@
},
},
computed: {
last() {
return Math.ceil(+this.count / 5)
},
lastpage() {
return `pipelines?p=${this.last}`;
},
...
...
@@ -38,10 +36,7 @@
},
template: `
<div class="gl-pagination">
<ul
class="pagination clearfix"
v-for='n in upcount'
>
<ul class="pagination clearfix" v-for='n in upcount'>
<li class="prev disabled" v-if='n === 1'>
<span>Prev</span>
</li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment