Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow reordering of screenshots #298

Open
gunchleoc opened this issue Sep 4, 2019 · 5 comments
Open

Allow reordering of screenshots #298

gunchleoc opened this issue Sep 4, 2019 · 5 comments

Comments

@gunchleoc
Copy link
Collaborator

gunchleoc commented Sep 4, 2019

At the moment, screenshots are shown in the order that they were uploaded. The order for Build 20 is less than ideal, but it can't be changed without reuploading everything.

So, I'd like a feature in the admin interface that allows reordering.


Imported from Launchpad using lp2gh.

@gunchleoc
Copy link
Collaborator Author

(by franku)
Good idea. We have to add a new integer field for the table then, e.g. 'position'.

To make it smart, e.g. to not have the same position twice when doing a reordering, this can be difficult, but should be doable.

Do you want it before the switch to python3?

@gunchleoc
Copy link
Collaborator Author

(by gunchleoc)
Having it soon would be nice :)

@gunchleoc
Copy link
Collaborator Author

gunchleoc commented Sep 4, 2019

(by franku)
I decided to not have it too smart. Instead you can edit each screenshot in the admin page for the category. Default position is always 0, order will be like before then.

First screenshot, note that this will be the view of a particular Category (eg. category 'Build 20'. You can also add new screenshots there.

category_admin

@gunchleoc
Copy link
Collaborator Author

(by franku)
We may want also to allow ordering of categories. Currently it is ordered by the name. This is no problem if we always have a name like 'Build x'. In the future one may has the idea to add a new category with name 'A new category'. With the current ordering this will be displayed below all other categories then.

@gunchleoc
Copy link
Collaborator Author

(by gunchleoc)
+1 to that - I'd say the move to Python 3 has higher priority though.

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

No branches or pull requests

2 participants