2019-03-08
-
Direct upload to S3 (#1076)
Files are now uploaded directly to S3 from the browser. The following steps need to be performed:
-
Update CORS-config for S3 bucket as described in
doc/setting_up_external_services.md
. -
nginx-upload-module
is no longer supported since the requests to create files no longer contain uploads. Corresponding Nginx configuration for Pageflow endpoints needs to be removed. Check whether thepaperclip-nginx-upload
io adapter is still needed.
-
-
Page DOM layout change (#1135)
Page headers are now have level 3 instead of level 2. There is a new helper which is recommended to render the default page header and content text.
ERB template based page types need to make the following changes to CSS class names in their page templates:
blackLayer
->black_layer
backgroundArea
->page_background
contentWrapper
->content_wrapper
videoWrapper
->uncropped_media_wrapper
The default header and content snippet
<div class="page_header"> <h2> <span class="tagline"><%= configuration['tagline'] %></span> <span class="title"><%= configuration['title'] %></span> <span class="subtitle"><%= configuration['subtitle'] %></span> </h2> <%= background_image_tag(configuration['background_image_id'], {class: "print_image"}) %> </div> <div class="contentText"> <p><%= raw configuration['text'] %></p> </div>
should be replaced with the following helper call:
<%= page_default_content(page) %>
-
Direct upload to S3 (#1132)
Files are now uploaded directly to S3 from the browser. The state machine defined by
HostedFile
therefore no longer includes states likeuploading_to_s3
. Files which are be in stateuploading_to_s3_failed
have to be migrated to theuploading_failed
state. See the migrations inside the PR for examples.
- Add shared specs to pageflow-support to lint page types (#1133)
- Increase max length for page tagline, title and subtitles (#1131)
- Include text in navigation bar links (#1129)
See 13-x-stable branch for previous changes.