Wykres commitów

342 Commity (659cce75a5aca6b5daaaca3c2667a0055c2abfac)

Autor SHA1 Wiadomość Data
Matt Westcott 659cce75a5 Add django-debug-toolbar
Add django-debug-toolbar, disabled by default (because not everyone will want it and it's a performance hit). It frequently comes in useful during Wagtail core dev, but having to make local changes to bakerydemo means that we perhaps don't use it as much as we should...
2021-07-21 15:07:17 +01:00
Matt Westcott 6f7406b4a5 Update urlconf to use django-2-style paths 2021-07-20 12:15:24 +01:00
Matt Westcott 1a40b54993 upgrade to elasticsearch 5 2021-04-19 12:54:57 +01:00
Matt Westcott e82c84b6a3 Fix collection paths for alphabetical ordering
Required for Wagtail 2.11 compatibility, as per https://github.com/wagtail/wagtail/pull/6417
2020-09-30 15:30:52 +01:00
Matt Westcott 2e3b59c8c4 Remove legacy rich text image styles
The `<div class="rich-text">` wrapper around rich text was disabled by default in Wagtail 2.10 (https://docs.wagtail.io/en/stable/releases/2.10.html#div-class-rich-text-wrappers-removed-from-rich-text) and we'd prefer not to enable the legacy handler, to encourage Wagtail developers to follow current best practice.

There is already a `width: 100%` rule in place for all img elements, and since an image with `width: 100%` but no `height: auto` would render with the wrong aspect ratio, it's reasonable to assume that no images on the site rely on `height: auto` being absent. Adding this to the `img` rule therefore makes the `rich-text` rule redundant.

The `width: 100%` also meant that the left/right-alignment options for rich text images had no effect - we add a `width: 50%` to those to make them meaningful again.

Finally, the responsive-object wrapper for media embeds was dropped in 2.9, so those rules are unused since then. Anyone who feels strongly about restoring responsive embeds is welcome to contribute a PR :-)
2020-08-26 10:20:36 +10:00
Matt Westcott 1fa7cdccd2 populate FormField.clean_name in initial data 2020-08-17 12:20:47 +01:00
Cynthia Kiser 5d255cd535 upgrade to Wagtail 2.10 2020-08-17 11:43:18 +01:00
Cynthia Kiser d9d02d9317 Add an example local.py for use with docker-wagtail-develop 2020-08-04 14:28:28 +01:00
Karl Hobley 82cbbfb09b Minor spelling fixes in fixture 2020-07-06 09:33:46 +01:00
Thibaud Colas 2ec4475f75
Allow all hosts to simplify cross-browser testing (#268) 2020-06-04 15:50:54 +01:00
jonndoe 20fdd22226 height :auto, for displaying images without distortion. 2020-05-11 21:51:41 +01:00
Thibaud Colas 30dcfd4dfd Remove useless "content" styles 2020-05-07 21:33:44 +01:00
Thibaud Colas fa35309371 Remove unneeded style override for nav pills items 2020-05-07 21:33:44 +01:00
Thibaud Colas 40faa0a16d Remove unnecessary flex for no-gutters 2020-05-07 21:33:44 +01:00
Thibaud Colas 2ed2d9408c Reset form elements border regardless of viewport 2020-05-07 21:33:44 +01:00
Thibaud Colas 9490524008 Make whole bread list item a link 2020-05-07 21:33:44 +01:00
Thibaud Colas e2c6f3b09e Change selectors to make !important unnecessary 2020-05-07 21:33:44 +01:00
Thibaud Colas cf81da5db4 Clean up input width definitions 2020-05-07 21:33:44 +01:00
Thibaud Colas cb271fc3ae Fix off-by-one media utility media query 2020-05-07 21:33:44 +01:00
Edd Baldry a4f8d887ea Adds 1px border to form page input fields on mobile touch #139 2020-05-07 21:33:44 +01:00
Edd Baldry dd7bb19afe Amend mobile menu to not display child items 2020-05-07 21:33:44 +01:00
Edd Baldry 4760216ec8 Add global mobile menu style 2020-05-07 21:33:44 +01:00
Edd Baldry 6afa3127a1 Amend mobile styles for global hero, main menu, breads index, locations index and breads detail page 2020-05-07 21:33:44 +01:00
Edd Baldry 53fe8e8e6d Wrap elements with 12-col div as per other detail pages 2020-05-07 21:33:44 +01:00
Edd Baldry fadcc373f5 Use consistent hero image include 2020-05-07 21:33:44 +01:00
Matt Westcott 3372510e60 Remove use of request.site / SiteMiddleware 2020-05-05 12:27:58 +01:00
Matt Westcott 5dd8afb3d3 Update API imports for Wagtail 2.8 2020-02-11 09:43:45 +00:00
Matt Westcott de6876d452 Upgrade whitenoise to 5.0.x for Django 3.0 compatibility 2020-02-03 16:33:42 +00:00
Andy Babic ef50e188e1 Use search_fields and list_filter on ModelAdmin classes to make features easier to test (for things like accessibility) (#262) 2020-01-23 15:34:45 +00:00
Caitlin White 48ed8a06e7 Make site work offline by self-hosting webfonts, jQuery, Bootstrap etc. (#261)
* Self-host Bootstrap and jQuery

* Self-host Google fonts (via https://google-webfonts-helper.herokuapp.com/fonts)

* Use wagtailfontawesome package for Font Awesome Icons on front end

* Self-host HTML5 Shiv and Respond.js

* Add Bootstrap Glyphicons font files and change name of static fonts directory
2019-11-06 09:10:39 -05:00
Tobias McNulty d06f1d0f97
copy files from fixtures dir to MEDIA_ROOT (or remote storage) during load_initial_data (#255)
Note: This change will require any existing deployments to manually copy
bakerydemo/base/fixtures/media/original_images/ into bakerydemo/media/
2019-11-05 21:29:52 -05:00
Tobias McNulty d5d81129a1
fix class path for S3Boto3Storage (#260) 2019-10-19 18:58:09 -04:00
Tobias McNulty 02737b411b
add support for Google Cloud Storage (#256) 2019-10-19 18:57:43 -04:00
Tobias McNulty 7ee23ded4c add flake8 and fix a few formatting bugs 2019-09-12 16:04:38 +01:00
Tobias McNulty cab9e25474 add missing migration and check for them via Travis in the future 2019-09-12 16:02:59 +01:00
Matt Westcott 55db9f3e15 Remove redundant head-extra block from head.html
Fixes #248 - thanks to @linuxsoftware for the report.
2019-09-12 13:10:39 +01:00
Rupa Lahiri 47b883a4a4 Move demo app features from about page to readme. Fix #247 (#249) 2019-09-10 10:29:40 +01:00
Dan Swain 8e6dde3f03
Keep the year set to the current year 2019-07-27 13:32:16 -04:00
Karl Hobley 70ea9b1fae Update to boto3
This fixes S3 support
2019-07-25 12:22:46 +01:00
Chris 31c610316d Correct the html element main
Correct the HTML5 element 'content' to 'main'. 'content' is obsolete and wasn't meant to be used in ordinary HTML. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/content
2018-11-29 15:52:45 +00:00
David Ray de9cddd1fe Fixes #214 2018-07-23 18:32:51 +02:00
Matt Westcott 1fdf3411db Fix overlapping panels on Person name fields. Fixes #209 2018-07-15 10:17:30 +02:00
Paolo Dina 742448dcdd Fix search in People snippet. Fixes #205 2018-06-04 09:00:47 +01:00
Matt Westcott 0f11e0f208 Enable API 2018-05-29 09:44:04 +01:00
Matt Westcott 568588591a Enable sitemap 2018-05-29 09:44:04 +01:00
Matt Westcott 1aea7bca75 Fix image dimensions / file sizes in fixtures. Fixes #195 2018-05-22 20:44:48 +01:00
Matt Westcott df1257ef2b Use url_path to check for descendant pages in navigation tags
This ensures that they continue working on pages that have no routable URL. Fixes #180
2018-05-22 20:18:36 +01:00
J Rob Gant fd37ac9310 Remove _lpchecked and empty id attributes 2018-05-22 20:07:05 +01:00
J Rob Gant 51db5176b0 Standardize PROJECT_DIR and BASE_DIR with Django defaults. 2018-05-22 20:01:10 +01:00
Matt Westcott 261c1ee23f Upgrade to Wagtail 2.1 2018-05-22 20:01:10 +01:00