Skip to content

Truncate page numbering on Review pages (T186497)#115

Merged
jsnshrmn merged 5 commits intoWikipediaLibrary:masterfrom
uyscuti-wiki:page-fix
Jul 18, 2018
Merged

Truncate page numbering on Review pages (T186497)#115
jsnshrmn merged 5 commits intoWikipediaLibrary:masterfrom
uyscuti-wiki:page-fix

Conversation

@uyscuti-wiki
Copy link
Copy Markdown
Contributor

Limited the number of pages displayed on the review page.

@uyscuti-wiki
Copy link
Copy Markdown
Contributor Author

uyscuti-wiki commented Jul 14, 2018

Once you get to page 10, the format will be - Previous page, 1, 2, 3, ..., 9, 10 (focused), 11, Next page, Last page. Similarly for the pages further. When you get to the last page, there will be no next page number, next page button itself will be disabled and so will the Last page button.

@Samwalton9
Copy link
Copy Markdown
Member

When on a page lower than 10, it's not obvious that there are more than 10 pages. Maybe there could be a ... and then the last few page numbers before 'Next page'? That should probably always be the case actually, so it's more like 1 2 3 ... 12 13 14 ... 26 27 28 (assuming there are 28 pages). That way the user always has context of the maximum number of pages.

@uyscuti-wiki
Copy link
Copy Markdown
Contributor Author

uyscuti-wiki commented Jul 16, 2018

A user will now be able to skip 9-11 pages at a time. Including the last three pages is possible, but I'd go with only one (to reduce clutter). Being able to skip pages is more practical, don't you think? Given the fact that we always link to the last page.

if the last page isn't displayed, which is most of the time, a '...' before 'Next page' is shown
@uyscuti-wiki
Copy link
Copy Markdown
Contributor Author

should now display '...' at the end signifying there's more

@jsnshrmn jsnshrmn self-requested a review July 18, 2018 12:30
Copy link
Copy Markdown
Member

@jsnshrmn jsnshrmn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Functionally, this looks pretty good to me. Legibility-wise, the indentation is problematic. Make sure that the opening and closing tags for your conditional and loop blocks have the same level of indentation. Please collapse some of the newlines for nested li and a elements. There's enough going on here now that it would be helpful if you dropped a brief comment just ahead of each conditional block describing the aims of that bit of logic.

Comment thread TWLight/applications/templates/applications/application_list.html Outdated
Comment thread TWLight/applications/templates/applications/application_list.html Outdated
Comment thread TWLight/applications/templates/applications/application_list.html Outdated
Comment thread TWLight/applications/templates/applications/application_list.html Outdated
Comment thread TWLight/applications/templates/applications/application_list.html Outdated
comment on conditional blocks, fix indents, few cleanups
@jsnshrmn
Copy link
Copy Markdown
Member

Looks great!

@jsnshrmn jsnshrmn merged commit 5f24066 into WikipediaLibrary:master Jul 18, 2018
@uyscuti-wiki uyscuti-wiki deleted the page-fix branch July 18, 2018 15:35
@uyscuti-wiki
Copy link
Copy Markdown
Contributor Author

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants