Merge lp:~widelands-dev/widelands-website/iso_date_image_options into lp:widelands-website
Status: | Merged | ||||||||
---|---|---|---|---|---|---|---|---|---|
Merged at revision: | 402 | ||||||||
Proposed branch: | lp:~widelands-dev/widelands-website/iso_date_image_options | ||||||||
Merge into: | lp:widelands-website | ||||||||
Diff against target: |
93 lines (+39/-8) 4 files modified
media/css/wiki.css (+19/-0) settings.py (+1/-1) templates/wiki/edit.html (+16/-4) wlprofile/templatetags/custom_date.py (+3/-3) |
||||||||
To merge this branch: | bzr merge lp:~widelands-dev/widelands-website/iso_date_image_options | ||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
SirVer | Approve | ||
kaputtnik (community) | Needs Resubmitting | ||
Review via email: mp+282653@code.launchpad.net |
Description of the change
Changing date to ISO 8601 (YYYY-MM-DD) for not logged in users. For logged in users the settings are used which they set through user settings. New users will become the ISO 8601 format until they change the setting in their user profile.
Images in wiki could now be left/right/center aligned. The "Code to include" (shown under each image when editing an article) shows the new options for easy copy and paste. The new options appear only if the image has a width lower 700 pixel.
A width could also be applied if the code is edited by hand. F.e.
![waterfall_
where "50" is the width in pixel. Values in percent wouldn't work because percentages rely on the width of the element which contain the image. Images are placed in a <P></P>-Element which have the whole width of the article content. So using "50%" means half the size of the P-Element. So small images would be enlarged instead of scaled down.
Examples screenshots for aligning could be found in the forum post: https:/
Code LGTM - just one small nit.
Not tested.