pageflow 0.9.2 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pageflow might be problematic. Click here for more details.
- checksums.yaml +5 -13
- data/CHANGELOG.md +193 -11
- data/README.md +9 -1
- data/Rakefile +5 -0
- data/admins/pageflow/accounts.rb +2 -1
- data/admins/pageflow/entry.rb +21 -1
- data/admins/pageflow/revisions.rb +1 -1
- data/app/assets/fonts/pageflow/entypo-license.txt +358 -0
- data/app/assets/fonts/pageflow/fontawesome-license.txt +1 -0
- data/app/assets/fonts/pageflow/sourcesanspro-bold-webfont.eot +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-bold-webfont.svg +1236 -194
- data/app/assets/fonts/pageflow/sourcesanspro-bold-webfont.ttf +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-bold-webfont.woff +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-license.txt +93 -0
- data/app/assets/fonts/pageflow/sourcesanspro-light-webfont.eot +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-light-webfont.svg +1153 -839
- data/app/assets/fonts/pageflow/sourcesanspro-light-webfont.ttf +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-light-webfont.woff +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-regular-webfont.eot +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-regular-webfont.svg +1252 -199
- data/app/assets/fonts/pageflow/sourcesanspro-regular-webfont.ttf +0 -0
- data/app/assets/fonts/pageflow/sourcesanspro-regular-webfont.woff +0 -0
- data/app/assets/javascripts/pageflow/base.js +2 -0
- data/app/assets/javascripts/pageflow/browser/agent.js +25 -0
- data/app/assets/javascripts/pageflow/browser/css_animations.js +18 -0
- data/app/assets/javascripts/pageflow/browser/mobile_platform.js +1 -4
- data/app/assets/javascripts/pageflow/browser/video.js +8 -1
- data/app/assets/javascripts/pageflow/chapter_filter.js +6 -16
- data/app/assets/javascripts/pageflow/editor/api.js +6 -2
- data/app/assets/javascripts/pageflow/editor/api/page_type.js +12 -0
- data/app/assets/javascripts/pageflow/editor/base.js +4 -0
- data/app/assets/javascripts/pageflow/editor/collections/chapter_pages_collection.js +4 -1
- data/app/assets/javascripts/pageflow/editor/collections/chapters_collection.js +1 -5
- data/app/assets/javascripts/pageflow/editor/collections/mixins/add_and_return_model.js +11 -0
- data/app/assets/javascripts/pageflow/editor/collections/mixins/ordered_collection.js +6 -4
- data/app/assets/javascripts/pageflow/editor/collections/ordered_page_links_collection.js +9 -0
- data/app/assets/javascripts/pageflow/editor/collections/page_links_collection.js +78 -0
- data/app/assets/javascripts/pageflow/editor/collections/pages_collection.js +9 -3
- data/app/assets/javascripts/pageflow/editor/collections/storyline_chapters_collection.js +35 -0
- data/app/assets/javascripts/pageflow/editor/collections/storylines_collection.js +33 -0
- data/app/assets/javascripts/pageflow/editor/controllers/sidebar_controller.js +19 -2
- data/app/assets/javascripts/pageflow/editor/initializers/edit_lock.js +1 -1
- data/app/assets/javascripts/pageflow/editor/initializers/setup_collections.js +11 -0
- data/app/assets/javascripts/pageflow/editor/initializers/setup_common_seed.js +3 -0
- data/app/assets/javascripts/pageflow/editor/initializers/stylesheet_reloading.js +11 -0
- data/app/assets/javascripts/pageflow/editor/models/chapter.js +14 -7
- data/app/assets/javascripts/pageflow/editor/models/chapter_scaffold.js +13 -0
- data/app/assets/javascripts/pageflow/editor/models/edit_lock_container.js +4 -4
- data/app/assets/javascripts/pageflow/editor/models/entry.js +33 -4
- data/app/assets/javascripts/pageflow/editor/models/mixins/persited_promise.js +18 -0
- data/app/assets/javascripts/pageflow/editor/models/page.js +4 -0
- data/app/assets/javascripts/pageflow/editor/models/page_link.js +37 -0
- data/app/assets/javascripts/pageflow/editor/models/page_link_file_selection_handler.js +14 -0
- data/app/assets/javascripts/pageflow/editor/models/preview_entry_data.js +15 -0
- data/app/assets/javascripts/pageflow/editor/models/scaffold.js +26 -0
- data/app/assets/javascripts/pageflow/editor/models/storyline.js +99 -0
- data/app/assets/javascripts/pageflow/editor/models/storyline_configuration.js +15 -0
- data/app/assets/javascripts/pageflow/editor/models/storyline_ordering.js +117 -0
- data/app/assets/javascripts/pageflow/editor/models/storyline_scaffold.js +23 -0
- data/app/assets/javascripts/pageflow/editor/models/storyline_transitive_child_pages.js +33 -0
- data/app/assets/javascripts/pageflow/editor/routers/sidebar_router.js +3 -0
- data/app/assets/javascripts/pageflow/editor/templates/edit_entry.jst.ejs +1 -6
- data/app/assets/javascripts/pageflow/editor/templates/edit_page_link.jst.ejs +3 -0
- data/app/assets/javascripts/pageflow/editor/templates/edit_storyline.jst.ejs +12 -0
- data/app/assets/javascripts/pageflow/editor/templates/page_link_item.jst.ejs +1 -0
- data/app/assets/javascripts/pageflow/editor/templates/page_selection.jst.ejs +2 -2
- data/app/assets/javascripts/pageflow/editor/templates/storyline_outline.jst.ejs +4 -0
- data/app/assets/javascripts/pageflow/editor/templates/storyline_picker.jst.ejs +7 -0
- data/app/assets/javascripts/pageflow/editor/utils/reload_stylesheet.js +9 -0
- data/app/assets/javascripts/pageflow/editor/views/configuration_editors/groups/options.js +2 -2
- data/app/assets/javascripts/pageflow/editor/views/configuration_editors/groups/page_link.js +10 -0
- data/app/assets/javascripts/pageflow/editor/views/edit_chapter_view.js +0 -4
- data/app/assets/javascripts/pageflow/editor/views/edit_entry_view.js +9 -15
- data/app/assets/javascripts/pageflow/editor/views/edit_meta_data_view.js +14 -6
- data/app/assets/javascripts/pageflow/editor/views/edit_page_link_view.js +47 -0
- data/app/assets/javascripts/pageflow/editor/views/edit_storyline_view.js +97 -0
- data/app/assets/javascripts/pageflow/editor/views/editor_view.js +6 -3
- data/app/assets/javascripts/pageflow/editor/views/entry_preview_view.js +13 -7
- data/app/assets/javascripts/pageflow/editor/views/file_item_view.js +1 -1
- data/app/assets/javascripts/pageflow/editor/views/inputs/page_link_input_view.js +3 -1
- data/app/assets/javascripts/pageflow/editor/views/locked_view.js +3 -3
- data/app/assets/javascripts/pageflow/editor/views/mixins/loadable.js +1 -1
- data/app/assets/javascripts/pageflow/editor/views/page_item_view.js +2 -0
- data/app/assets/javascripts/pageflow/editor/views/page_link_configuration_editor_view.js +7 -0
- data/app/assets/javascripts/pageflow/editor/views/page_link_item_view.js +8 -1
- data/app/assets/javascripts/pageflow/editor/views/page_preview_view.js +1 -1
- data/app/assets/javascripts/pageflow/editor/views/page_selection_view.js +13 -12
- data/app/assets/javascripts/pageflow/editor/views/storyline_outline_view.js +33 -0
- data/app/assets/javascripts/pageflow/editor/views/storyline_picker_view.js +114 -0
- data/app/assets/javascripts/pageflow/entry_data.js +38 -4
- data/app/assets/javascripts/pageflow/highlighted_page.js +5 -5
- data/app/assets/javascripts/pageflow/history.js +1 -1
- data/app/assets/javascripts/pageflow/native_scrolling.js +14 -0
- data/app/assets/javascripts/pageflow/page_transitions.js +3 -1
- data/app/assets/javascripts/pageflow/page_type.js +2 -0
- data/app/assets/javascripts/pageflow/ready.js +4 -1
- data/app/assets/javascripts/pageflow/seed_entry_data.js +28 -1
- data/app/assets/javascripts/pageflow/slideshow.js +11 -8
- data/app/assets/javascripts/pageflow/slideshow/dom_order_scroll_navigator.js +93 -8
- data/app/assets/javascripts/pageflow/slideshow/hidden_text_indicator_widget.js +5 -3
- data/app/assets/javascripts/pageflow/slideshow/lazy_page_widget.js +4 -0
- data/app/assets/javascripts/pageflow/slideshow/page_widget.js +15 -6
- data/app/assets/javascripts/pageflow/ui/templates/tooltip.jst.ejs +2 -0
- data/app/assets/javascripts/pageflow/ui/views/inputs/text_area_input_view.js +17 -4
- data/app/assets/javascripts/pageflow/ui/views/mixins/tooltip_container.js +42 -0
- data/app/assets/javascripts/pageflow/ui/views/tooltip_view.js +49 -0
- data/app/assets/javascripts/pageflow/video_player.js +2 -2
- data/app/assets/javascripts/pageflow/video_player/{filter_for_silk.js → filter_sources.js} +2 -2
- data/app/assets/javascripts/pageflow/widgets/navigation.js +17 -14
- data/app/assets/javascripts/pageflow/widgets/navigation_mobile.js +7 -2
- data/app/assets/javascripts/pageflow/widgets/overview.js +9 -6
- data/app/assets/javascripts/pageflow/widgets/page_navigation_list.js +51 -13
- data/app/assets/javascripts/pageflow/widgets/page_navigation_list_animation.js +48 -0
- data/app/assets/javascripts/pageflow/widgets/parent_page_button.js +9 -2
- data/app/assets/stylesheets/pageflow/admin.css.scss +2 -15
- data/app/assets/stylesheets/pageflow/admin/features.scss +5 -0
- data/app/assets/stylesheets/pageflow/admin/forms.scss +18 -0
- data/app/assets/stylesheets/pageflow/animations.css.scss +1 -0
- data/app/assets/stylesheets/pageflow/animations/navigation_bar.scss +89 -0
- data/app/assets/stylesheets/pageflow/delayed_text_fade_in.css.scss +1 -1
- data/app/assets/stylesheets/pageflow/editor/base.css.scss +5 -0
- data/app/assets/stylesheets/pageflow/editor/menu.css.scss +1 -0
- data/app/assets/stylesheets/pageflow/editor/outline.css.scss +5 -0
- data/app/assets/stylesheets/pageflow/editor/page_links.css.scss +9 -1
- data/app/assets/stylesheets/pageflow/editor/page_selection.css.scss +7 -1
- data/app/assets/stylesheets/pageflow/editor/storyline_picker.css.scss +32 -0
- data/app/assets/stylesheets/pageflow/extendables.scss +26 -0
- data/app/assets/stylesheets/pageflow/mixins/pageflow.css.scss +25 -0
- data/app/assets/stylesheets/pageflow/navigation_bar.css.scss +64 -4
- data/app/assets/stylesheets/pageflow/navigation_mobile.css.scss +56 -0
- data/app/assets/stylesheets/pageflow/page_transitions.css.scss +4 -1
- data/app/assets/stylesheets/pageflow/page_transitions/scroll_over_from_left.scss +12 -0
- data/app/assets/stylesheets/pageflow/page_transitions/scroll_over_from_right.scss +12 -0
- data/app/assets/stylesheets/pageflow/page_types/video.css.scss +5 -1
- data/app/assets/stylesheets/pageflow/themes/default/page.css.scss +180 -42
- data/app/assets/stylesheets/pageflow/ui.css.scss +1 -0
- data/app/assets/stylesheets/pageflow/ui/forms.css.scss +11 -2
- data/app/assets/stylesheets/pageflow/ui/input/extended_select_input.css.scss +1 -0
- data/app/assets/stylesheets/pageflow/ui/tabs_view.css.scss +0 -3
- data/app/assets/stylesheets/pageflow/ui/tooltip.scss +57 -0
- data/app/controllers/concerns/pageflow/entry_password_protection.rb +13 -0
- data/app/controllers/pageflow/chapters_controller.rb +24 -9
- data/app/controllers/pageflow/edit_locks_controller.rb +2 -2
- data/app/controllers/pageflow/editor/files_controller.rb +0 -2
- data/app/controllers/pageflow/editor/widgets_controller.rb +1 -1
- data/app/controllers/pageflow/entries_controller.rb +5 -9
- data/app/controllers/pageflow/files_controller.rb +3 -0
- data/app/controllers/pageflow/storylines_controller.rb +69 -0
- data/app/helpers/pageflow/admin/features_helper.rb +17 -6
- data/app/helpers/pageflow/admin/widgets_helper.rb +18 -0
- data/app/helpers/pageflow/audio_files_helper.rb +2 -2
- data/app/helpers/pageflow/common_entry_seed_helper.rb +52 -0
- data/app/helpers/pageflow/entries_helper.rb +7 -1
- data/app/helpers/pageflow/entry_json_seed_helper.rb +27 -10
- data/app/helpers/pageflow/meta_tags_helper.rb +11 -0
- data/app/helpers/pageflow/page_types_helper.rb +9 -5
- data/app/helpers/pageflow/pages_helper.rb +9 -96
- data/app/helpers/pageflow/public_i18n_helper.rb +13 -0
- data/app/helpers/pageflow/social_share_helper.rb +1 -1
- data/app/helpers/pageflow/video_files_helper.rb +133 -0
- data/app/helpers/pageflow/widgets_helper.rb +3 -9
- data/app/models/concerns/pageflow/feature_target.rb +21 -3
- data/app/models/concerns/pageflow/hosted_file.rb +4 -0
- data/app/models/pageflow/account.rb +2 -2
- data/app/models/pageflow/chapter.rb +4 -4
- data/app/models/pageflow/chapter_scaffold.rb +33 -0
- data/app/models/pageflow/cname_theming_request_scope.rb +7 -1
- data/app/models/pageflow/draft_entry.rb +13 -2
- data/app/models/pageflow/edit_lock.rb +2 -2
- data/app/models/pageflow/entry.rb +3 -2
- data/app/models/pageflow/image_file.rb +6 -0
- data/app/models/pageflow/published_entry.rb +13 -2
- data/app/models/pageflow/revision.rb +17 -4
- data/app/models/pageflow/storyline.rb +23 -0
- data/app/models/pageflow/storyline_scaffold.rb +27 -0
- data/app/models/pageflow/theming.rb +4 -0
- data/app/models/pageflow/widget.rb +16 -12
- data/app/views/admin/accounts/_form.html.erb +8 -12
- data/app/views/admin/accounts/_widgets_inline_help.html.erb +5 -0
- data/app/views/layouts/pageflow/application.html.erb +4 -1
- data/app/views/pageflow/admin/widgets/_fields.html.erb +9 -0
- data/app/views/pageflow/config/_editor_seeds.json.jbuilder +1 -1
- data/app/views/pageflow/editor/entries/_entry.json.jbuilder +2 -2
- data/app/views/pageflow/editor/entries/_other_entry.json.jbuilder +1 -0
- data/app/views/pageflow/editor/entries/index.json.jbuilder +1 -1
- data/app/views/pageflow/editor/entries/seed.json.erb +4 -1
- data/app/views/pageflow/editor/files/_file.json.jbuilder +4 -0
- data/app/views/pageflow/editor/themings/_theming.json.jbuilder +1 -0
- data/app/views/pageflow/entries/_entry.html.erb +2 -2
- data/app/views/pageflow/entries/_ie8_hint.html.erb +2 -2
- data/app/views/pageflow/entries/_indicators.html.erb +3 -3
- data/app/views/pageflow/entries/_mobile_navigation.html.erb +6 -5
- data/app/views/pageflow/entries/_multimedia_alert.html.erb +6 -6
- data/app/views/pageflow/entries/_non_js_hint.html.erb +1 -1
- data/app/views/pageflow/entries/_skip_links.html.erb +3 -3
- data/app/views/pageflow/entries/edit.html.erb +4 -2
- data/app/views/pageflow/entries/navigation/_bar_bottom.html.erb +6 -5
- data/app/views/pageflow/entries/navigation/_bar_top.html.erb +13 -13
- data/app/views/pageflow/entries/navigation/_home_button.html.erb +2 -2
- data/app/views/pageflow/entries/navigation/_page.html.erb +1 -1
- data/app/views/pageflow/entries/overview/_chapter.html.erb +1 -1
- data/app/views/pageflow/entries/overview/_entry.html.erb +7 -6
- data/app/views/pageflow/entries/share_menu/_facebook_link.html.erb +1 -1
- data/app/views/pageflow/entries/share_menu/_google_link.html.erb +1 -1
- data/app/views/pageflow/entries/share_menu/_twitter_link.html.erb +1 -1
- data/app/views/pageflow/entries/show.html.erb +4 -1
- data/app/views/pageflow/file_types/_thumbnails.css.erb +2 -0
- data/app/views/pageflow/meta_tags/_entry.html.erb +4 -0
- data/app/views/pageflow/pages/_page.html.erb +2 -2
- data/app/views/pageflow/pages/templates/_audio.html.erb +2 -2
- data/app/views/pageflow/pages/templates/_audio_loop.html.erb +1 -1
- data/app/views/pageflow/pages/templates/_background_video.html.erb +8 -3
- data/app/views/pageflow/pages/templates/_video.html.erb +9 -4
- data/app/views/pageflow/public_i18n/_javascript_tag.html.erb +5 -0
- data/app/views/pageflow/social_share/_entry_meta_tags.html.erb +1 -1
- data/app/views/pageflow/video_files/_script_tag.html.erb +3 -0
- data/app/views/pageflow/video_files/_video_file.html.erb +4 -1
- data/app/views/pageflow/video_files/_video_tag.html.erb +7 -0
- data/config/initializers/admin_resource_tabs.rb +1 -0
- data/config/initializers/features.rb +3 -1
- data/config/initializers/paperclip.rb +5 -0
- data/config/locales/de.yml +205 -601
- data/config/locales/en.yml +198 -405
- data/config/routes.rb +10 -2
- data/db/migrate/20150826125417_create_pageflow_storylines.rb +12 -0
- data/db/migrate/20150826125744_add_storyline_id_to_chapters.rb +6 -0
- data/db/migrate/20150826125745_insert_main_storylines.rb +28 -0
- data/db/migrate/20150830105831_remove_revision_id_from_chapters.rb +5 -0
- data/db/migrate/20150830110006_remove_entry_id_from_chapters.rb +5 -0
- data/db/migrate/20160201130118_add_additional_cnames_to_themings.rb +5 -0
- data/db/migrate/20160216130336_add_meta_fields_to_revision.rb +7 -0
- data/lib/generators/pageflow/initializer/templates/pageflow.rb +7 -0
- data/lib/pageflow/ability_mixin.rb +7 -1
- data/lib/pageflow/configuration.rb +27 -2
- data/lib/pageflow/engine.rb +4 -1
- data/lib/pageflow/features.rb +24 -0
- data/lib/pageflow/global_config_api.rb +1 -0
- data/lib/pageflow/seeds.rb +4 -2
- data/lib/pageflow/theme.rb +4 -0
- data/lib/pageflow/version.rb +1 -1
- data/spec/factories/chapters.rb +6 -3
- data/spec/factories/storylines.rb +13 -0
- metadata +1021 -928
- data/app/assets/fonts/pageflow/FranklinGothic-Demi-webfont.eot +0 -0
- data/app/assets/fonts/pageflow/FranklinGothic-Demi-webfont.svg +0 -768
- data/app/assets/fonts/pageflow/FranklinGothic-Demi-webfont.ttf +0 -0
- data/app/assets/fonts/pageflow/FranklinGothic-Demi-webfont.woff +0 -0
- data/app/assets/fonts/pageflow/FranklinGothic-Hvy-webfont.eot +0 -0
- data/app/assets/fonts/pageflow/FranklinGothic-Hvy-webfont.svg +0 -968
- data/app/assets/fonts/pageflow/FranklinGothic-Hvy-webfont.ttf +0 -0
- data/app/assets/fonts/pageflow/FranklinGothic-Hvy-webfont.woff +0 -0
- data/app/assets/fonts/pageflow/thesansboldplain.eot +0 -0
- data/app/assets/fonts/pageflow/thesansboldplain.svg +0 -228
- data/app/assets/fonts/pageflow/thesansboldplain.ttf +0 -0
- data/app/assets/fonts/pageflow/thesansboldplain.woff +0 -0
- data/app/assets/fonts/pageflow/thesanssemiboldplain.eot +0 -0
- data/app/assets/fonts/pageflow/thesanssemiboldplain.svg +0 -228
- data/app/assets/fonts/pageflow/thesanssemiboldplain.ttf +0 -0
- data/app/assets/fonts/pageflow/thesanssemiboldplain.woff +0 -0
- data/app/assets/javascripts/pageflow/browser/hashchange_support.js +0 -8
- data/app/assets/javascripts/pageflow/widgets/button.js +0 -22
- data/app/views/layouts/pageflow/_meta_tags.html.erb +0 -5
- data/app/views/pageflow/pages/_video_tag.html.erb +0 -13
@@ -3,10 +3,13 @@
|
|
3
3
|
<head>
|
4
4
|
<title><%= @page_title.presence || 'Pageflow' %></title>
|
5
5
|
|
6
|
+
<script>
|
7
|
+
window.PAGEFLOW_EDITOR = <%= @editor_scope ? 'true' : 'false' %>;
|
8
|
+
</script>
|
9
|
+
|
6
10
|
<%= javascript_include_tag "pageflow/application", "data-turbolinks-track" => true %>
|
7
11
|
|
8
12
|
<%= csrf_meta_tags %>
|
9
|
-
<%= render 'layouts/pageflow/meta_tags' %>
|
10
13
|
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, minimum-scale=1, maximum-scale=1" />
|
11
14
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
12
15
|
|
@@ -0,0 +1,9 @@
|
|
1
|
+
<% widgets.each do |widget| %>
|
2
|
+
<%= form.semantic_fields_for(widget) do |fields| %>
|
3
|
+
<%= fields.input(:type_name,
|
4
|
+
label: t(widget.role, scope: 'pageflow.widgets.roles'),
|
5
|
+
input_html: {name: "widgets[#{widget.role}]"},
|
6
|
+
include_blank: t('pageflow.widgets.none'),
|
7
|
+
collection: admin_widget_types_collection_for_role(config, widget.role)) %>
|
8
|
+
<% end %>
|
9
|
+
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
json.key_format!(camelize: :lower)
|
2
|
-
json.(Pageflow.config, :confirm_encoding_jobs, :available_locales)
|
2
|
+
json.(Pageflow.config, :confirm_encoding_jobs, :available_locales, :available_public_locales)
|
3
3
|
json.file_types(Pageflow.config.file_types, :collection_name, :type_name, :param_key, :i18n_key)
|
@@ -1,4 +1,4 @@
|
|
1
|
-
json.(entry, :id, :published_until, :slug, :enabled_feature_names)
|
1
|
+
json.(entry, :id, :entry_title, :published_until, :slug, :enabled_feature_names)
|
2
2
|
|
3
3
|
json.pretty_url pretty_entry_url(entry)
|
4
4
|
|
@@ -7,7 +7,7 @@ json.published(entry.published?)
|
|
7
7
|
json.password_protected(entry.password_digest.present?)
|
8
8
|
|
9
9
|
json.configuration do
|
10
|
-
json.(entry, :title, :summary, :credits, :manual_start, :emphasize_chapter_beginning, :emphasize_new_pages, :share_image_id, :share_image_x, :share_image_y, :locale)
|
10
|
+
json.(entry, :title, :summary, :credits, :author, :publisher, :keywords, :manual_start, :emphasize_chapter_beginning, :emphasize_new_pages, :share_image_id, :share_image_x, :share_image_y, :locale)
|
11
11
|
json.home_url entry.home_button.url_value
|
12
12
|
json.home_button_enabled entry.home_button.enabled_value
|
13
13
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
json.(other_entry, :id, :slug, :title)
|
@@ -1 +1 @@
|
|
1
|
-
json.array!(@entries, :partial => '
|
1
|
+
json.array!(@entries, :partial => 'other_entry', :as => :other_entry)
|
@@ -3,6 +3,7 @@
|
|
3
3
|
"config": <%= editor_config_seeds %>,
|
4
4
|
|
5
5
|
"entry": <%= render_json_seed(@entry) %>,
|
6
|
+
"storylines": <%= @entry.storylines.to_json.html_safe %>,
|
6
7
|
"chapters": <%= @entry.chapters.to_json.html_safe %>,
|
7
8
|
"pages": <%= @entry.pages.to_json.html_safe %>,
|
8
9
|
|
@@ -11,5 +12,7 @@
|
|
11
12
|
"account": <%= render_json_seed(@entry.account) %>,
|
12
13
|
"theming": <%= render_json_seed(@entry.theming) %>,
|
13
14
|
"widget_types": <%= widget_types_json_seeds(@entry_config) %>,
|
14
|
-
"page_types": <%= page_type_json_seeds(@entry_config)
|
15
|
+
"page_types": <%= page_type_json_seeds(@entry_config) %>,
|
16
|
+
|
17
|
+
"common": <%= common_entry_seed(@entry).to_json.html_safe %>
|
15
18
|
}
|
@@ -4,3 +4,4 @@ json.page_change_by_scrolling theming.theme.page_change_by_scrolling?
|
|
4
4
|
json.hide_text_on_swipe theming.theme.hide_text_on_swipe?
|
5
5
|
json.emphasized_pages theming.theme.supports_emphasized_pages?
|
6
6
|
json.scroll_indicator_modes theming.theme.supports_scroll_indicator_modes?
|
7
|
+
json.change_to_parent_page_at_storyline_boundary theming.theme.change_to_parent_page_at_storyline_boundary?
|
@@ -7,11 +7,11 @@
|
|
7
7
|
|
8
8
|
<h1 class="hidden"><%= entry.title %></h1>
|
9
9
|
|
10
|
-
<img src="<%= image_path("pageflow/themes/#{entry.theming.theme.directory_name}/logo_print.png") %>" class="print_image" alt="<%= t('.
|
10
|
+
<img src="<%= image_path("pageflow/themes/#{entry.theming.theme.directory_name}/logo_print.png") %>" class="print_image" alt="<%= t('pageflow.public.logo') %>">
|
11
11
|
<span class="print_only page_url"><%= request.original_url %></span>
|
12
12
|
|
13
13
|
<%= content_tag :div, :id => 'content', :class => 'entry', :data => {:role => 'slideshow'} do %>
|
14
|
-
<%= render entry.pages %>
|
14
|
+
<%= render entry.pages, entry: entry %>
|
15
15
|
<%= render 'pageflow/entries/indicators', :theme => entry.theming.theme %>
|
16
16
|
<% end %>
|
17
17
|
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<!--[if lt IE 9]>
|
2
2
|
<div class="ie8_hint">
|
3
|
-
<%= raw t('.deprecated_browser') %>
|
3
|
+
<%= raw t('pageflow.public.deprecated_browser') %>
|
4
4
|
<p>
|
5
|
-
<a href="#" class="close"><%= t('.close') %></a>
|
5
|
+
<a href="#" class="close"><%= t('pageflow.public.close') %></a>
|
6
6
|
</p>
|
7
7
|
</div>
|
8
8
|
<![endif]-->
|
@@ -1,13 +1,13 @@
|
|
1
1
|
<% if theme.has_scroll_back_indicator? %>
|
2
2
|
<div class="scroll_back_indicator scroll_indicator indicator" data-direction="up">
|
3
|
-
<%= t('.scroll_back_indicator') %>
|
3
|
+
<%= t('pageflow.public.scroll_back_indicator') %>
|
4
4
|
</div>
|
5
5
|
<% end %>
|
6
6
|
|
7
7
|
<div class="scroll_next_indicator scroll_indicator indicator" data-direction="down">
|
8
|
-
<%= t('pageflow.
|
8
|
+
<%= t('pageflow.public.scroll_indicator') %>
|
9
9
|
</div>
|
10
10
|
|
11
11
|
<div class="hidden_text_indicator indicator">
|
12
|
-
<%= t('pageflow.
|
12
|
+
<%= t('pageflow.public.swipe_indicator') %>
|
13
13
|
</div>
|
@@ -1,11 +1,12 @@
|
|
1
1
|
<div class="navigation_mobile" data-widget="default_mobile_navigation">
|
2
|
+
<div class="parent_page" title="<%= t('pageflow.public.back') %>"></div>
|
2
3
|
<div class="menu index"></div>
|
3
4
|
<div class="menu sharing"></div>
|
4
5
|
<div class="menu imprint"></div>
|
5
6
|
<div class="overview_mobile">
|
6
|
-
<span class="heading-1"><%= t('.overview') %></span>
|
7
|
+
<span class="heading-1"><%= t('pageflow.public.overview') %></span>
|
7
8
|
<div class="wrapper">
|
8
|
-
<ul>
|
9
|
+
<ul class="pages">
|
9
10
|
<%= render :partial => 'pageflow/entries/navigation/page',
|
10
11
|
:collection => entry_mobile_navigation_pages(entry),
|
11
12
|
:locals => {:image_style => :thumbnail_overview_mobile, :image_width => nil} %>
|
@@ -27,12 +28,12 @@
|
|
27
28
|
</ul>
|
28
29
|
</div>
|
29
30
|
<div class="sub_share">
|
30
|
-
<a target="_blank"><%= I18n.t('pageflow.
|
31
|
-
<a target="_blank"><%= I18n.t('pageflow.
|
31
|
+
<a target="_blank"><%= I18n.t('pageflow.public.share_this_entry') %></a>
|
32
|
+
<a target="_blank"><%= I18n.t('pageflow.public.share_this_page') %></a>
|
32
33
|
</div>
|
33
34
|
</div>
|
34
35
|
<div class="imprint_mobile">
|
35
|
-
<span class="heading-1"><%= t('.imprint') %></span>
|
36
|
+
<span class="heading-1"><%= t('pageflow.public.imprint') %></span>
|
36
37
|
<div class="wrapper">
|
37
38
|
<ul>
|
38
39
|
<li class="credits">
|
@@ -1,21 +1,21 @@
|
|
1
1
|
<div class="multimedia_alert">
|
2
2
|
<div class="multimedia_alert_box">
|
3
3
|
<div class="alert_block">
|
4
|
-
<h1 class="alert_headline"><%= t('.
|
4
|
+
<h1 class="alert_headline"><%= t('pageflow.public.notice') %></h1>
|
5
5
|
<div class="alert_icon speaker"></div>
|
6
6
|
<p>
|
7
|
-
<%= t('.sound_hint') %>
|
7
|
+
<%= t('pageflow.public.sound_hint') %>
|
8
8
|
</p>
|
9
9
|
</div>
|
10
10
|
<div class="alert_block">
|
11
11
|
<div class="alert_icon scrolling"></div>
|
12
12
|
<p class="scroll_hint desktop">
|
13
|
-
<%= t('.scroll_hint') %>
|
13
|
+
<%= t('pageflow.public.scroll_hint') %>
|
14
14
|
</p>
|
15
15
|
<p class="scroll_hint mobile">
|
16
|
-
<%= t('.swipe_hint') %>
|
16
|
+
<%= t('pageflow.public.swipe_hint') %>
|
17
17
|
</p>
|
18
|
-
<a class="close" href="#" tabindex="1"><%= t('.
|
18
|
+
<a class="close" href="#" tabindex="1"><%= t('pageflow.public.lets_go') %></a>
|
19
19
|
</div>
|
20
20
|
</div>
|
21
|
-
</div>
|
21
|
+
</div>
|
@@ -1,11 +1,11 @@
|
|
1
1
|
<ul id="skipLinks">
|
2
2
|
<li>
|
3
|
-
<a href="#content" class="content_link" tabindex="1"><%= t('.
|
3
|
+
<a href="#content" class="content_link" tabindex="1"><%= t('pageflow.public.skip_links_content') %></a>
|
4
4
|
</li>
|
5
5
|
<li>
|
6
|
-
<a href="#header" tabindex="1"><%= t('.
|
6
|
+
<a href="#header" tabindex="1"><%= t('pageflow.public.skip_links_top_navigation') %></a>
|
7
7
|
</li>
|
8
8
|
<li>
|
9
|
-
<a href="#navigation" tabindex="1"><%= t('.
|
9
|
+
<a href="#navigation" tabindex="1"><%= t('pageflow.public.skip_links_navigation') %></a>
|
10
10
|
</li>
|
11
11
|
</ul>
|
@@ -1,3 +1,5 @@
|
|
1
|
+
<% @editor_scope = true %>
|
2
|
+
|
1
3
|
<% content_for(:head) do %>
|
2
4
|
<%= stylesheet_link_tag('pageflow/application_with_simulated_media_queries', media: 'all', 'data-turbolinks-track' => true) %>
|
3
5
|
<%= entry_theme_stylesheet_link_tag(@entry) %>
|
@@ -38,10 +40,10 @@
|
|
38
40
|
</script>
|
39
41
|
|
40
42
|
<% I18n.with_locale(@entry.locale) do %>
|
41
|
-
<%= page_type_templates %>
|
43
|
+
<%= page_type_templates(@entry) %>
|
44
|
+
<%= render('pageflow/editor/entries/indicators_seed', theme: @entry.theming.theme) %>
|
42
45
|
<% end %>
|
43
46
|
|
44
47
|
<%= render('pageflow/editor/entries/help_entries_seed', config: @entry_config) %>
|
45
|
-
<%= render('pageflow/editor/entries/indicators_seed', theme: @entry.theming.theme) %>
|
46
48
|
|
47
49
|
<%= render('pageflow/editor/entries/analytics', entry: @entry) %>
|
@@ -1,21 +1,22 @@
|
|
1
1
|
<a class="scroll_indicator bottom" tabindex="2">
|
2
|
-
<span class="hint"><%= t('.scroll_down') %></span>
|
2
|
+
<span class="hint"><%= t('pageflow.public.scroll_down') %></span>
|
3
3
|
</a>
|
4
4
|
<ul class="navigation_bar_bottom">
|
5
5
|
<li class="indicator">
|
6
6
|
</li>
|
7
7
|
<li class="fullscreen">
|
8
|
-
<a class="navigation_bullet navigation_fullscreen" tabindex="2"
|
8
|
+
<a class="navigation_bullet navigation_fullscreen" tabindex="2"
|
9
|
+
title="<%= t('pageflow.public.enter_fullscreen') %>" data-active-title="<%= t('pageflow.public.leave_fullscreen') %>">
|
9
10
|
<span class="button"></span>
|
10
11
|
</a>
|
11
12
|
</li>
|
12
13
|
<li class="hide_text">
|
13
|
-
<a class="navigation_bullet navigation_hide_text" tabindex="2" title="<%= t('.hide_text') %>" data-active-title="<%= t('.show_text') %>">
|
14
|
+
<a class="navigation_bullet navigation_hide_text" tabindex="2" title="<%= t('pageflow.public.hide_text') %>" data-active-title="<%= t('pageflow.public.show_text') %>">
|
14
15
|
<span class="button"></span>
|
15
16
|
</a>
|
16
17
|
</li>
|
17
18
|
<li class="navigation_menu mute">
|
18
|
-
<div class="navigation_menu_box navigation_volume_box" title="<%= t('.volume') %>">
|
19
|
+
<div class="navigation_menu_box navigation_volume_box" title="<%= t('pageflow.public.volume') %>">
|
19
20
|
<div class="volume-control" style="display: block;">
|
20
21
|
<div class="volume-slider">
|
21
22
|
<div class="volume-level" style="width: 100%;"><span class="volume-control-text"></span></div>
|
@@ -24,7 +25,7 @@
|
|
24
25
|
</div>
|
25
26
|
</div>
|
26
27
|
<a class="navigation_menu" tabindex="2">
|
27
|
-
<span class="navigation_bg navigation_mute" title="<%= t('.volume') %>" data-muted-title="<%= t('.mute_off') %>" data-not-muted-title="<%= t('.mute_on') %>"></span>
|
28
|
+
<span class="navigation_bg navigation_mute" title="<%= t('pageflow.public.volume') %>" data-muted-title="<%= t('pageflow.public.mute_off') %>" data-not-muted-title="<%= t('pageflow.public.mute_on') %>"></span>
|
28
29
|
</a>
|
29
30
|
</li>
|
30
31
|
</ul>
|
@@ -1,20 +1,20 @@
|
|
1
1
|
<ul class="navigation_bar_top">
|
2
2
|
<li class="menu_li">
|
3
|
-
<a id="navigation" class="navigation_bullet navigation_main" tabindex="2" title="<%= t('.
|
4
|
-
<span class="hint"><%= t('.
|
3
|
+
<a id="navigation" class="navigation_bullet navigation_main" tabindex="2" title="<%= t('pageflow.public.open_navigation') %>" data-active-title="<%= t('pageflow.public.close_navigation') %>">
|
4
|
+
<span class="hint"><%= t('pageflow.public.open_navigation') %></span>
|
5
5
|
<span class="button"></span>
|
6
6
|
</a>
|
7
7
|
</li>
|
8
8
|
<%= render('pageflow/entries/navigation/home_button', home_button: entry.home_button) %>
|
9
9
|
<li>
|
10
|
-
<a class="navigation_bullet navigation_top" <%= "href=##{entry.pages.first.perma_id} data-link=#{entry.pages.first.id}" unless entry.pages.nil? || entry.pages.first.nil? %> tabindex="2" title="<%= t('.navigate_top') %>">
|
11
|
-
<span class="hint"><%= t('.navigate_top') %></span>
|
10
|
+
<a class="navigation_bullet navigation_top" <%= "href=##{entry.pages.first.perma_id} data-link=#{entry.pages.first.id}" unless entry.pages.nil? || entry.pages.first.nil? %> tabindex="2" title="<%= t('pageflow.public.navigate_top') %>">
|
11
|
+
<span class="hint"><%= t('pageflow.public.navigate_top') %></span>
|
12
12
|
<span class="button"></span>
|
13
13
|
</a>
|
14
14
|
</li>
|
15
15
|
<li>
|
16
|
-
<a class="navigation_bullet navigation_index" tabindex="2" title="<%= t('.open_overview') %>" data-active-title="<%= t('.close_overview') %>">
|
17
|
-
<span class="hint"><%= t('.open_overview') %></span>
|
16
|
+
<a class="navigation_bullet navigation_index" tabindex="2" title="<%= t('pageflow.public.open_overview') %>" data-active-title="<%= t('pageflow.public.close_overview') %>">
|
17
|
+
<span class="hint"><%= t('pageflow.public.open_overview') %></span>
|
18
18
|
<span class="button"></span>
|
19
19
|
</a>
|
20
20
|
</li>
|
@@ -24,12 +24,12 @@
|
|
24
24
|
<%= render 'pageflow/entries/share_menu/twitter_link', entry: entry %>
|
25
25
|
<%= render 'pageflow/entries/share_menu/google_link', entry: entry %>
|
26
26
|
<div class="sub_share">
|
27
|
-
<a tabindex="2" target="_blank"><%= I18n.t('pageflow.
|
28
|
-
<a tabindex="2" target="_blank"><%= I18n.t('pageflow.
|
27
|
+
<a tabindex="2" target="_blank"><%= I18n.t('pageflow.public.share_this_entry') %></a>
|
28
|
+
<a tabindex="2" target="_blank"><%= I18n.t('pageflow.public.share_this_page') %></a>
|
29
29
|
</div>
|
30
30
|
</div>
|
31
|
-
<a title="<%= t('.share') %>">
|
32
|
-
<span class="hint"><%= t('.share') %></span>
|
31
|
+
<a title="<%= t('pageflow.public.share') %>">
|
32
|
+
<span class="hint"><%= t('pageflow.public.share') %></span>
|
33
33
|
<span class="navigation_bg navigation_share button"></span>
|
34
34
|
</a>
|
35
35
|
</li>
|
@@ -37,12 +37,12 @@
|
|
37
37
|
<div class="navigation_menu_box navigation_credits_box">
|
38
38
|
<%= render 'pageflow/entries/navigation/credits_box_content', :entry => entry %>
|
39
39
|
</div>
|
40
|
-
<a title="<%= t('.imprint') %>">
|
41
|
-
<span class="hint"><%= t('.imprint') %></span>
|
40
|
+
<a title="<%= t('pageflow.public.imprint') %>">
|
41
|
+
<span class="hint"><%= t('pageflow.public.imprint') %></span>
|
42
42
|
<span class="navigation_bg navigation_credits button"></span>
|
43
43
|
</a>
|
44
44
|
</li>
|
45
45
|
</ul>
|
46
46
|
<a class="scroll_indicator top" tabindex="2">
|
47
|
-
<span class="hint"><%= t('.scroll_up') %></span>
|
47
|
+
<span class="hint"><%= t('pageflow.public.scroll_up') %></span>
|
48
48
|
</a>
|
@@ -1,7 +1,7 @@
|
|
1
1
|
<% if home_button.enabled? %>
|
2
2
|
<li>
|
3
|
-
<%= link_to(home_button.url, class: "navigation_bullet navigation_home", tabindex: "2", title: t('.show_home')) do %>
|
4
|
-
<span class="hint"><%= t('.show_home') %></span>
|
3
|
+
<%= link_to(home_button.url, class: "navigation_bullet navigation_home", tabindex: "2", title: t('pageflow.public.show_home')) do %>
|
4
|
+
<span class="hint"><%= t('pageflow.public.show_home') %></span>
|
5
5
|
<span class="button"></span>
|
6
6
|
<% end %>
|
7
7
|
</li>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<li class="<%= page_navigation_css_class(page) %>">
|
2
|
-
<%= link_to "##{page.perma_id}", :data => {:link => page.id} do %>
|
2
|
+
<%= link_to "##{page.perma_id}", :data => {:link => page.id, :chapter_id => page.chapter_id} do %>
|
3
3
|
<%= image_tag(page.thumbnail_url(image_style), :width => image_width) %>
|
4
4
|
<% end %>
|
5
5
|
<div class="navigation_site_detail">
|
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
<div class="ov_chapter">
|
4
4
|
<% if chapters_count > 1 %>
|
5
|
-
<span class="heading-5"><%= "#{t('.chapter')} #{chapter.position + 1}" if index == 0 %></span>
|
5
|
+
<span class="heading-5"><%= "#{t('pageflow.public.chapter')} #{chapter.position + 1}" if index == 0 %></span>
|
6
6
|
<% end %>
|
7
7
|
<span class="heading-4"><%= chapter.title if index == 0 %></span>
|
8
8
|
<%= render :partial => 'pageflow/entries/overview/page', :collection => page_group, :locals => {:chapter => chapter} %>
|
@@ -1,19 +1,20 @@
|
|
1
1
|
<section class="overview">
|
2
2
|
<div class="content">
|
3
3
|
<a class="close button">
|
4
|
-
<span class="label"><%= t('.close') %></span>
|
4
|
+
<span class="label"><%= t('pageflow.public.close') %></span>
|
5
5
|
</a>
|
6
|
-
<h2><%= t('.overview') %></h2>
|
6
|
+
<h2><%= t('pageflow.public.overview') %></h2>
|
7
7
|
|
8
|
-
<a class="scroll_indicator left button" tabindex="1" title="<%= t('.scroll_left') %>"><span class="hint"><%= t('.scroll_left') %></span></a>
|
8
|
+
<a class="scroll_indicator left button" tabindex="1" title="<%= t('pageflow.public.scroll_left') %>"><span class="hint"><%= t('pageflow.public.scroll_left') %></span></a>
|
9
9
|
|
10
10
|
<div class="wrapper">
|
11
11
|
<div class="scroller">
|
12
|
-
<%= render
|
13
|
-
:
|
12
|
+
<%= render(partial: 'pageflow/entries/overview/chapter',
|
13
|
+
collection: entry.main_storyline_chapters,
|
14
|
+
locals: {chapters_count: entry.main_storyline_chapters.count}) %>
|
14
15
|
</div>
|
15
16
|
</div>
|
16
17
|
|
17
|
-
<a class="scroll_indicator right button" tabindex="1" title="<%= t('.scroll_right') %>"><span class="hint"><%= t('.scroll_right') %></span></a>
|
18
|
+
<a class="scroll_indicator right button" tabindex="1" title="<%= t('pageflow.public.scroll_right') %>"><span class="hint"><%= t('pageflow.public.scroll_right') %></span></a>
|
18
19
|
</div>
|
19
20
|
</section>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
:"share-page" => "http://www.facebook.com/sharer/sharer.php?u=#{ERB::Util.url_encode(pretty_entry_url(entry))}%3Fpage%3DpermaId"
|
7
7
|
}) do %>
|
8
8
|
|
9
|
-
<span class="hint"><%= t('pageflow.
|
9
|
+
<span class="hint"><%= t('pageflow.public.share_on_facebook') %></span>
|
10
10
|
<span class="share_facebook button"></span>
|
11
11
|
<p>facebook</p>
|
12
12
|
<% end %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
:"share-page" => "https://plus.google.com/share?url=#{ERB::Util.url_encode(pretty_entry_url(entry))}%3Fpage%3DpermaId"
|
7
7
|
}) do %>
|
8
8
|
|
9
|
-
<span class="hint"><%= t('pageflow.
|
9
|
+
<span class="hint"><%= t('pageflow.public.share_on_google') %></span>
|
10
10
|
<span class="share_google button"></span>
|
11
11
|
<p>google</p>
|
12
12
|
<% end %>
|
@@ -6,7 +6,7 @@
|
|
6
6
|
:"share-page" => "http://twitter.com/home?status=#{ERB::Util.url_encode(pretty_entry_url(entry))}%3Fpage%3DpermaId"
|
7
7
|
}) do %>
|
8
8
|
|
9
|
-
<span class="hint"><%= t('pageflow.
|
9
|
+
<span class="hint"><%= t('pageflow.public.share_on_twitter') %></span>
|
10
10
|
<span class="share_twitter button"></span>
|
11
11
|
<p>twitter</p>
|
12
12
|
<% end %>
|
@@ -1,4 +1,4 @@
|
|
1
|
-
<% @page_title = @entry
|
1
|
+
<% @page_title = pretty_entry_title(@entry) %>
|
2
2
|
|
3
3
|
<% content_for(:head) do %>
|
4
4
|
<%= cache [@entry, :head, @entry.share_target] do %>
|
@@ -10,6 +10,7 @@
|
|
10
10
|
<%= render_widget_head_fragments(@entry) %>
|
11
11
|
|
12
12
|
<%= tag :link, :rel => 'icon', :href => image_path("pageflow/themes/#{@entry.theming.theme.directory_name}/favicon.ico"), :type => 'image/ico' %>
|
13
|
+
<%= meta_tags_for_entry(@entry) %>
|
13
14
|
<% end %>
|
14
15
|
<% end %>
|
15
16
|
|
@@ -31,5 +32,7 @@
|
|
31
32
|
pageflow.enabledFeatureNames = <%= @entry.enabled_feature_names.to_json.html_safe %>;
|
32
33
|
</script>
|
33
34
|
|
35
|
+
<%= public_i18n_javascript_tag(@entry) %>
|
36
|
+
|
34
37
|
<%= render 'pageflow/entries/analytics', :entry => @entry %>
|
35
38
|
<% end %>
|