Merge lp://staging/~widelands-dev/widelands-website/pybb_attachments into lp://staging/widelands-website
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 549 | ||||||||
Proposed branch: | lp://staging/~widelands-dev/widelands-website/pybb_attachments | ||||||||
Merge into: | lp://staging/widelands-website | ||||||||
Diff against target: |
947 lines (+425/-111) 16 files modified
mainpage/settings.py (+46/-5) mainpage/validators.py (+30/-0) pip_requirements.txt (+1/-0) pybb/admin.py (+9/-2) pybb/forms.py (+20/-13) pybb/models.py (+14/-11) pybb/settings.py (+1/-0) pybb/static/css/forum.css (+4/-1) pybb/templates/pybb/base.html (+1/-1) pybb/templates/pybb/delete_post.html (+7/-2) pybb/templates/pybb/inlines/attachment.html (+11/-0) pybb/templates/pybb/inlines/post.html (+5/-9) pybb/templates/pybb/post_form.html (+39/-1) pybb/util.py (+149/-1) pybb/views.py (+46/-27) wlmaps/forms.py (+42/-38) |
||||||||
To merge this branch: | bzr merge lp://staging/~widelands-dev/widelands-website/pybb_attachments | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
GunChleoc | Approve | ||
kaputtnik (community) | Needs Resubmitting | ||
Review via email: mp+370342@code.staging.launchpad.net |
Commit message
Allow attachments in the forum
Description of the change
Made attachments python3 compatible: https:/
Set allowed file size to 5 Mb (as we have for nginx)
Delete attachment when deleting a post: https:/
Added template for showing attachments.
Style tweaks, example: https:/
Autoreload css for the users if this got merged, so the users don't have to hit CTRL+F5
I'll do some explanations in the wiki and announce this change. Probably with the option to remove it again if we get too many problematic attachments.
Code LGTM. Do we have a restriction on file types? We won't want people to upload malicious JavaScript ans stuff lie that, so we should have a list of legal file extensions at least.