├── .gitignore ├── .yardopts ├── CHANGELOG ├── COPYING ├── COPYING.LESSER ├── COPYRIGHT ├── Gemfile ├── Gemfile.lock ├── README.md ├── Rakefile ├── app ├── controllers │ └── skyline │ │ ├── application_controller.rb │ │ ├── article_versions_controller.rb │ │ ├── articles_controller.rb │ │ ├── authentications_controller.rb │ │ ├── browser │ │ ├── content_controller.rb │ │ ├── files_controller.rb │ │ ├── images_controller.rb │ │ ├── links_controller.rb │ │ ├── media_nodes_controller.rb │ │ ├── pages_controller.rb │ │ └── tabs │ │ │ ├── content_items_controller.rb │ │ │ ├── linkables_controller.rb │ │ │ ├── media_library │ │ │ └── media_files_controller.rb │ │ │ └── media_nodes │ │ │ └── media_files_controller.rb │ │ ├── content │ │ └── editors │ │ │ ├── editable_list_controller.rb │ │ │ └── joinable_list_controller.rb │ │ ├── content_controller.rb │ │ ├── content_items_controller.rb │ │ ├── content_sections_controller.rb │ │ ├── link_section_links_controller.rb │ │ ├── locales_controller.rb │ │ ├── media │ │ ├── data_controller.rb │ │ ├── dirs_controller.rb │ │ └── files_controller.rb │ │ ├── profiles_controller.rb │ │ ├── publications_controller.rb │ │ ├── published_publications_controller.rb │ │ ├── redirects_controller.rb │ │ ├── sections_controller.rb │ │ ├── settings_controller.rb │ │ ├── site │ │ ├── media_files_data_controller.rb │ │ └── pages_controller.rb │ │ ├── skyline2_controller.rb │ │ ├── user_preferences_controller.rb │ │ ├── users_controller.rb │ │ ├── variant_current_editor_controller.rb │ │ └── variants_controller.rb ├── helpers │ └── skyline │ │ ├── application_helper.rb │ │ ├── button_helper.rb │ │ ├── content_helper.rb │ │ ├── dialog_helper.rb │ │ ├── editors │ │ ├── boolean.rb │ │ ├── checkable_list.rb │ │ ├── date.rb │ │ ├── date_time.rb │ │ ├── display.rb │ │ ├── editable_list.rb │ │ ├── editor.rb │ │ ├── file_browser.rb │ │ ├── heading.rb │ │ ├── inline_list.rb │ │ ├── joinable_list.rb │ │ ├── list.rb │ │ ├── media_node_browser.rb │ │ ├── page_browser.rb │ │ ├── text_field.rb │ │ ├── textarea.rb │ │ ├── textile.rb │ │ └── wysiwyg.rb │ │ ├── form_helper.rb │ │ ├── js_layout_helper.rb │ │ ├── menu_helper.rb │ │ ├── message_generator.rb │ │ ├── notification_generator.rb │ │ ├── pages_helper.rb │ │ ├── plugin_helper.rb │ │ ├── presenters │ │ ├── presenter.rb │ │ └── table.rb │ │ ├── ref_object_helper.rb │ │ ├── translation_helper.rb │ │ └── tree_helper.rb ├── middleware │ └── skyline │ │ ├── plugins_loader_middleware.rb │ │ ├── session_scrubber_middleware.rb │ │ ├── session_store.rb │ │ └── sprockets_middleware.rb ├── models │ └── skyline │ │ ├── article.rb │ │ ├── article_version.rb │ │ ├── associated_tag.rb │ │ ├── grant.rb │ │ ├── image_ref.rb │ │ ├── inline_ref.rb │ │ ├── link_ref.rb │ │ ├── link_section_link.rb │ │ ├── media_cache.rb │ │ ├── media_dir.rb │ │ ├── media_file.rb │ │ ├── media_node.rb │ │ ├── media_size.rb │ │ ├── object_ref.rb │ │ ├── page.rb │ │ ├── page_fragment.rb │ │ ├── publication.rb │ │ ├── ref_object.rb │ │ ├── referable_uri.rb │ │ ├── right.rb │ │ ├── role.rb │ │ ├── section.rb │ │ ├── sections │ │ ├── content_collection_section.rb │ │ ├── content_item_section.rb │ │ ├── heading_section.rb │ │ ├── iframe_section.rb │ │ ├── link_section.rb │ │ ├── media_section.rb │ │ ├── page_fragment_section.rb │ │ ├── raw_section.rb │ │ ├── redirect_section.rb │ │ ├── rss_section.rb │ │ ├── splitter_section.rb │ │ └── wysiwyg_section.rb │ │ ├── site.rb │ │ ├── tag.rb │ │ ├── user.rb │ │ ├── user_preference.rb │ │ └── variant.rb ├── observers │ └── skyline │ │ ├── article_version_observer.rb │ │ ├── file_cache_sweeper.rb │ │ └── version_stamper.rb ├── templates │ └── skyline │ │ ├── page │ │ └── default │ │ │ └── index.html.erb │ │ └── sections │ │ ├── content_collection_section │ │ └── default │ │ │ └── index.html.erb │ │ ├── content_item_section │ │ └── default │ │ │ └── index.html.erb │ │ ├── heading_section │ │ └── default │ │ │ └── index.html.erb │ │ ├── iframe_section │ │ └── default │ │ │ └── index.html.erb │ │ ├── link_section │ │ └── default │ │ │ └── index.html.erb │ │ ├── media_section │ │ └── default │ │ │ └── index.html.erb │ │ ├── page_fragment_section │ │ └── default │ │ │ └── index.html.erb │ │ ├── raw_section │ │ └── default │ │ │ └── index.html.erb │ │ ├── redirect_section │ │ └── default │ │ │ └── index.html.erb │ │ ├── rss_section │ │ └── default │ │ │ └── index.html.erb │ │ ├── splitter_section │ │ └── default │ │ │ └── index.html.erb │ │ └── wysiwyg_section │ │ └── default │ │ └── index.html.erb └── views │ └── skyline │ ├── articles │ ├── _currently_editing.html.erb │ ├── _list.html.erb │ ├── _meta.html.erb │ ├── _security.html.erb │ ├── _takeover_action.html.erb │ ├── edit.html.erb │ ├── edit_preview_only.html.erb │ ├── index.html.erb │ ├── page │ │ ├── _header.html.erb │ │ └── _index.html.erb │ ├── page_fragment │ │ ├── _header.html.erb │ │ └── _index.html.erb │ └── update.js.erb │ ├── authentications │ └── new.html.erb │ ├── browser │ ├── content │ │ ├── _error.html.erb │ │ └── _index.html.erb │ ├── files │ │ └── _index.html.erb │ ├── images │ │ └── _index.html.erb │ ├── links │ │ └── _index.html.erb │ ├── media_nodes │ │ └── _index.html.erb │ ├── pages │ │ └── _index.html.erb │ └── tabs │ │ ├── content_items │ │ ├── _index.html.erb │ │ ├── _show.html.erb │ │ └── show.js.erb │ │ ├── external_image │ │ └── _index.html.erb │ │ ├── external_link │ │ └── _index.html.erb │ │ ├── linkables │ │ ├── _index.html.erb │ │ ├── _show.html.erb │ │ └── show.js.erb │ │ ├── media_library │ │ ├── _index.html.erb │ │ └── media_files │ │ │ ├── _index.html.erb │ │ │ ├── _show.html.erb │ │ │ ├── index.js.erb │ │ │ └── show.js.erb │ │ ├── media_nodes │ │ ├── _index.html.erb │ │ └── media_files │ │ │ ├── _index.html.erb │ │ │ └── index.js.erb │ │ └── pages │ │ └── _index.html.erb │ ├── content │ ├── _add.html.erb │ ├── _filter.html.erb │ ├── _group.html.erb │ ├── _import.html.erb │ ├── _index.html.erb │ ├── _meta.html.erb │ ├── _submit.html.erb │ ├── create.html.erb │ ├── edit.html.erb │ ├── editors │ │ ├── editable_list │ │ │ └── new.js.erb │ │ └── joinable_list │ │ │ ├── _add.html.erb │ │ │ ├── _list.html.erb │ │ │ ├── cancel.js.erb │ │ │ ├── index.js.erb │ │ │ └── new.js.erb │ ├── error.html.erb │ ├── field.js.erb │ ├── import.js.erb │ ├── index.html.erb │ ├── list.html.erb │ ├── order.js.erb │ ├── presenters │ │ └── _table.html.erb │ └── show.html.erb │ ├── content_items │ ├── _content_item.html.erb │ └── new.js.erb │ ├── content_sections │ ├── _tags.html.erb │ └── new.js.erb │ ├── layouts │ ├── articles.html.erb │ ├── content.html.erb │ ├── media.html.erb │ ├── pages.html.erb │ └── settings.html.erb │ ├── link_section_links │ ├── _form.html.erb │ └── new.js.erb │ ├── locales │ └── show.js.erb │ ├── media │ ├── dirs │ │ ├── _edit.html.erb │ │ ├── _index.html.erb │ │ ├── _show.html.erb │ │ ├── edit.js.erb │ │ ├── index.html.erb │ │ ├── index.js.erb │ │ └── show.js.erb │ └── files │ │ ├── _edit.html.erb │ │ ├── _index.html.erb │ │ ├── _new.html.erb │ │ ├── edit.js.erb │ │ ├── index.js.erb │ │ └── update.js.erb │ ├── profiles │ ├── _edit.html.erb │ ├── edit.js.erb │ └── update.js.erb │ ├── publications │ ├── _index.html.erb │ └── index.js.erb │ ├── sections │ ├── _content_collection_section.html.erb │ ├── _content_item_section.html.erb │ ├── _form.html.erb │ ├── _heading_section.html.erb │ ├── _iframe_section.html.erb │ ├── _link_section.html.erb │ ├── _media_section.html.erb │ ├── _page_fragment_section.html.erb │ ├── _raw_section.html.erb │ ├── _redirect_section.html.erb │ ├── _rss_section.html.erb │ ├── _splitter_section.html.erb │ ├── _wysiwyg_section.html.erb │ └── new.js.erb │ ├── settings │ ├── edit.html.erb │ └── index.html │ ├── shared │ ├── _head.html.erb │ └── _header_area.html.erb │ ├── tags │ └── _available_tags.html.erb │ └── users │ ├── _edit.html.erb │ ├── _form.html.erb │ ├── _new.html.erb │ ├── create.js.erb │ ├── edit.js.erb │ ├── index.html.erb │ ├── new.js.erb │ └── update.js.erb ├── bin └── skylinecms ├── config ├── initializers │ ├── dependencies.rb │ ├── gem_dependencies.rb │ ├── locales.rb │ ├── mime_types.rb │ ├── observers.rb │ └── omniauth.rb ├── locales │ ├── en-US.yml │ └── nl-NL.yml └── routes.rb ├── db ├── fixtures │ ├── files │ │ └── test.gif │ ├── roles_and_rights.rb │ └── roots.rb └── migrate │ ├── 20090302102548_add_media_nodes.rb │ ├── 20090309133933_add_description_to_media_nodes.rb │ ├── 20090309134731_add_tags.rb │ ├── 20090309135746_create_media_files_tags.rb │ ├── 20090319091342_create_media_caches.rb │ ├── 20090327083240_create_users.rb │ ├── 20090327084656_create_roles.rb │ ├── 20090327084719_create_rights.rb │ ├── 20090327084739_create_grants.rb │ ├── 20090327090918_create_rights_roles.rb │ ├── 20090408115155_create_ref_objects.rb │ ├── 20090504140044_create_test_sections.rb │ ├── 20090506083107_add_refering_column_name_to_ref_objects.rb │ ├── 20090508145820_create_skyline_pages.rb │ ├── 20090508145852_create_skyline_page_versions.rb │ ├── 20090508150149_create_skyline_sections.rb │ ├── 20090508150204_create_skyline_wysiwyg_sections.rb │ ├── 20090508150210_create_skyline_rss_sections.rb │ ├── 20090511074702_create_test_content_objs.rb │ ├── 20090519143912_add_skyline_pages_locked.rb │ ├── 20090525081942_rename_test_content_objs.rb │ ├── 20090526090049_add_pages_url_part.rb │ ├── 20090527130112_create_skyline_iframe_sections.rb │ ├── 20090528080308_create_skyline_versions.rb │ ├── 20090528090319_create_skyline_actions.rb │ ├── 20090608131055_add_skyline_pages_navigation_title.rb │ ├── 20090610134844_create_skyline_content_collection_sections.rb │ ├── 20090610142139_add_skyline_tags_taggable_type.rb │ ├── 20090610143446_move_skyline_media_files_skyline_tags_to_skyline_associated_tags.rb │ ├── 20090616091122_add_skyline_pages_persistent.rb │ ├── 20090616091432_add_skyline_pages_identifier.rb │ ├── 20090616134834_create_skyline_heading_section.rb │ ├── 20090624113754_create_skyline_content_item_section.rb │ ├── 20090624134548_create_skyline_splitter_section.rb │ ├── 20090624154213_create_skyline_link_sections.rb │ ├── 20090624154251_create_skyline_link_section_links.rb │ ├── 20090625110837_remove_skyline_actions.rb │ ├── 20090630100045_add_media_nodes_file_type.rb │ ├── 20090702160937_add_media_node_dimensions.rb │ ├── 20090703101812_rename_page_title_tag.rb │ ├── 20090706124019_add_skyline_media_node_title.rb │ ├── 20090709142235_add_system_users_flag.rb │ ├── 20090710145157_add_skyline_users_destroyed.rb │ ├── 20090713133240_add_skyline_grants_primary_key.rb │ ├── 20090714084713_migrate_sections_in_module.rb │ ├── 20090723132822_add_skyline_page_version_current_editor.rb │ ├── 20090804072505_create_skyline_sections_raw_sections.rb │ ├── 20090804074053_create_skyline_sections_media_sections.rb │ ├── 20090806134610_migrate_pages_to_articles.rb │ ├── 20090806155411_create_skyline_page_datas.rb │ ├── 20090807074314_create_skyline_sections_redirect_sections.rb │ ├── 20090807112358_add_roles_system.rb │ ├── 20090807130819_add_article_data_pointers.rb │ ├── 20090807143152_remove_articles_cached_fields.rb │ ├── 20090810130159_remove_page_url_part_constraint.rb │ ├── 20090810131440_create_skyline_page_fragement_data.rb │ ├── 20090812154655_create_skyline_sections_page_fragment_sections.rb │ ├── 20090814102107_add_associated_tag_id.rb │ ├── 20090904121447_create_skyline_referable_uris.rb │ ├── 20091008134448_article_position_no_default.rb │ ├── 20091013135821_allow_null_for_position_in_articles.rb │ ├── 20091202130512_rename_users_destroyed_to_is_destroyed.rb │ ├── 20091202152514_add_media_nodes_date.rb │ ├── 20091221145204_add_skyline_media_section_link.rb │ ├── 20100109145958_add_associated_tags_index.rb │ ├── 20100115111440_create_skyline_user_preferences.rb │ ├── 20100409073447_change_referable_uri_to_text.rb │ ├── 20110816080626_add_skyline_test_article_data.rb │ ├── 20111101092405_rename_indexes.rb │ ├── 20120327152625_remove_unused_articles_index.rb │ ├── 20120426083829_add_timestamps_to_skyline_media_nodes.rb │ ├── 20120508113638_add_encryption_method_to_users.rb │ ├── 20120509082723_add_login_attempts_to_users.rb │ ├── 20120515114410_add_locked_to_users.rb │ ├── 20120516140038_create_skyline_media_sizes.rb │ ├── 20120523101340_move_media_files.rb │ └── 20130205120257_create_skyline_sessions.rb ├── doc ├── INSTALL.md ├── MIGRATION.md └── concepts.md ├── lib ├── skyline.rb ├── skyline │ ├── authentication │ │ ├── skyline_strategy.rb │ │ └── user.rb │ ├── belongs_to_referable.rb │ ├── cli │ │ ├── base.rb │ │ ├── init.rb │ │ └── init │ │ │ └── templates │ │ │ ├── config │ │ │ └── initializers │ │ │ │ └── skyline_configuration.rb │ │ │ └── tasks │ │ │ └── skyline.rake │ ├── configuration.rb │ ├── content │ │ ├── class_meta_data.rb │ │ ├── content.rb │ │ ├── exportable.rb │ │ ├── field_meta_data.rb │ │ ├── implementation.rb │ │ ├── meta_data │ │ │ ├── class_settings.rb │ │ │ ├── field.rb │ │ │ ├── field_group.rb │ │ │ └── field_page.rb │ │ ├── orderable.rb │ │ ├── stack.rb │ │ └── versioning │ │ │ ├── version.rb │ │ │ └── versionable.rb │ ├── content_item_section_selectable.rb │ ├── deprecated │ │ └── version3_0_8.rb │ ├── engine.rb │ ├── form_builder.rb │ ├── has_many_referables_in.rb │ ├── javascript_generator_methods.rb │ ├── linkable.rb │ ├── plugins │ │ ├── manager.rb │ │ └── plugin.rb │ ├── positionable.rb │ ├── rendering │ │ ├── helpers │ │ │ ├── bread_crumb_helper.rb │ │ │ ├── column_helper.rb │ │ │ └── renderer_helper.rb │ │ ├── renderer.rb │ │ └── scopes │ │ │ ├── interface.rb │ │ │ └── wildcard.rb │ ├── routing_ext.rb │ ├── sanitizer.rb │ ├── sections │ │ └── interface.rb │ ├── settings.rb │ ├── taggable.rb │ └── version.rb ├── skylinecms.rb └── tasks │ ├── database.rake │ ├── implementation.rake │ └── testing.rake ├── public └── skyline │ ├── images │ ├── backgrounds │ │ ├── advanced-closed.gif │ │ ├── advanced-open.gif │ │ ├── dialog-head.gif │ │ ├── dialog-shadow-bl-corner.png │ │ ├── dialog-shadow-bottom.png │ │ ├── dialog-shadow-br-corner.png │ │ ├── dialog-shadow-left.png │ │ ├── dialog-shadow-right.png │ │ ├── dialog-shadow-tl-corner.png │ │ ├── dialog-shadow-top.png │ │ ├── dialog-shadow-tr-corner.png │ │ ├── dots.gif │ │ ├── hover.gif │ │ ├── login-contentarea.gif │ │ ├── mainnavigation.gif │ │ ├── menu-arrow-bottom.gif │ │ ├── menu-arrow-right.gif │ │ ├── menubutton-active.gif │ │ ├── menubutton-arrow.gif │ │ ├── menubutton.gif │ │ ├── messages-confirmation.gif │ │ ├── messages-error-icon.gif │ │ ├── panel-dt.gif │ │ ├── panel-footer.gif │ │ ├── panel-head-closed.gif │ │ ├── panel-head-open.gif │ │ ├── panel-head.gif │ │ ├── pixel-blue.gif │ │ ├── pixel-gray.gif │ │ ├── progressbar-bar.gif │ │ ├── progressbar.gif │ │ ├── section-splitter.gif │ │ ├── selected.gif │ │ ├── tree-li-closed.gif │ │ ├── tree-li-last.gif │ │ ├── tree-li-open.gif │ │ ├── tree-li.gif │ │ ├── tree-ul.gif │ │ └── usernavigation.gif │ ├── buttons │ │ ├── buttons-medium.gif │ │ ├── buttons-small.gif │ │ ├── dialog-close.gif │ │ └── section-delete.gif │ ├── icons │ │ ├── attachment.gif │ │ ├── audio.gif │ │ ├── cog-blue.gif │ │ ├── cog.gif │ │ ├── compressed.gif │ │ ├── default.gif │ │ ├── drag.gif │ │ ├── excel.gif │ │ ├── executable.gif │ │ ├── false.gif │ │ ├── file-failed.gif │ │ ├── file-success.gif │ │ ├── flash.gif │ │ ├── folder.gif │ │ ├── html.gif │ │ ├── image.gif │ │ ├── link-external.gif │ │ ├── lock-open.gif │ │ ├── lock.gif │ │ ├── pages.gif │ │ ├── pdf.gif │ │ ├── powerpoint.gif │ │ ├── text.gif │ │ ├── toolbar.gif │ │ ├── true.gif │ │ ├── video.gif │ │ └── word.gif │ ├── logo.gif │ ├── logo.png │ └── spinner.gif │ ├── javascripts │ ├── README │ └── src │ │ ├── application.js │ │ ├── application_preinit.js │ │ ├── browser.js │ │ ├── draggable_files.js │ │ ├── library_uploader.js │ │ ├── messages.js │ │ ├── mootools_on_rails.js │ │ ├── page_helper.js │ │ ├── poller.js │ │ ├── rails.js │ │ ├── request.js │ │ ├── sections.js │ │ ├── skyline.editor.js │ │ ├── skyline.editor │ │ ├── assets │ │ │ ├── content.css │ │ │ ├── dialog.css │ │ │ ├── icons.gif │ │ │ └── ui.css │ │ ├── dialogs │ │ │ ├── anchor.htm │ │ │ ├── charmap.htm │ │ │ ├── color_picker.htm │ │ │ └── skyline_code.html │ │ ├── src │ │ │ ├── plugins │ │ │ │ ├── autoresize │ │ │ │ │ └── editor_plugin.js │ │ │ │ ├── skylinecode │ │ │ │ │ ├── dialog.js │ │ │ │ │ └── editor_plugin.js │ │ │ │ ├── skylinecontextmenu │ │ │ │ │ └── editor_plugin.js │ │ │ │ ├── skylineimage │ │ │ │ │ ├── dialog.js │ │ │ │ │ └── editor_plugin.js │ │ │ │ ├── skylinelink │ │ │ │ │ ├── dialog.js │ │ │ │ │ └── editor_plugin.js │ │ │ │ ├── skylinetable │ │ │ │ │ └── editor_plugin.js │ │ │ │ └── skylinewindows │ │ │ │ │ └── editor_plugin.js │ │ │ ├── script_loader.js │ │ │ ├── skyline.editor.js │ │ │ ├── theme.js │ │ │ ├── tinymce_preinit.js │ │ │ └── ui │ │ │ │ ├── separator.js │ │ │ │ └── toolbar.js │ │ ├── test │ │ │ ├── dialog.html │ │ │ ├── lorem.html │ │ │ ├── multiple_editors.html │ │ │ ├── single.html │ │ │ └── undohtml.css │ │ └── vendor │ │ │ └── tinymce │ │ │ ├── changelog.txt │ │ │ └── jscripts │ │ │ └── tiny_mce │ │ │ ├── classes │ │ │ ├── AddOnManager.js │ │ │ ├── ControlManager.js │ │ │ ├── Editor.Events.js │ │ │ ├── Editor.js │ │ │ ├── EditorCommands.js │ │ │ ├── EditorManager.js │ │ │ ├── EnterKey.js │ │ │ ├── ForceBlocks.js │ │ │ ├── Formatter.js │ │ │ ├── LegacyInput.js │ │ │ ├── Popup.js │ │ │ ├── UndoManager.js │ │ │ ├── WindowManager.js │ │ │ ├── adapter │ │ │ │ ├── jquery │ │ │ │ │ ├── adapter.js │ │ │ │ │ └── jquery.tinymce.js │ │ │ │ └── prototype │ │ │ │ │ └── adapter.js │ │ │ ├── dom │ │ │ │ ├── DOMUtils.js │ │ │ │ ├── Element.js │ │ │ │ ├── EventUtils.js │ │ │ │ ├── Range.js │ │ │ │ ├── RangeUtils.js │ │ │ │ ├── ScriptLoader.js │ │ │ │ ├── Selection.js │ │ │ │ ├── Serializer.js │ │ │ │ ├── Sizzle.js │ │ │ │ ├── TreeWalker.js │ │ │ │ └── TridentSelection.js │ │ │ ├── firebug │ │ │ │ ├── FIREBUG.LICENSE │ │ │ │ └── firebug-lite.js │ │ │ ├── html │ │ │ │ ├── DomParser.js │ │ │ │ ├── Entities.js │ │ │ │ ├── Node.js │ │ │ │ ├── SaxParser.js │ │ │ │ ├── Schema.js │ │ │ │ ├── Serializer.js │ │ │ │ ├── Styles.js │ │ │ │ └── Writer.js │ │ │ ├── tinymce.js │ │ │ ├── ui │ │ │ │ ├── Button.js │ │ │ │ ├── ColorSplitButton.js │ │ │ │ ├── Container.js │ │ │ │ ├── Control.js │ │ │ │ ├── DropMenu.js │ │ │ │ ├── KeyboardNavigation.js │ │ │ │ ├── ListBox.js │ │ │ │ ├── Menu.js │ │ │ │ ├── MenuButton.js │ │ │ │ ├── MenuItem.js │ │ │ │ ├── NativeListBox.js │ │ │ │ ├── Separator.js │ │ │ │ ├── SplitButton.js │ │ │ │ ├── Toolbar.js │ │ │ │ └── ToolbarGroup.js │ │ │ └── util │ │ │ │ ├── Cookie.js │ │ │ │ ├── Dispatcher.js │ │ │ │ ├── JSON.js │ │ │ │ ├── JSONP.js │ │ │ │ ├── JSONRequest.js │ │ │ │ ├── Quirks.js │ │ │ │ ├── URI.js │ │ │ │ ├── VK.js │ │ │ │ └── XHR.js │ │ │ ├── langs │ │ │ └── en.js │ │ │ ├── license.txt │ │ │ ├── plugins │ │ │ ├── advhr │ │ │ │ ├── css │ │ │ │ │ └── advhr.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ └── rule.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ └── rule.htm │ │ │ ├── advimage │ │ │ │ ├── css │ │ │ │ │ └── advimage.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── image.htm │ │ │ │ ├── img │ │ │ │ │ └── sample.gif │ │ │ │ ├── js │ │ │ │ │ └── image.js │ │ │ │ └── langs │ │ │ │ │ └── en_dlg.js │ │ │ ├── advlink │ │ │ │ ├── css │ │ │ │ │ └── advlink.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ └── advlink.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ └── link.htm │ │ │ ├── advlist │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── autolink │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── autoresize │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── autosave │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── bbcode │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── contextmenu │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── directionality │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── emotions │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── emotions.htm │ │ │ │ ├── img │ │ │ │ │ ├── smiley-cool.gif │ │ │ │ │ ├── smiley-cry.gif │ │ │ │ │ ├── smiley-embarassed.gif │ │ │ │ │ ├── smiley-foot-in-mouth.gif │ │ │ │ │ ├── smiley-frown.gif │ │ │ │ │ ├── smiley-innocent.gif │ │ │ │ │ ├── smiley-kiss.gif │ │ │ │ │ ├── smiley-laughing.gif │ │ │ │ │ ├── smiley-money-mouth.gif │ │ │ │ │ ├── smiley-sealed.gif │ │ │ │ │ ├── smiley-smile.gif │ │ │ │ │ ├── smiley-surprised.gif │ │ │ │ │ ├── smiley-tongue-out.gif │ │ │ │ │ ├── smiley-undecided.gif │ │ │ │ │ ├── smiley-wink.gif │ │ │ │ │ └── smiley-yell.gif │ │ │ │ ├── js │ │ │ │ │ └── emotions.js │ │ │ │ └── langs │ │ │ │ │ └── en_dlg.js │ │ │ ├── example │ │ │ │ ├── dialog.htm │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── img │ │ │ │ │ └── example.gif │ │ │ │ ├── js │ │ │ │ │ └── dialog.js │ │ │ │ └── langs │ │ │ │ │ ├── en.js │ │ │ │ │ └── en_dlg.js │ │ │ ├── example_dependency │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── fullpage │ │ │ │ ├── css │ │ │ │ │ └── fullpage.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── fullpage.htm │ │ │ │ ├── js │ │ │ │ │ └── fullpage.js │ │ │ │ └── langs │ │ │ │ │ └── en_dlg.js │ │ │ ├── fullscreen │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ └── fullscreen.htm │ │ │ ├── iespell │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── inlinepopups │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── skins │ │ │ │ │ └── clearlooks2 │ │ │ │ │ │ ├── img │ │ │ │ │ │ ├── alert.gif │ │ │ │ │ │ ├── button.gif │ │ │ │ │ │ ├── buttons.gif │ │ │ │ │ │ ├── confirm.gif │ │ │ │ │ │ ├── corners.gif │ │ │ │ │ │ ├── horizontal.gif │ │ │ │ │ │ └── vertical.gif │ │ │ │ │ │ └── window.css │ │ │ │ └── template.htm │ │ │ ├── insertdatetime │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── layer │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── legacyoutput │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── lists │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── media │ │ │ │ ├── css │ │ │ │ │ └── media.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ ├── embed.js │ │ │ │ │ └── media.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ ├── media.htm │ │ │ │ └── moxieplayer.swf │ │ │ ├── nonbreaking │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── noneditable │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── pagebreak │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── paste │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ ├── pastetext.js │ │ │ │ │ └── pasteword.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ ├── pastetext.htm │ │ │ │ └── pasteword.htm │ │ │ ├── preview │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── example.html │ │ │ │ ├── jscripts │ │ │ │ │ └── embed.js │ │ │ │ └── preview.html │ │ │ ├── print │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── save │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── searchreplace │ │ │ │ ├── css │ │ │ │ │ └── searchreplace.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ └── searchreplace.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ └── searchreplace.htm │ │ │ ├── spellchecker │ │ │ │ ├── css │ │ │ │ │ └── content.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ └── img │ │ │ │ │ └── wline.gif │ │ │ ├── style │ │ │ │ ├── css │ │ │ │ │ └── props.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ └── props.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ ├── props.htm │ │ │ │ └── readme.txt │ │ │ ├── tabfocus │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── table │ │ │ │ ├── cell.htm │ │ │ │ ├── css │ │ │ │ │ ├── cell.css │ │ │ │ │ ├── row.css │ │ │ │ │ └── table.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ ├── cell.js │ │ │ │ │ ├── merge_cells.js │ │ │ │ │ ├── row.js │ │ │ │ │ └── table.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ ├── merge_cells.htm │ │ │ │ ├── row.htm │ │ │ │ └── table.htm │ │ │ ├── template │ │ │ │ ├── blank.htm │ │ │ │ ├── css │ │ │ │ │ └── template.css │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── js │ │ │ │ │ └── template.js │ │ │ │ ├── langs │ │ │ │ │ └── en_dlg.js │ │ │ │ └── template.htm │ │ │ ├── visualblocks │ │ │ │ ├── css │ │ │ │ │ └── visualblocks.css │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── visualchars │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ ├── wordcount │ │ │ │ ├── editor_plugin.js │ │ │ │ └── editor_plugin_src.js │ │ │ └── xhtmlxtras │ │ │ │ ├── abbr.htm │ │ │ │ ├── acronym.htm │ │ │ │ ├── attributes.htm │ │ │ │ ├── cite.htm │ │ │ │ ├── css │ │ │ │ ├── attributes.css │ │ │ │ └── popup.css │ │ │ │ ├── del.htm │ │ │ │ ├── editor_plugin.js │ │ │ │ ├── editor_plugin_src.js │ │ │ │ ├── ins.htm │ │ │ │ ├── js │ │ │ │ ├── abbr.js │ │ │ │ ├── acronym.js │ │ │ │ ├── attributes.js │ │ │ │ ├── cite.js │ │ │ │ ├── del.js │ │ │ │ ├── element_common.js │ │ │ │ └── ins.js │ │ │ │ └── langs │ │ │ │ └── en_dlg.js │ │ │ ├── themes │ │ │ ├── advanced │ │ │ │ ├── about.htm │ │ │ │ ├── anchor.htm │ │ │ │ ├── charmap.htm │ │ │ │ ├── color_picker.htm │ │ │ │ ├── editor_template.js │ │ │ │ ├── editor_template_src.js │ │ │ │ ├── image.htm │ │ │ │ ├── img │ │ │ │ │ ├── colorpicker.jpg │ │ │ │ │ ├── flash.gif │ │ │ │ │ ├── icons.gif │ │ │ │ │ ├── iframe.gif │ │ │ │ │ ├── pagebreak.gif │ │ │ │ │ ├── quicktime.gif │ │ │ │ │ ├── realmedia.gif │ │ │ │ │ ├── shockwave.gif │ │ │ │ │ ├── trans.gif │ │ │ │ │ ├── video.gif │ │ │ │ │ └── windowsmedia.gif │ │ │ │ ├── js │ │ │ │ │ ├── about.js │ │ │ │ │ ├── anchor.js │ │ │ │ │ ├── charmap.js │ │ │ │ │ ├── color_picker.js │ │ │ │ │ ├── image.js │ │ │ │ │ ├── link.js │ │ │ │ │ └── source_editor.js │ │ │ │ ├── langs │ │ │ │ │ ├── en.js │ │ │ │ │ └── en_dlg.js │ │ │ │ ├── link.htm │ │ │ │ ├── shortcuts.htm │ │ │ │ ├── skins │ │ │ │ │ ├── default │ │ │ │ │ │ ├── content.css │ │ │ │ │ │ ├── dialog.css │ │ │ │ │ │ ├── img │ │ │ │ │ │ │ ├── buttons.png │ │ │ │ │ │ │ ├── items.gif │ │ │ │ │ │ │ ├── menu_arrow.gif │ │ │ │ │ │ │ ├── menu_check.gif │ │ │ │ │ │ │ ├── progress.gif │ │ │ │ │ │ │ └── tabs.gif │ │ │ │ │ │ └── ui.css │ │ │ │ │ ├── highcontrast │ │ │ │ │ │ ├── content.css │ │ │ │ │ │ ├── dialog.css │ │ │ │ │ │ └── ui.css │ │ │ │ │ └── o2k7 │ │ │ │ │ │ ├── content.css │ │ │ │ │ │ ├── dialog.css │ │ │ │ │ │ ├── img │ │ │ │ │ │ ├── button_bg.png │ │ │ │ │ │ ├── button_bg_black.png │ │ │ │ │ │ └── button_bg_silver.png │ │ │ │ │ │ ├── ui.css │ │ │ │ │ │ ├── ui_black.css │ │ │ │ │ │ └── ui_silver.css │ │ │ │ └── source_editor.htm │ │ │ └── simple │ │ │ │ ├── editor_template.js │ │ │ │ ├── editor_template_src.js │ │ │ │ ├── img │ │ │ │ └── icons.gif │ │ │ │ ├── langs │ │ │ │ └── en.js │ │ │ │ └── skins │ │ │ │ ├── default │ │ │ │ ├── content.css │ │ │ │ └── ui.css │ │ │ │ └── o2k7 │ │ │ │ ├── content.css │ │ │ │ ├── img │ │ │ │ └── button_bg.png │ │ │ │ └── ui.css │ │ │ ├── tiny_mce.js │ │ │ ├── tiny_mce_popup.js │ │ │ ├── tiny_mce_src.js │ │ │ └── utils │ │ │ ├── editable_selects.js │ │ │ ├── form_utils.js │ │ │ ├── mctabs.js │ │ │ └── validate.js │ │ ├── skyline.js │ │ ├── skyline │ │ ├── assets │ │ │ ├── dialog │ │ │ │ ├── button-close.gif │ │ │ │ ├── dialog.css │ │ │ │ ├── head.gif │ │ │ │ ├── shadow-bl-corner.png │ │ │ │ ├── shadow-bottom.png │ │ │ │ ├── shadow-br-corner.png │ │ │ │ ├── shadow-left.png │ │ │ │ ├── shadow-right.png │ │ │ │ ├── shadow-tl-corner.png │ │ │ │ ├── shadow-top.png │ │ │ │ └── shadow-tr-corner.png │ │ │ ├── menubutton │ │ │ │ ├── menubutton-active.gif │ │ │ │ ├── menubutton-arrow.gif │ │ │ │ ├── menubutton.css │ │ │ │ └── menubutton.gif │ │ │ └── tree │ │ │ │ ├── icon.gif │ │ │ │ ├── last.gif │ │ │ │ ├── li.gif │ │ │ │ ├── middle-closed.gif │ │ │ │ ├── middle-open.gif │ │ │ │ ├── tree.css │ │ │ │ └── tree_vert_line.png │ │ ├── src │ │ │ ├── dialog.js │ │ │ ├── drag.js │ │ │ ├── events.js │ │ │ ├── field_replicator.js │ │ │ ├── hover_select.js │ │ │ ├── layout.js │ │ │ ├── menu.js │ │ │ ├── menubutton.js │ │ │ ├── skyline.js │ │ │ ├── sortable.js │ │ │ ├── table.js │ │ │ ├── tabs.js │ │ │ ├── tag_selector.js │ │ │ ├── toggle.js │ │ │ ├── tree.js │ │ │ └── utils.js │ │ ├── test │ │ │ ├── _dynamic_right.html │ │ │ ├── _right_content.html │ │ │ ├── basic_layout.html │ │ │ ├── dialog.html │ │ │ ├── draggablefiles.html │ │ │ ├── dynamic_layout.html │ │ │ ├── field_replicator.html │ │ │ ├── last-closed.gif │ │ │ ├── last-open.gif │ │ │ ├── menubutton.html │ │ │ ├── middle.gif │ │ │ ├── sortable.html │ │ │ ├── table.html │ │ │ ├── tagselector.html │ │ │ ├── toggle.html │ │ │ ├── tree.html │ │ │ ├── tree.png │ │ │ └── undohtml.css │ │ └── vendor │ │ │ ├── mootools │ │ │ ├── mootools-core.js │ │ │ └── mootools-more.js │ │ │ └── plupload │ │ │ ├── changelog.txt │ │ │ ├── docs │ │ │ └── api │ │ │ │ ├── class_plupload.File.html │ │ │ │ ├── class_plupload.QueueProgress.html │ │ │ │ ├── class_plupload.Runtime.html │ │ │ │ ├── class_plupload.Uploader.html │ │ │ │ ├── class_plupload.html │ │ │ │ ├── class_plupload.runtimes.BrowserPlus.html │ │ │ │ ├── class_plupload.runtimes.Flash.html │ │ │ │ ├── class_plupload.runtimes.Gears.html │ │ │ │ ├── class_plupload.runtimes.Html4.html │ │ │ │ ├── class_plupload.runtimes.Html5.html │ │ │ │ ├── class_plupload.runtimes.Silverlight.html │ │ │ │ ├── css │ │ │ │ ├── general.css │ │ │ │ ├── grids.css │ │ │ │ ├── jquery.treeview.css │ │ │ │ ├── reset.css │ │ │ │ ├── shCore.css │ │ │ │ └── shThemeMoxieDoc.css │ │ │ │ ├── img │ │ │ │ ├── class.gif │ │ │ │ ├── event.gif │ │ │ │ ├── help.png │ │ │ │ ├── inherit-arrow.gif │ │ │ │ ├── inherited.gif │ │ │ │ ├── loader.gif │ │ │ │ ├── magnifier.png │ │ │ │ ├── method.gif │ │ │ │ ├── namespace.gif │ │ │ │ ├── page_white_code.png │ │ │ │ ├── page_white_copy.png │ │ │ │ ├── printer.png │ │ │ │ ├── property.gif │ │ │ │ ├── root.gif │ │ │ │ ├── static.gif │ │ │ │ ├── treeview-famfamfam.gif │ │ │ │ └── wrapping.png │ │ │ │ ├── index.html │ │ │ │ ├── js │ │ │ │ ├── clipboard.swf │ │ │ │ ├── general.js │ │ │ │ ├── jquery.treeview.min.js │ │ │ │ ├── shBrushJScript.js │ │ │ │ └── shCore.js │ │ │ │ ├── model.xml │ │ │ │ └── plupload.vsdoc.js │ │ │ ├── examples │ │ │ ├── bg.jpg │ │ │ ├── custom.html │ │ │ ├── dump.php │ │ │ ├── jquery │ │ │ │ ├── events.html │ │ │ │ ├── jquery_ui_widget.html │ │ │ │ ├── queue_widget.html │ │ │ │ └── s3.php │ │ │ └── upload.php │ │ │ ├── js │ │ │ ├── i18n │ │ │ │ ├── cs.js │ │ │ │ ├── da.js │ │ │ │ ├── de.js │ │ │ │ ├── es.js │ │ │ │ ├── fi.js │ │ │ │ ├── fr.js │ │ │ │ ├── hr.js │ │ │ │ ├── hu.js │ │ │ │ ├── it.js │ │ │ │ ├── ja.js │ │ │ │ ├── lv.js │ │ │ │ ├── nl.js │ │ │ │ ├── pt-br.js │ │ │ │ ├── ro.js │ │ │ │ ├── ru.js │ │ │ │ ├── sr.js │ │ │ │ └── sv.js │ │ │ ├── jquery.plupload.queue │ │ │ │ ├── css │ │ │ │ │ └── jquery.plupload.queue.css │ │ │ │ ├── img │ │ │ │ │ ├── backgrounds.gif │ │ │ │ │ ├── buttons-disabled.png │ │ │ │ │ ├── buttons.png │ │ │ │ │ ├── delete.gif │ │ │ │ │ ├── done.gif │ │ │ │ │ ├── error.gif │ │ │ │ │ ├── throbber.gif │ │ │ │ │ └── transp50.png │ │ │ │ └── jquery.plupload.queue.js │ │ │ ├── jquery.ui.plupload │ │ │ │ ├── css │ │ │ │ │ └── jquery.ui.plupload.css │ │ │ │ ├── img │ │ │ │ │ ├── plupload-bw.png │ │ │ │ │ └── plupload.png │ │ │ │ └── jquery.ui.plupload.js │ │ │ ├── plupload.browserplus.js │ │ │ ├── plupload.flash.js │ │ │ ├── plupload.flash.swf │ │ │ ├── plupload.full.js │ │ │ ├── plupload.gears.js │ │ │ ├── plupload.html4.js │ │ │ ├── plupload.html5.js │ │ │ ├── plupload.js │ │ │ ├── plupload.silverlight.js │ │ │ └── plupload.silverlight.xap │ │ │ ├── license.txt │ │ │ └── readme.md │ │ ├── user_preferences.js │ │ └── utils.js │ └── stylesheets │ ├── general.css │ ├── ie.css │ ├── undohtml.css │ └── wysiwyg.css ├── recipes └── deploy.rb ├── skylinecms.gemspec ├── test ├── factories.rb ├── integration │ ├── articles_user_access_test.rb │ ├── media_browser_super_access_test.rb │ ├── media_browser_user_access_test.rb │ └── user_preferences_test.rb ├── mocks │ ├── custom_article.rb │ ├── test_article.rb │ ├── test_content_object.rb │ └── test_section.rb ├── test_helper.rb ├── unit │ ├── article_test.rb │ ├── belongs_to_referable_test.rb │ ├── inline_ref_test.rb │ ├── locales_test.rb │ ├── page_test.rb │ ├── referable_uri_test.rb │ ├── sanitizer_test.rb │ ├── test_content_object_test.rb │ ├── test_section_test.rb │ ├── user_preference_test.rb │ └── user_test.rb └── user_access_helper.rb └── vendor ├── andand └── andand.rb ├── digitpaint ├── configure.rb ├── nested_attributes_positioning.rb └── unique_identifiers.rb └── weppos └── url_validation.rb /.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | ydoc/* 3 | .yardoc 4 | pkg/* 5 | public/skyline/javascripts/doc/ -------------------------------------------------------------------------------- /.yardopts: -------------------------------------------------------------------------------- 1 | lib/**/*.rb 2 | app/models/**/*.rb 3 | app/helpers/skyline/*.rb 4 | --no-private 5 | --title "Skyline API documentation" 6 | -o ydoc 7 | - 8 | doc/INSTALL.md 9 | doc/MIGRATION.md 10 | doc/concepts.md -------------------------------------------------------------------------------- /COPYRIGHT: -------------------------------------------------------------------------------- 1 | Copyright 2009 DigitPaint BV 2 | 3 | This library is free software: you can redistribute it and/or modify 4 | it under the terms of the GNU Lesser General Public License as published 5 | by the Free Software Foundation, either version 3 of the License, or 6 | (at your option) any later version. 7 | 8 | This program is distributed in the hope that it will be useful, 9 | but WITHOUT ANY WARRANTY; without even the implied warranty of 10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 | GNU Lesser General Public License for more details. 12 | 13 | You should have received a copy of the GNU General Public License 14 | along with this program. If not, see . 15 | -------------------------------------------------------------------------------- /Gemfile: -------------------------------------------------------------------------------- 1 | source :rubygems 2 | 3 | gemspec 4 | 5 | group :test do 6 | gem "factory_girl_rails", "1.1.0" 7 | gem "shoulda", "2.9.1", :require => "shoulda" 8 | end -------------------------------------------------------------------------------- /app/controllers/skyline/browser/files_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Browser::FilesController < Skyline::ApplicationController 2 | def index 3 | @media_dirs = Skyline::MediaDir.group_by_parent_id 4 | 5 | if params[:referable_type].present? && params[:referable_id].present? 6 | case params[:referable_type] 7 | when "Skyline::MediaFile" then 8 | @media_file = Skyline::MediaFile.find_by_id(params[:referable_id]) 9 | @media_dir = @media_file.directory if @media_file 10 | @active_tab = "Skyline::MediaFile" 11 | end 12 | end 13 | 14 | @active_tab ||= "Skyline::MediaFile" 15 | 16 | render :partial => "index" 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /app/controllers/skyline/browser/images_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Browser::ImagesController < Skyline::ApplicationController 2 | def index 3 | @media_dirs = Skyline::MediaDir.group_by_parent_id 4 | 5 | if params[:referable_type].present? 6 | case params[:referable_type] 7 | when "Skyline::MediaFile" then 8 | @active_tab = "Skyline::MediaFile" 9 | @media_file = Skyline::MediaFile.find_by_id(params[:referable_id]) 10 | @media_dir = @media_file.directory if @media_file 11 | when "Skyline::ReferableUri" then 12 | @active_tab = "Skyline::ReferableUri" 13 | end 14 | end 15 | 16 | @active_tab ||= "Skyline::MediaFile" 17 | 18 | render :partial => "index" 19 | end 20 | end -------------------------------------------------------------------------------- /app/controllers/skyline/browser/media_nodes_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Browser::MediaNodesController < Skyline::ApplicationController 2 | def index 3 | @media_dirs = Skyline::MediaDir.group_by_parent_id 4 | 5 | if params[:referable_type].present? && params[:referable_id].present? 6 | case params[:referable_type] 7 | when "Skyline::MediaDir" then 8 | @media_dir = Skyline::MediaDir.find_by_id(params[:referable_id]) 9 | @active_tab = "Skyline::MediaFile" 10 | end 11 | end 12 | 13 | @active_tab ||= "Skyline::MediaFile" 14 | 15 | render :partial => "index" 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /app/controllers/skyline/browser/pages_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Browser::PagesController < Skyline::ApplicationController 2 | def index 3 | @pages = Skyline::Page.group_by_parent_id 4 | 5 | @active_tab = "Skyline::Page" 6 | @page = Skyline::Page.find_by_id(params[:referable_id]) if params[:referable_id].present? 7 | 8 | render :partial => "index" 9 | end 10 | end -------------------------------------------------------------------------------- /app/controllers/skyline/browser/tabs/content_items_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Browser::Tabs::ContentItemsController < Skyline::ApplicationController 2 | 3 | def show 4 | @content_type = params[:id].singularize.camelize.constantize 5 | @content_items = @content_type.published 6 | @selected_item = @content_type.find_by_id(params[:referable_id]) 7 | end 8 | 9 | end -------------------------------------------------------------------------------- /app/controllers/skyline/browser/tabs/linkables_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Browser::Tabs::LinkablesController < Skyline::ApplicationController 2 | 3 | def show 4 | @linkable_type = Skyline::Linkable.linkables.find{|l| l.name == params[:id]} 5 | @linkables = @linkable_type.all 6 | @linkable = @linkable_type.find_by_id(params[:referable_id]) 7 | end 8 | 9 | end -------------------------------------------------------------------------------- /app/controllers/skyline/browser/tabs/media_library/media_files_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Browser::Tabs::MediaLibrary::MediaFilesController < Skyline::ApplicationController 2 | def index 3 | @media_dir = Skyline::MediaDir.find(params[:media_dir_id]) 4 | @media_file = @media_dir.files.find_by_id(params[:media_file_id]) 5 | end 6 | 7 | # show 8 | # Renders the requested image with specified size parameters and stores the image in the cache. 9 | # If the image is already in the cache then 304 Not Modified is rendered. 10 | # 11 | # ==== Parameters 12 | # size WidthxHeight 13 | 14 | def show 15 | @media_file = Skyline::MediaFile.find(params[:id]) 16 | @media_dir = @media_file.directory 17 | end 18 | 19 | end -------------------------------------------------------------------------------- /app/controllers/skyline/browser/tabs/media_nodes/media_files_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Browser::Tabs::MediaNodes::MediaFilesController < Skyline::ApplicationController 2 | def index 3 | @media_dir = Skyline::MediaDir.find(params[:media_dir_id]) 4 | @media_file = @media_dir.files.find_by_id(params[:media_file_id]) 5 | end 6 | 7 | # show 8 | # Renders the requested image with specified size parameters and stores the image in the cache. 9 | # If the image is already in the cache then 304 Not Modified is rendered. 10 | # 11 | # ==== Parameters 12 | # size WidthxHeight 13 | 14 | def show 15 | @media_file = Skyline::MediaFile.find(params[:id]) 16 | @media_dir = @media_file.directory 17 | end 18 | 19 | end -------------------------------------------------------------------------------- /app/controllers/skyline/content/editors/editable_list_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Content::Editors::EditableListController < Skyline::Skyline2Controller 2 | 3 | helper "skyline/content" 4 | before_filter :get_classes 5 | 6 | def new 7 | @object = @source_object.send(@assoc.name).build 8 | end 9 | 10 | protected 11 | 12 | def get_classes 13 | @source_klass = @implementation.content_class(params[:source_type]) 14 | @source_object = @source_klass.find_by_id(params[:source_id]) || @source_klass.new 15 | @assoc = @source_klass.reflect_on_association(params[:association].to_sym) 16 | @target_klass = @assoc.klass 17 | end 18 | 19 | end 20 | -------------------------------------------------------------------------------- /app/controllers/skyline/content_items_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::ContentItemsController < Skyline::ApplicationController 2 | def new 3 | return unless request.xhr? 4 | if params[:content_item_type].present? 5 | @content_item_class = params[:content_item_type].constantize 6 | end 7 | end 8 | end -------------------------------------------------------------------------------- /app/controllers/skyline/content_sections_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::ContentSectionsController < Skyline::ApplicationController 2 | def new 3 | if params[:taggable_type].present? 4 | @taggable = params[:taggable_type].constantize 5 | @tags = @taggable.available_tags 6 | end 7 | end 8 | end -------------------------------------------------------------------------------- /app/controllers/skyline/link_section_links_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::LinkSectionLinksController < Skyline::ApplicationController 2 | def new 3 | @link = Skyline::LinkSectionLink.new 4 | @link_guid = Guid.new 5 | end 6 | end -------------------------------------------------------------------------------- /app/controllers/skyline/locales_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::LocalesController < Skyline::ApplicationController 2 | 3 | def show 4 | locale = params[:id] 5 | unless @locale = I18n.t("tinymce", :locale => (locale || I18n.locale)) 6 | render :nothing => true, :status => :not_found 7 | end 8 | end 9 | 10 | protected 11 | 12 | def protect? 13 | false 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /app/controllers/skyline/profiles_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::ProfilesController < Skyline::ApplicationController 2 | 3 | def edit 4 | 5 | end 6 | 7 | def update 8 | attributes = params[:user] 9 | current_user.force_password = attributes.andand.delete(:force_password) 10 | current_user.attributes = attributes 11 | current_user.editing_user = current_user 12 | 13 | # We use an instance variable because we want to use it in the render(:update) block. 14 | @saved = current_user.save 15 | 16 | if @saved 17 | notifications[:success] = t(:success, :scope => [:user,:profile,:flashes]) 18 | else 19 | messages.now[:error] = t(:error,:scope => [:user,:profile,:flashes]) 20 | end 21 | end 22 | 23 | end -------------------------------------------------------------------------------- /app/controllers/skyline/redirects_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::RedirectsController < Skyline::ApplicationController 2 | def new 3 | redirect_to Skyline::Section.find_by_id(params[:redirect_section_id]).sectionable.url(request) 4 | end 5 | end -------------------------------------------------------------------------------- /app/controllers/skyline/sections_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::SectionsController < Skyline::ApplicationController 2 | before_filter :find_renderable_scope 3 | 4 | def new 5 | return unless request.xhr? 6 | 7 | @section = Skyline::Section.new 8 | @section.sectionable = params[:sectionable_type].constantize.new 9 | @section_guid = Guid.new 10 | end 11 | 12 | protected 13 | def find_renderable_scope 14 | @renderable_scope = Skyline::Rendering::Scopes::Interface.unserialize(params[:renderable_scope]) if params[:renderable_scope] 15 | raise "Can't load renderable_scope from params[:renderable_scope]: '#{params[:renderable_scope]}'" unless @renderable_scope 16 | end 17 | end -------------------------------------------------------------------------------- /app/controllers/skyline/skyline2_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Skyline2Controller < Skyline::ApplicationController 2 | layout "general" 3 | 4 | around_filter ::Skyline::VersionStamper.instance 5 | 6 | before_filter :load_implementation 7 | 8 | 9 | protected 10 | 11 | def load_implementation 12 | @implementation = Skyline::Content::Implementation.instance 13 | end 14 | 15 | # Returns the current implementation 16 | # -- 17 | def current_implementation 18 | @implementation 19 | end 20 | 21 | end -------------------------------------------------------------------------------- /app/controllers/skyline/user_preferences_controller.rb: -------------------------------------------------------------------------------- 1 | class Skyline::UserPreferencesController < Skyline::ApplicationController 2 | def create 3 | unless params[:skyline_up].blank? 4 | user_preference = ActiveSupport::JSON.decode(params[:skyline_up]) 5 | 6 | if user_preference.values.first == "_delete" 7 | current_user.user_preferences.remove_key(user_preference.keys.first) 8 | up = {} 9 | else 10 | current_user.user_preferences.set(user_preference.keys.first, user_preference.values.first) 11 | up = {user_preference.keys.first => user_preference.values.first} 12 | end 13 | end 14 | respond_to do |format| 15 | format.json { render :json => up } 16 | end 17 | end 18 | end -------------------------------------------------------------------------------- /app/helpers/skyline/editors/boolean.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Editors::Boolean < Skyline::Editors::Editor 2 | def output_without_errors 3 | hidden_field_tag(input_name(self.attribute_names), "0") + 4 | check_box_tag(input_name(self.attribute_names), "1" , field.value(record)) + " " + field.singular_label 5 | end 6 | end -------------------------------------------------------------------------------- /app/helpers/skyline/editors/date.rb: -------------------------------------------------------------------------------- 1 | module Skyline::Editors 2 | class Date < Editor 3 | def output_without_errors 4 | value = field.value(record) 5 | value ||= ::Date.today 6 | 7 | year_options = field.year_options || {} 8 | year_options.merge!({:field_name => "#{field.attribute_name}(1i)", :prefix => input_name(self.attribute_names[0..-2])}) 9 | 10 | select_day(value, :field_name => "#{field.attribute_name}(3i)", :prefix => input_name(self.attribute_names[0..-2])) + 11 | select_month(value, :field_name => "#{field.attribute_name}(2i)", :prefix => input_name(self.attribute_names[0..-2])) + 12 | select_year(value, year_options) 13 | end 14 | end 15 | end -------------------------------------------------------------------------------- /app/helpers/skyline/editors/date_time.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Editors::DateTime < Skyline::Editors::Editor 2 | def output_without_errors 3 | value = field.value(record) 4 | value ||= Time.now 5 | select_day(value, :field_name => "#{field.attribute_name}(3i)", :prefix => input_name(self.attribute_names[0..-2])) + 6 | select_month(value, :field_name => "#{field.attribute_name}(2i)", :prefix => input_name(self.attribute_names[0..-2])) + 7 | select_year(value, :field_name => "#{field.attribute_name}(1i)", :prefix => input_name(self.attribute_names[0..-2])) + " — ".html_safe + 8 | select_hour(value, :field_name => "#{field.attribute_name}(4i)", :prefix => input_name(self.attribute_names[0..-2])) + " : " + 9 | select_minute(value, :field_name => "#{field.attribute_name}(5i)", :prefix => input_name(self.attribute_names[0..-2])) 10 | end 11 | end -------------------------------------------------------------------------------- /app/helpers/skyline/editors/display.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Editors::Display < Skyline::Editors::Editor 2 | def output 3 | heading.to_s + (self.value || l(:content,:editors,:display,:empty)) 4 | end 5 | 6 | def value 7 | case value = field.value(record) 8 | when Date,Time then value.to_formatted_s(:long) 9 | else value 10 | end 11 | end 12 | end -------------------------------------------------------------------------------- /app/helpers/skyline/editors/heading.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Editors::Heading < Skyline::Editors::Editor 2 | def output_without_errors 3 | text_field_tag( 4 | input_name(self.attribute_names), 5 | field.value(record), 6 | :size => 40, 7 | :class => "heading", 8 | :style => params_to_styles(field.style), 9 | :id => input_id(self.attribute_names) 10 | ) 11 | end 12 | 13 | end -------------------------------------------------------------------------------- /app/helpers/skyline/editors/inline_list.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Editors::InlineList < Skyline::Editors::Editor 2 | def postpone?; true; end 3 | 4 | def output 5 | klass = field.reflection.klass 6 | add_link = render(:partial => "add", :locals => {:klass => klass, :record => record, :field => field, :return_to => url_for({})}) 7 | heading + add_link + Presenters::Presenter.create(field.presenter,field.value(record),klass,@template, :collection => field.attribute_name).output() 8 | end 9 | end -------------------------------------------------------------------------------- /app/helpers/skyline/editors/list.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Editors::List < Skyline::Editors::Editor 2 | def output_without_errors 3 | select_tag(input_name(self.attribute_names),option_tags) 4 | end 5 | 6 | private 7 | def option_tags 8 | list = case field.list 9 | when Array, Hash then field.list 10 | when Proc then perform_proc(field.list) 11 | end 12 | options_for_select(list,field.attribute_value(self.record)) 13 | end 14 | 15 | end -------------------------------------------------------------------------------- /app/helpers/skyline/editors/text_field.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Editors::TextField < Skyline::Editors::Editor 2 | def output_without_errors 3 | text_field_tag( 4 | input_name(self.attribute_names), 5 | field.value(record), 6 | :size => 40, 7 | :id => input_id(self.attribute_names), 8 | :style => params_to_styles(field.style), 9 | :class => "full" 10 | ) 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /app/helpers/skyline/editors/textarea.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Editors::Textarea < Skyline::Editors::Editor 2 | def output_without_errors 3 | text_area_tag( 4 | input_name(self.attribute_names), 5 | field.value(record), 6 | :rows => 8,:cols => 50, 7 | :id => input_id(self.attribute_names), 8 | :style => params_to_styles(field.style) 9 | ) 10 | end 11 | end -------------------------------------------------------------------------------- /app/helpers/skyline/editors/textile.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Editors::Textile < Skyline::Editors::Editor 2 | def output_without_errors 3 | text_area_tag( 4 | input_name(self.attribute_names), 5 | field.value(record), 6 | :rows => 8, 7 | :cols => 50, 8 | :class => "textile", 9 | :style => params_to_styles(field.style) 10 | ) + content_tag("div", "You can use textile syntax to format your text. See the syntax rules for help.") 11 | end 12 | end -------------------------------------------------------------------------------- /app/helpers/skyline/editors/wysiwyg.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Editors::Wysiwyg < Skyline::Editors::Editor 2 | def output_without_errors 3 | out = content_tag("div",text_area_tag( 4 | input_name(self.attribute_names), 5 | record.send(field.name), 6 | :class => "wysiwyg", 7 | :rows => 15, 8 | :id => self.tag_id, 9 | :style => "width: 100%; height: 5px; #{params_to_styles(field.style)}" 10 | ).html_safe, :class => "section") 11 | out << self.tinymce_js 12 | end 13 | 14 | def tag_id 15 | "wysiwyg" + self.attribute_names.join("_") 16 | end 17 | 18 | def tinymce_js 19 | javascript_tag "new Skyline.Editor('#{self.tag_id}',{ 20 | contentCss : '#{Skyline::Configuration.url_prefix}/stylesheets/wysiwyg.css', 21 | #{"enableEditHtml : true," if current_user.allow?("tinymce_edit_html")} 22 | language : Application.locale 23 | })" 24 | end 25 | 26 | 27 | end -------------------------------------------------------------------------------- /app/helpers/skyline/js_layout_helper.rb: -------------------------------------------------------------------------------- 1 | module Skyline::JsLayoutHelper 2 | def use_js_layout(name) 3 | @_js_layout = name 4 | end 5 | 6 | def has_js_layout? 7 | @_js_layout.present? 8 | end 9 | 10 | def render_js_layout 11 | return unless @_js_layout 12 | 13 | t = ["Layout"] 14 | t << {:content => "Content", :media => "Media"}[@_js_layout.to_sym] 15 | 16 | layout_js = "new Application.#{t.compact.join(".")}()" 17 | javascript_tag(layout_js) 18 | end 19 | end -------------------------------------------------------------------------------- /app/helpers/skyline/menu_helper.rb: -------------------------------------------------------------------------------- 1 | module Skyline::MenuHelper 2 | 3 | # @param scope [Array] 4 | # @param url [String,Hash] 5 | # @param options [Hash] 6 | def menu_item(*scope) 7 | scope = Array(scope) 8 | url_options = scope.extract_options! 9 | options = url_options.slice!(:method) 10 | 11 | url = scope.pop 12 | scope = current_menu_scope(scope) 13 | if controller.current_menu[0, scope.size] == scope 14 | (options[:class] ||= "") << " active" 15 | end 16 | 17 | 18 | content_tag("li", link_to(t(scope.last, :scope => [:navigation, scope[-2]]), url, url_options), options) 19 | end 20 | 21 | def current_menu_scope(scope) 22 | (@_menu_scope || []) + scope 23 | end 24 | 25 | end -------------------------------------------------------------------------------- /app/helpers/skyline/notification_generator.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::NotificationGenerator < Skyline::MessageGenerator 3 | def js_object 4 | "Application.Notification" 5 | end 6 | end -------------------------------------------------------------------------------- /app/helpers/skyline/presenters/table.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Presenters::Table < Skyline::Presenters::Presenter 2 | 3 | end 4 | -------------------------------------------------------------------------------- /app/middleware/skyline/plugins_loader_middleware.rb: -------------------------------------------------------------------------------- 1 | class Skyline::PluginsLoaderMiddleware 2 | def initialize(app) 3 | @app = app 4 | end 5 | 6 | def call(env) 7 | Rails.application.config.skyline_plugins_manager.load_all! 8 | @app.call(env) 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /app/middleware/skyline/session_scrubber_middleware.rb: -------------------------------------------------------------------------------- 1 | # This middleware will clean out the session for all lower and will put the old values back 2 | # on the way back. 3 | # 4 | # This is needed to have separate session management for Skyline. 5 | # 6 | class Skyline::SessionScrubberMiddleware 7 | 8 | def initialize(app) 9 | @app = app 10 | end 11 | 12 | def call(env) 13 | store_keys = %w{rack.session rack.session.options rack.session.record rack.session.unpacked_cookie_data action_dispatch.request.unsigned_session_cookie} 14 | # Store & remove these keys from ENV 15 | store = store_keys.inject({}){|mem, v| mem[v] = env[v]; env[v] = nil; mem} 16 | @app.call(env) 17 | ensure 18 | store.each do |k,v| 19 | env[k] = v 20 | end 21 | end 22 | 23 | end 24 | -------------------------------------------------------------------------------- /app/models/skyline/associated_tag.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::AssociatedTag < ActiveRecord::Base 3 | self.table_name = "skyline_associated_tags" 4 | 5 | belongs_to :taggable, :polymorphic => true 6 | belongs_to :tag 7 | 8 | after_save :delete_unused_tags 9 | after_destroy :delete_unused_tags 10 | 11 | protected 12 | def delete_unused_tags 13 | Skyline::Tag.delete_unused_tags 14 | end 15 | end -------------------------------------------------------------------------------- /app/models/skyline/grant.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::Grant < ActiveRecord::Base 3 | self.table_name = "skyline_grants" 4 | 5 | belongs_to :user, :class_name => "Skyline::User" 6 | belongs_to :role, :class_name => "Skyline::Role" 7 | 8 | attr_accessible :role_id 9 | 10 | validates_presence_of :role 11 | end 12 | -------------------------------------------------------------------------------- /app/models/skyline/link_section_link.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::LinkSectionLink < ActiveRecord::Base 3 | include Skyline::BelongsToReferable 4 | include Skyline::Positionable 5 | 6 | self.table_name = "skyline_link_section_links" 7 | 8 | self.positionable_scope = :link_section_id 9 | 10 | belongs_to_referable :linked 11 | delegate :url, :external?, :file?, :blank?, :to => :linked 12 | 13 | belongs_to :link_section 14 | 15 | validates_presence_of :title 16 | validate :presence_of_linked 17 | 18 | default_scope :order => "position" 19 | 20 | attr_accessible :title, :position 21 | 22 | protected 23 | def presence_of_linked 24 | self.errors.add :linked, :empty if self.linked.blank? || self.linked.marked_for_destruction? 25 | end 26 | end 27 | -------------------------------------------------------------------------------- /app/models/skyline/media_size.rb: -------------------------------------------------------------------------------- 1 | class Skyline::MediaSize < ActiveRecord::Base 2 | self.table_name = "skyline_media_sizes" 3 | 4 | belongs_to :media_file 5 | 6 | attr_accessible :width, :height 7 | end -------------------------------------------------------------------------------- /app/models/skyline/page_fragment.rb: -------------------------------------------------------------------------------- 1 | class Skyline::PageFragment < Skyline::Article 2 | class Data < Skyline::Article::Data 3 | after_initialize :set_defaults 4 | 5 | attr_accessible :title 6 | 7 | protected 8 | 9 | def set_defaults 10 | self.title ||= I18n.t(:default_title, :scope => [:page_fragment]) 11 | end 12 | end 13 | def self.right_prefix 14 | "page_fragment" 15 | end 16 | 17 | scope :ordered_by_title, :include => :default_variant_data, :order => "#{Data.table_name}.title" 18 | end -------------------------------------------------------------------------------- /app/models/skyline/ref_object.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::RefObject < ActiveRecord::Base 3 | belongs_to :referable, :polymorphic => true, :autosave => true 4 | 5 | self.table_name = "skyline_ref_objects" 6 | 7 | serialize :options 8 | 9 | validates_presence_of :referable_type 10 | 11 | attr_accessible :options, :refering_column_name, :referable_id, :referable_type 12 | end 13 | -------------------------------------------------------------------------------- /app/models/skyline/right.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::Right < ActiveRecord::Base 3 | self.table_name = "skyline_rights" 4 | 5 | has_and_belongs_to_many :roles, :class_name => "Skyline::Role", :join_table => "skyline_rights_skyline_roles" 6 | end 7 | -------------------------------------------------------------------------------- /app/models/skyline/role.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::Role < ActiveRecord::Base 3 | self.table_name = "skyline_roles" 4 | 5 | has_many :grants, :class_name => "Skyline::Grant" 6 | has_many :users, :class_name => "Skyline::User", :through => :grants 7 | 8 | has_and_belongs_to_many :rights, :class_name => "Skyline::Right", :join_table => "skyline_rights_skyline_roles" 9 | end 10 | -------------------------------------------------------------------------------- /app/models/skyline/sections/heading_section.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::Sections::HeadingSection < ActiveRecord::Base 3 | include Skyline::Sections::Interface 4 | 5 | attr_accessible :heading 6 | 7 | self.default_interface = false 8 | end -------------------------------------------------------------------------------- /app/models/skyline/sections/iframe_section.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::Sections::IframeSection < ActiveRecord::Base 3 | extend UrlValidation 4 | include Skyline::Sections::Interface 5 | 6 | validates_numericality_of :width, :height 7 | validates_presence_of :url 8 | validates_format_of_url :url, :schemes => %w{http} 9 | end 10 | -------------------------------------------------------------------------------- /app/models/skyline/sections/link_section.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::Sections::LinkSection < ActiveRecord::Base 3 | include Skyline::Sections::Interface 4 | include NestedAttributesPositioning 5 | 6 | has_many :links, :class_name => "Skyline::LinkSectionLink", :dependent => :destroy 7 | 8 | validate :has_at_least_one_link 9 | 10 | accepts_nested_attributes_for :links, :allow_destroy => true 11 | attr_accessible :links_attributes, :title 12 | 13 | def dup 14 | super.tap do |dup| 15 | dup.links = self.links.collect{|link| link.dup} 16 | end 17 | end 18 | 19 | protected 20 | def has_at_least_one_link 21 | self.errors.add(:links, :no_links) unless self.links.detect{|link| !link.marked_for_destruction?} 22 | end 23 | end 24 | -------------------------------------------------------------------------------- /app/models/skyline/sections/page_fragment_section.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::Sections::PageFragmentSection < ActiveRecord::Base 3 | include Skyline::Sections::Interface 4 | 5 | belongs_to :page_fragment, :class_name => "Skyline::PageFragment" 6 | 7 | validates_presence_of :page_fragment_id 8 | 9 | attr_accessible :page_fragment_id 10 | end 11 | -------------------------------------------------------------------------------- /app/models/skyline/sections/raw_section.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::Sections::RawSection < ActiveRecord::Base 3 | include Skyline::Sections::Interface 4 | 5 | attr_accessible :body 6 | 7 | def to_text 8 | HTML::FullSanitizer.new.sanitize(self.body) 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /app/models/skyline/sections/redirect_section.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::Sections::RedirectSection < ActiveRecord::Base 3 | include Skyline::Sections::Interface 4 | include Skyline::BelongsToReferable 5 | 6 | belongs_to_referable :linked 7 | 8 | validates_numericality_of :delay 9 | 10 | attr_accessible :delay 11 | 12 | def url(request) 13 | if self.linked.external? || self.linked.url =~ /:\/\// 14 | self.linked.url 15 | else 16 | request.protocol + request.host_with_port + self.linked.url 17 | end 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /app/models/skyline/sections/splitter_section.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::Sections::SplitterSection < ActiveRecord::Base 3 | include Skyline::Sections::Interface 4 | 5 | self.default_interface = false 6 | end -------------------------------------------------------------------------------- /app/models/skyline/sections/wysiwyg_section.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::Sections::WysiwygSection < ActiveRecord::Base 3 | include Skyline::Sections::Interface 4 | include Skyline::HasManyReferablesIn 5 | 6 | self.default_interface = false 7 | 8 | has_many_referables_in :body 9 | 10 | attr_accessible :body 11 | 12 | def to_text 13 | HTML::FullSanitizer.new.sanitize(self.body) 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /app/models/skyline/site.rb: -------------------------------------------------------------------------------- 1 | class Skyline::Site 2 | include Comparable 3 | 4 | class << self 5 | def find_by_id(id) 6 | self.new 7 | end 8 | end 9 | 10 | def root 11 | Skyline::Page.find_by_parent_id(nil) 12 | end 13 | 14 | def pages 15 | Skyline::Page 16 | end 17 | 18 | def renderer(options = {}) 19 | Skyline::Rendering::Renderer.new(options.merge(:site => self)) 20 | end 21 | 22 | def named_scope_with_site_for(article_data_class) 23 | {} 24 | end 25 | 26 | def <=>(other) 27 | other.class <=> self.class 28 | end 29 | 30 | end 31 | -------------------------------------------------------------------------------- /app/observers/skyline/article_version_observer.rb: -------------------------------------------------------------------------------- 1 | class Skyline::ArticleVersionObserver < ActiveRecord::Observer 2 | attr_accessor :controller 3 | def before(controller) 4 | self.controller = controller 5 | end 6 | def after(controller) 7 | self.controller = nil 8 | end 9 | 10 | def before_create(article_version) 11 | article_version.creator = self.controller.send(:current_user) if self.controller 12 | end 13 | 14 | def before_save(article_version) 15 | article_version.last_updated_by = self.controller.send(:current_user) if self.controller 16 | end 17 | end -------------------------------------------------------------------------------- /app/observers/skyline/file_cache_sweeper.rb: -------------------------------------------------------------------------------- 1 | class Skyline::FileCacheSweeper < ActiveRecord::Observer 2 | observe Skyline::MediaFile, Skyline::MediaDir 3 | 4 | def after_save(record) 5 | if record.renamed? 6 | expire_for(record) 7 | end 8 | end 9 | 10 | def after_destroy(record) 11 | expire_for(record) 12 | end 13 | 14 | def expire_for(record) 15 | case record 16 | when Skyline::MediaFile 17 | Skyline::MediaCache.destroy_all("object_id = #{record.id} AND object_type = 'Skyline::MediaFile'") 18 | when Skyline::MediaDir 19 | ids = record.files.collect{|f| f.id}.join(",") 20 | Skyline::MediaCache.destroy_all("object_id IN (#{ids}) AND object_type = 'Skyline::MediaFile'") unless ids.blank? 21 | end 22 | end 23 | end 24 | -------------------------------------------------------------------------------- /app/templates/skyline/sections/content_collection_section/default/index.html.erb: -------------------------------------------------------------------------------- 1 | <%= render :partial => "#{content_collection_section.collection_name}", :locals => {content_collection_section.collection_name => content_collection_section.collection} %> -------------------------------------------------------------------------------- /app/templates/skyline/sections/content_item_section/default/index.html.erb: -------------------------------------------------------------------------------- 1 | <% object_type = content_item_section.content_item_type.underscore %> 2 | <% object = content_item_section.content_item_type.constantize.for_content_item_section.find_by_id(content_item_section.content_item_id) %> 3 | 4 | <% if object %> 5 | <%= render :partial => "/#{object_type}", :locals => {object_type.to_sym => object} %> 6 | <% end %> 7 | -------------------------------------------------------------------------------- /app/templates/skyline/sections/heading_section/default/index.html.erb: -------------------------------------------------------------------------------- 1 | <% x = assign(:heading_level).to_i + 1 %> 2 | ><%=heading_section.heading%>> -------------------------------------------------------------------------------- /app/templates/skyline/sections/iframe_section/default/index.html.erb: -------------------------------------------------------------------------------- 1 | <%=content_tag("iframe", content_tag("p", "Your browser does not support iframes. Please visit #{link_to(iframe_section.url(:mode => renderer.mode), iframe_section.url(:mode => renderer.mode), :target => '_blank')} to view the contents of the iframe."), :src => iframe_section.url(:mode => renderer.mode), :width => iframe_section.width, :height => iframe_section.height)%> 2 | -------------------------------------------------------------------------------- /app/templates/skyline/sections/link_section/default/index.html.erb: -------------------------------------------------------------------------------- 1 | <% if link_section.title.present? %> 2 | <% x = assign(:heading_level).to_i + 1 %> 3 | ><%=link_section.title%>> 4 | <% end %> 5 | <% if link_section.links.any? %> 6 | 13 | <% end %> -------------------------------------------------------------------------------- /app/templates/skyline/sections/page_fragment_section/default/index.html.erb: -------------------------------------------------------------------------------- 1 | <% if pf = page_fragment_section.page_fragment %> 2 | <% if pf.sites.include?(site) && pf.published_publication %> 3 | <%= render_collection(pf.published_publication.sections) %> 4 | <% end %> 5 | <% end %> -------------------------------------------------------------------------------- /app/templates/skyline/sections/raw_section/default/index.html.erb: -------------------------------------------------------------------------------- 1 | <%= raw_section.body.html_safe %> -------------------------------------------------------------------------------- /app/templates/skyline/sections/redirect_section/default/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/app/templates/skyline/sections/redirect_section/default/index.html.erb -------------------------------------------------------------------------------- /app/templates/skyline/sections/rss_section/default/index.html.erb: -------------------------------------------------------------------------------- 1 | <% if rss_section.items.any? %> 2 |

<%=rss_section.title%>

3 |
    4 | <% rss_section.items.each do |i| %> 5 |
  • 6 | <%=link_to i[:title], i[:link], :target => "_blank"%> 7 | <%=i[:description]%> 8 |
  • 9 | <% end %> 10 |
11 | <% end %> -------------------------------------------------------------------------------- /app/templates/skyline/sections/splitter_section/default/index.html.erb: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /app/templates/skyline/sections/wysiwyg_section/default/index.html.erb: -------------------------------------------------------------------------------- 1 |
2 | <%= wysiwyg_section.body.html_safe %> 3 |
-------------------------------------------------------------------------------- /app/views/skyline/articles/edit_preview_only.html.erb: -------------------------------------------------------------------------------- 1 |
2 |
3 | <%= @article.class.model_name.human %>: <%= @variant.data.title %> 4 |
5 |
6 | 7 |
8 |
9 |
10 |
<%= t(:actions, :scope => [:article, :headers]) %>
11 |
12 |
13 | <%= render :partial => "meta" %> 14 |
15 |
16 |
-------------------------------------------------------------------------------- /app/views/skyline/articles/page_fragment/_header.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
<%= vd.label_with_text :title %><%= vd.text_field :title, :class => "full" %>
9 | 10 |
11 |
<%= t(:advanced, :scope => [:article, :headers]) %>
12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 |
<%= v.label_with_text :name %><%= v.text_field :name %>
21 |
22 |
23 | 24 | -------------------------------------------------------------------------------- /app/views/skyline/browser/content/_error.html.erb: -------------------------------------------------------------------------------- 1 |
2 |
3 |
4 |
5 | 11 |
12 |
13 |
14 |
15 |

<%= t('error', :scope => [:browser, :content])%>

16 |
17 |
18 |
19 |
20 | <%= link_to_function t(:cancel, :scope => [:buttons]), "Skyline.Dialog.current.cancel()", :class => "cancel" %> 21 |
22 |
23 |
24 |
-------------------------------------------------------------------------------- /app/views/skyline/browser/tabs/content_items/show.js.erb: -------------------------------------------------------------------------------- 1 | document.id("browserContentContentItems").getElements("li a").removeClass("active"); 2 | document.id("browserContentContentItems<%= @content_type %>").getElement("a").addClass("active"); 3 | 4 | $("browserContentContentPanel").replaceHTML('<%=escape_javascript render(:partial => "show") %>'); -------------------------------------------------------------------------------- /app/views/skyline/browser/tabs/external_image/_index.html.erb: -------------------------------------------------------------------------------- 1 | 15 | -------------------------------------------------------------------------------- /app/views/skyline/browser/tabs/external_link/_index.html.erb: -------------------------------------------------------------------------------- 1 | 15 | -------------------------------------------------------------------------------- /app/views/skyline/browser/tabs/linkables/show.js.erb: -------------------------------------------------------------------------------- 1 | document.id("browserLinkableLinkables").getElements("li a").removeClass("active"); 2 | document.id("browserLinkableLinkables<%= @linkable_type.name %>").getElement("a").addClass("active"); 3 | 4 | $("browserLinkableContentPanel").replaceHTML('<%=escape_javascript render(:partial => "show") %>'); -------------------------------------------------------------------------------- /app/views/skyline/browser/tabs/media_library/media_files/index.js.erb: -------------------------------------------------------------------------------- 1 | $("browserMediaContentPanel").replaceHTML('<%=escape_javascript render(:partial => "index") %>'); -------------------------------------------------------------------------------- /app/views/skyline/browser/tabs/media_library/media_files/show.js.erb: -------------------------------------------------------------------------------- 1 | $("browserFileInfo").replace('<%=escape_javascript render(:partial => "show") %>'); -------------------------------------------------------------------------------- /app/views/skyline/browser/tabs/media_nodes/media_files/index.js.erb: -------------------------------------------------------------------------------- 1 | $("browserMediaContentPanel").replaceHTML('<%=escape_javascript render(:partial => "index") %>'); -------------------------------------------------------------------------------- /app/views/skyline/content/_group.html.erb: -------------------------------------------------------------------------------- 1 |
2 |
<%= local_assigns[:title] %>
3 |
4 | <%= local_assigns[:content] %> 5 |
6 |
-------------------------------------------------------------------------------- /app/views/skyline/content/_import.html.erb: -------------------------------------------------------------------------------- 1 | <%= form_tag url, :multipart => true do %> 2 | <%= hidden_field_tag "return_to", params[:return_to] %> 3 | <%= hidden_field_tag "klass", params[:klass] %> 4 |
5 |
6 |
<%= label_tag "xml_file", t(:choose_file, :scope => [:content,:import]) %>
7 |
<%= file_field_tag "xml_file" %>
8 |
9 |
10 |
11 |
12 |
13 | <%= link_to_function t(:cancel, :scope => [:buttons]), "Skyline.Dialog.current.close()", :class => "cancel" %> 14 | <%= submit_button :import, :class => "small green" %> 15 |
16 |
17 |
18 | <% end %> -------------------------------------------------------------------------------- /app/views/skyline/content/_submit.html.erb: -------------------------------------------------------------------------------- 1 | <% if !@element.matching_versions? %> 2 |
3 | <%= t(:version_conflict, :scope => [:content, :edit], :current_author => @element.current_author) %> 4 | <% show_url = object_url(@element,url_options_for_record(@element,:action => "show")) %> 5 | <%= link_to_function(t(:see_changes_by, :scope => [:content, :edit], :current_author => @element.current_author), 6 | "popup('#{show_url}',800,800,'scrollbars=yes')", :href => show_url) %> 7 |
8 |
9 | <%= link_to t(:discard_changes, :scope => [:content, :edit]),object_url(@element,url_options_for_record(@element,:discard => 1)) %> 10 |
11 | <% else %> 12 |
13 | <%= submit_button :save, :class => "medium green", :onclick => "tinymce.triggerSave(); $('contentform').submit();" %> 14 |
15 | <% end %> -------------------------------------------------------------------------------- /app/views/skyline/content/create.html.erb: -------------------------------------------------------------------------------- 1 | <% content_for :header do %> 2 | <%= @title = t :title, :scope => [:content, :create], :class => stack.klass.singular_name.downcase %> 3 | <% end %> 4 | 5 |
6 | <%= content_form :element, {:action => "create", :multipart => true, :submit_value => "save"} do %> 7 | <%= render :partial => "meta" %> 8 | <% end %> 9 |
10 | 11 | <% content_for :footer do %> 12 | <%= render :partial => "submit" %> 13 | <% end %> -------------------------------------------------------------------------------- /app/views/skyline/content/edit.html.erb: -------------------------------------------------------------------------------- 1 | <% content_for :header do %> 2 | <%= @title = t :title, :scope => [:content, :edit], :class => stack.klass.singular_name.downcase, :title => stack.current.human_id %> 3 | <% end %> 4 | 5 |
6 | <%= content_form :element, {:action => "edit", :multipart => true, :submit_value => "save"} do %> 7 | <%= render :partial => "meta" %> 8 | <% end %> 9 |
10 | 11 | <% content_for :footer do %> 12 | <%= render :partial => "submit" %> 13 | <% end %> -------------------------------------------------------------------------------- /app/views/skyline/content/editors/editable_list/new.js.erb: -------------------------------------------------------------------------------- 1 | <% editor = Skyline::Editors::EditableList.new(["element"],@source_object,@source_klass.fields[params[:association].to_sym],@template) %> 2 | $("<%= editor.js_object_name %>").append("bottom", "<%= escape_javascript editor.render_row(@object) %>"); 3 | -------------------------------------------------------------------------------- /app/views/skyline/content/editors/joinable_list/_add.html.erb: -------------------------------------------------------------------------------- 1 |
2 | <%= link_to( 3 | t(:add_more, :scope => [:content], :class => target_class.plural_name), 4 | { 5 | :controller => "skyline/content/editors/joinable_list", 6 | :action => "index", 7 | :source_type => source_object.class.to_s.demodulize.underscore, 8 | :source_id => source_object, 9 | :association => association 10 | }, 11 | :remote => true, 12 | :loading => "toggle_spin('element_skyline_#{association}_add_more','#{t(:loading, :scope => [:content, :global])}')", 13 | :complete => "toggle_spin('element_skyline_#{association}_add_more')", 14 | :class => "add", 15 | :id => "element_skyline_#{association}_add_more" 16 | ) 17 | 18 | #TODO - link_to :remote => true, has not been tested 19 | %> 20 |
-------------------------------------------------------------------------------- /app/views/skyline/content/editors/joinable_list/cancel.js.erb: -------------------------------------------------------------------------------- 1 | $("element_<%= params[:association] %>_browser").replaceHTML(<%= escape_javascript render(:partial => "add", :locals => {:source_object => @source_object,:target_class => @target_klass,:association => @assoc.name}) %>); -------------------------------------------------------------------------------- /app/views/skyline/content/editors/joinable_list/index.js.erb: -------------------------------------------------------------------------------- 1 | $("element_<%= params[:association] %>_browser").replaceHTML(<%= escape_javascript render(:partial => "list") %>); -------------------------------------------------------------------------------- /app/views/skyline/content/editors/joinable_list/new.js.erb: -------------------------------------------------------------------------------- 1 | <% editor = Skyline::Editors::JoinableList.new(["element"],@source_object,@source_klass.fields[params[:association].to_sym],@template) %> 2 | $("<%= editor.js_object_name %>").append("bottom", "<%= escape_javascript editor.render_row(@object) %>"); 3 | <% if params[:add_multiple] != "true" %> 4 | $("element_<%= params[:association] %>_browser").replaceHTML(<%= escape_javascript render(:partial => "add", :locals => {:source_object => @source_object,:target_class => @target_klass,:association => @assoc.name}) %>); 5 | <% end %> 6 | -------------------------------------------------------------------------------- /app/views/skyline/content/error.html.erb: -------------------------------------------------------------------------------- 1 |

<%= l(:content,:error,:title) %>

2 | <%= l(:content,:error,:body) %> -------------------------------------------------------------------------------- /app/views/skyline/content/field.js.erb: -------------------------------------------------------------------------------- 1 | var id = "<%= input_id("field","element",params[:field]) %>"; 2 | $(id).replace("<%= escape_javascript content_field(@element.class, 'element', @element.class.fields[params[:field].to_sym] || Field.new(:name => params[:field]), @element) %>") -------------------------------------------------------------------------------- /app/views/skyline/content/import.js.erb: -------------------------------------------------------------------------------- 1 | <%= dialog( 2 | t(:dialog_title, :scope => [:content, :import]), 3 | :partial => "import", 4 | :locals => {:url => @url, :klass => @klass}, :width => 400) %> -------------------------------------------------------------------------------- /app/views/skyline/content/index.html.erb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/app/views/skyline/content/index.html.erb -------------------------------------------------------------------------------- /app/views/skyline/content/order.js.erb: -------------------------------------------------------------------------------- 1 | <% if @elements %> 2 | $("contentEditPanel").replaceHTML(<%= escape_javascript presenter_for(@elements,stack.klass) %>) 3 | $('contentEditPanel').retrieve('skyline.layout').setup(); 4 | <% else %> 5 | Application.addOddEven("<%= stack.klass.name %>Listing", "tbody tr") 6 | <% end %> -------------------------------------------------------------------------------- /app/views/skyline/content/show.html.erb: -------------------------------------------------------------------------------- 1 | <% @title = t(:title, :scope => [:content,:show], :class => stack.klass.singular_name.downcase, :title => stack.current.human_id) %> 2 | <%= render :partial => "/shared/tiny_mce" %> 3 |
4 |
5 | <%= t(:currently_viewing, :scope => [:content, :show], :current_author => @element.current_author, :current_version => @element.current_version) %> 6 |
7 | 8 | <%= content_fields(@element.class,:element, @element)%> 9 |
-------------------------------------------------------------------------------- /app/views/skyline/content_items/_content_item.html.erb: -------------------------------------------------------------------------------- 1 | <%= skyline_fields_for "article[variants_attributes][1][sections_attributes][#{guid}][sectionable_attributes]", sectionable do |s| %> 2 | <%= s.select :content_item_id, [["",""]] + @content_item_class.for_content_item_section.collect{|item| [item.respond_to?(:human_id) ? item.human_id : item.title, item.id]}%> 3 | <% end %> -------------------------------------------------------------------------------- /app/views/skyline/content_items/new.js.erb: -------------------------------------------------------------------------------- 1 | <% if @content_item_class.present? %> 2 | $("section-<%= params[:guid] %>-content-item-id").replaceHTML('<%= escape_javascript render(:partial => "content_item", :locals => {:guid => params[:guid], :sectionable => Skyline::Sections::ContentItemSection.new}) %>'); 3 | <% else %> 4 | $("section-<%= params[:guid] %>-content-item-id").replaceHTML(""); 5 | (new Fx.Scroll("contentEditPanel")).toBottom(); 6 | <% end %> 7 | -------------------------------------------------------------------------------- /app/views/skyline/content_sections/new.js.erb: -------------------------------------------------------------------------------- 1 | <% if @tags.present? %> 2 | $("section-<%= params[:guid] %>-tags").replace('<%= escape_javascript render(:partial => "tags", :locals => {:guid => params[:guid], :sectionable => @taggable.new})%>'); 3 | <% else %> 4 | $("section-<%= params[:guid] %>-tags").replaceHTML(""); 5 | (new Fx.Scroll("contentEditPanel")).toBottom(); 6 | <% end %> -------------------------------------------------------------------------------- /app/views/skyline/layouts/articles.html.erb: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | <%= render :partial => "skyline/shared/head" %> 7 | 8 | 9 |
10 | <%= t(:loading) %> 11 |
12 | 22 | <%= render_messages %> 23 | <%= render_notifications %> 24 | 25 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /app/views/skyline/layouts/media.html.erb: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | <%= render :partial => "skyline/shared/head" %> 7 | 8 | 9 |
10 | <%= t(:loading) %> 11 |
12 | 18 | <%= render_js_layout %> 19 | <%= render_messages %> 20 | <%= render_notifications %> 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /app/views/skyline/link_section_links/new.js.erb: -------------------------------------------------------------------------------- 1 | <%= skyline_fields_for params[:object_name], @link do |sectionable_form| %> 2 | $("section-<%= params[:guid] %>-links").append("bottom", '<%= escape_javascript render(:partial => "form", :locals => {:sectionable_form => sectionable_form, :link => @link, :guid => params[:guid], :link_guid => @link_guid}) %>' ); 3 | linkSectionLinksSortable<%= params[:guid].to_s.gsub("-","") %>.addItem('link_section_<%= @link_guid %>'); 4 | <% end %> 5 | -------------------------------------------------------------------------------- /app/views/skyline/locales/show.js.erb: -------------------------------------------------------------------------------- 1 | <%- @options = { 2 | "locale" => I18n.locale.to_s.downcase 3 | } -%> 4 | <% @locale.each do |key,value| %> 5 | tinyMCE.addI18n("<%= I18n.locale %>.<%= key %>", 6 | <%= value.update(@options).to_json.html_safe %> 7 | ); 8 | <% end %> 9 | 10 | I18n = {}; 11 | I18n.LibraryUploader = { 12 | allUploadedMessage : "<%= t(:all_uploaded_message, :scope => [:media, :files, :new]).html_safe %>", 13 | someUploadedMessage : "<%= t(:some_uploaded_message, :scope => [:media, :files, :new]).html_safe %>" 14 | }; -------------------------------------------------------------------------------- /app/views/skyline/media/dirs/_index.html.erb: -------------------------------------------------------------------------------- 1 |
2 | <% if @dirs %> 3 | <%= media_dir_tree(@dirs,@dirs[nil], 4 | :selected => @dir, 5 | :id_prefix => "dirItem", 6 | :node_url => lambda{ |node| skyline_media_dir_path(node) }, 7 | :class => "dir" 8 | ) %> 9 | <% end %> 10 |
11 | 12 | -------------------------------------------------------------------------------- /app/views/skyline/media/dirs/edit.js.erb: -------------------------------------------------------------------------------- 1 | $("metaPanel").replaceHTML('<%= escape_javascript(render :partial => "edit") %>'); -------------------------------------------------------------------------------- /app/views/skyline/media/dirs/index.js.erb: -------------------------------------------------------------------------------- 1 | <%= render_messages_javascript %>; 2 | <%= render_notifications_javascript %>; 3 | 4 | $("dirtree").replace('<%= escape_javascript(render :partial => "index") %>'); 5 | $("contentPanel").replaceHTML('<%= escape_javascript(render :partial => "show") %>'); 6 | $("metaPanel").replaceHTML('<%= escape_javascript(render :partial => "edit") %>'); -------------------------------------------------------------------------------- /app/views/skyline/media/dirs/show.js.erb: -------------------------------------------------------------------------------- 1 | <%= render_messages_javascript %>; 2 | <%= render_notifications_javascript %>; 3 | 4 | $("contentPanel").replaceHTML('<%= escape_javascript(render :partial => "/skyline/media/dirs/show") %>'); 5 | $("metaPanel").replaceHTML('<%= escape_javascript(render :partial => "/skyline/media/dirs/edit") %>'); -------------------------------------------------------------------------------- /app/views/skyline/media/files/edit.js.erb: -------------------------------------------------------------------------------- 1 | <%= render_messages_javascript %>; 2 | <%= render_notifications_javascript %>; 3 | 4 | $("metaPanel").replaceHTML('<%= escape_javascript(render :partial => "edit") %>'); 5 | -------------------------------------------------------------------------------- /app/views/skyline/media/files/index.js.erb: -------------------------------------------------------------------------------- 1 | <%= render_messages_javascript %>; 2 | <%= render_notifications_javascript %>; 3 | 4 | $("contentEditPanel").replaceHTML('<%= escape_javascript(render :partial => "index") %>'); -------------------------------------------------------------------------------- /app/views/skyline/media/files/update.js.erb: -------------------------------------------------------------------------------- 1 | <%= render_messages_javascript %>; 2 | <%= render_notifications_javascript %>; 3 | 4 | <% if @saved %> 5 | $("contentEditPanel").replaceHTML('<%= escape_javascript(render :partial => "index") %>'); 6 | <% end %> 7 | 8 | $("metaPanel").replaceHTML('<%= escape_javascript(render :partial => "edit") %>'); 9 | -------------------------------------------------------------------------------- /app/views/skyline/profiles/edit.js.erb: -------------------------------------------------------------------------------- 1 | <%= dialog(t(:dialog_title, :display_name => current_user.display_name, :scope => [:user,:profile]), :partial => "edit", :width => 700) %> -------------------------------------------------------------------------------- /app/views/skyline/profiles/update.js.erb: -------------------------------------------------------------------------------- 1 | <%= render_notifications_javascript %>; 2 | 3 | <% if @saved %> 4 | Skyline.Dialog.current.close(); 5 | location.reload(); 6 | <% else %> 7 | Skyline.Dialog.current.setContent('<%= escape_javascript(render :partial => "edit") %>'); 8 | Skyline.Dialog.current.setup(); 9 | <% end %> -------------------------------------------------------------------------------- /app/views/skyline/publications/index.js.erb: -------------------------------------------------------------------------------- 1 | (function(){ 2 | var sd = new Skyline.Dialog({width: 700, height: 500}); 3 | sd.setTitle('<%= escape_javascript(t(:dialog_title, :scope => [:publication,:index])) %>'); 4 | sd.setContent('<%= escape_javascript(render(:partial => "index")) %>'); 5 | sd.setup(); 6 | sd.show(); 7 | sd.layout = new Application.Layouts.History(sd.contentEl.getElement('form')); 8 | sd.layout.rollbackUrl = '<%= escape_javascript(rollback_skyline_article_publication_path(@article, "000")) %>'; 9 | })(); 10 | -------------------------------------------------------------------------------- /app/views/skyline/sections/_heading_section.html.erb: -------------------------------------------------------------------------------- 1 |
2 | <%= template_select = renderable_templates_select(sectionable_form.object, section_form) %> 3 |
4 | 5 |
6 | <%= sectionable_form.text_field :heading, :class => "heading" %> 7 |
8 | 9 | <% if template_select %> 10 | 15 | <% end %> 16 | 17 | <% if controller.controller_name == "sections" && controller.action_name == "new" %> 18 | 23 | <% end %> 24 | -------------------------------------------------------------------------------- /app/views/skyline/sections/_iframe_section.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
<%= section_form.label_with_text :url %><%= sectionable_form.text_field :url, :class => "full" %>
<%= section_form.label_with_text :size %><%= sectionable_form.text_field :width, :class => "number" %> x <%= sectionable_form.text_field :height, :class => "number" %>
-------------------------------------------------------------------------------- /app/views/skyline/sections/_page_fragment_section.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 7 | 8 |
<%= sectionable_form.label_with_text :page_fragment_id %> 5 | <%= sectionable_form.select :page_fragment_id, [["",""]] + Skyline::PageFragment.ordered_by_title.all.collect{|item| [item.default_variant_data.title, item.id]} %> 6 |
9 | -------------------------------------------------------------------------------- /app/views/skyline/sections/_raw_section.html.erb: -------------------------------------------------------------------------------- 1 | <%= sectionable_form.text_area :body, :class => "full" %> -------------------------------------------------------------------------------- /app/views/skyline/sections/_redirect_section.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 |
<%= sectionable_form.t :linked %><%= link_browser(sectionable_form, :linked, {:skip_class => true}) %>
<%= sectionable_form.label_with_text :delay %><%= sectionable_form.text_field :delay, :class => "number" %> <%= t(:seconds, :scope => [:redirect_section, :form]) %>
11 | -------------------------------------------------------------------------------- /app/views/skyline/sections/_rss_section.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
<%= sectionable_form.label_with_text :url %><%= sectionable_form.text_field :url, :class => "full" %>
<%= sectionable_form.label_with_text :show_count %><%= sectionable_form.text_field :show_count, :class => "number", :text_suffix => " " + t(:messages, :scope => [:section, :form]) %>
-------------------------------------------------------------------------------- /app/views/skyline/sections/_splitter_section.html.erb: -------------------------------------------------------------------------------- 1 | <%= sectionable_form.object.class.model_name.human %> 2 | -------------------------------------------------------------------------------- /app/views/skyline/sections/_wysiwyg_section.html.erb: -------------------------------------------------------------------------------- 1 | <%= sectionable_form.text_area :body, :rows => 3, :class => "wysiwyg", :style => "width: 100%; height: 5px", :value => sectionable_form.object.body(true) %> 2 | -------------------------------------------------------------------------------- /app/views/skyline/sections/new.js.erb: -------------------------------------------------------------------------------- 1 | <% if params[:after_section] 2 | pos, id = :after, params[:after_section] 3 | else 4 | pos, id = :bottom, "contentlist" 5 | end %> 6 | 7 | <%= skyline_fields_for params[:object_name] do |variant_form| %> 8 | $('<%= id %>').append('<%= pos %>', '<%= escape_javascript(render :partial => "form", :locals => {:variant_form => variant_form, :section => @section, :guid => @section_guid}) %>') 9 | <% end %> 10 | 11 | $('contentlist').retrieve('application.sections').addSection('section_<%= @section_guid %>'); 12 | $('contentEditPanel').scrollTo(0, $('contentEditPanel').getScroll().y + $('section_<%= @section_guid %>').getPosition("contentEditPanel").y); 13 | -------------------------------------------------------------------------------- /app/views/skyline/settings/index.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 | <%= t(:title, :scope => [:settings, :index, :blank]) %> 5 | 6 |
7 |
8 |
9 |
10 | <%= t(:content, :scope => [:settings, :index, :blank]) %> 11 |
12 |
13 |
14 |
-------------------------------------------------------------------------------- /app/views/skyline/tags/_available_tags.html.erb: -------------------------------------------------------------------------------- 1 |
    2 | <% (local_assigns.has_key?(:tags) ? local_assigns[:tags] : @tags).each do |t|%> 3 |
  • <%=t.tag%>
  • 4 | <% end %> 5 |
-------------------------------------------------------------------------------- /app/views/skyline/users/_edit.html.erb: -------------------------------------------------------------------------------- 1 | <%= skyline_form_for @user, :as => :user, :url => skyline_user_path(@user), :remote => true, :method => :put do |f|%> 2 | <%= render :partial => "form", :locals => {:f => f, :password_attribute => :force_password, :password_confirmation_attribute => :force_password_confirmation} %> 3 | <% end %> -------------------------------------------------------------------------------- /app/views/skyline/users/_new.html.erb: -------------------------------------------------------------------------------- 1 | <%= skyline_form_for @user, {:as => :user, :url => skyline_users_path(), :remote => true, :method => :post} do |f|%> 2 | <%= render :partial => "form", :locals => {:f => f, :password_attribute => :password, :password_confirmation_attribute => :password_confirmation} %> 3 | <% end %> -------------------------------------------------------------------------------- /app/views/skyline/users/create.js.erb: -------------------------------------------------------------------------------- 1 | Skyline.Dialog.current.setContent('<%= escape_javascript(render :partial => "new") %>'); 2 | Skyline.Dialog.current.setup(); -------------------------------------------------------------------------------- /app/views/skyline/users/edit.js.erb: -------------------------------------------------------------------------------- 1 | <%= dialog(t(:dialog_title, :display_name => @user.display_name, :scope => [:user,:edit]), :partial => "edit", :width => 700) %> -------------------------------------------------------------------------------- /app/views/skyline/users/new.js.erb: -------------------------------------------------------------------------------- 1 | <%= dialog(t(:dialog_title, :display_name => @user.display_name, :scope => [:user,:new]), :partial => "new", :width => 700) %> -------------------------------------------------------------------------------- /app/views/skyline/users/update.js.erb: -------------------------------------------------------------------------------- 1 | Skyline.Dialog.current.setContent('<%= escape_javascript(render :partial => "edit") %>'); 2 | Skyline.Dialog.current.setup(); -------------------------------------------------------------------------------- /bin/skylinecms: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require File.dirname(__FILE__) + "/../lib/skyline/cli/base" 4 | 5 | Skyline::Cli::Base.start -------------------------------------------------------------------------------- /config/initializers/dependencies.rb: -------------------------------------------------------------------------------- 1 | require 'digest/sha1' 2 | require 'ipaddr' 3 | require 'rss/2.0' 4 | require 'open-uri' 5 | 6 | require 'andand/andand' 7 | require 'weppos/url_validation' 8 | require 'digitpaint/unique_identifiers' 9 | require 'digitpaint/configure' 10 | require 'digitpaint/nested_attributes_positioning' -------------------------------------------------------------------------------- /config/initializers/gem_dependencies.rb: -------------------------------------------------------------------------------- 1 | require 'personify' 2 | require "polyglot" 3 | require "sprockets" 4 | require "mime/types" 5 | require "RMagick" 6 | require 'nokogiri' 7 | require "guid" 8 | require "will_paginate" 9 | require "seed-fu" 10 | require 'mail' 11 | require 'omniauth' -------------------------------------------------------------------------------- /config/initializers/locales.rb: -------------------------------------------------------------------------------- 1 | # Add our own locales to load_path 2 | 3 | skyline_locales = Dir[Skyline.root + "config/locales/*.{yml,rb}"] 4 | 5 | # We'll be inserting our locales before the default config/locales directive 6 | idx = I18n.load_path.index(I18n.load_path.grep(/#{Rails.root}\/config\/locales.+/).first) 7 | 8 | if idx 9 | I18n.load_path.insert(idx,*skyline_locales) 10 | else 11 | skyline_locales.each do |locale| 12 | I18n.load_path << locale 13 | end 14 | end 15 | 16 | # And we set a default (this can be overridden in an intializer) 17 | I18n.locale = "en-US" 18 | I18n.default_locale = "en-US" -------------------------------------------------------------------------------- /config/initializers/observers.rb: -------------------------------------------------------------------------------- 1 | unless ( File.basename($0) == "rake" && ARGV.include?("skyline:db:migrate") ) 2 | ActiveRecord::Base.observers += [ 3 | "Skyline::FileCacheSweeper", 4 | "Skyline::ArticleVersionObserver" 5 | ] 6 | end -------------------------------------------------------------------------------- /config/initializers/omniauth.rb: -------------------------------------------------------------------------------- 1 | require "#{Skyline.root}lib/skyline/authentication/skyline_strategy.rb" 2 | -------------------------------------------------------------------------------- /db/fixtures/files/test.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/db/fixtures/files/test.gif -------------------------------------------------------------------------------- /db/fixtures/roots.rb: -------------------------------------------------------------------------------- 1 | if !Object.const_defined?(:Rails) 2 | require File.dirname(__FILE__) + "/../../../../config/environment" 3 | end 4 | 5 | # ======================================================================== 6 | # = Definition of the required rood MediaDir node = 7 | # ======================================================================== 8 | 9 | puts "\n== Creating media dir root" 10 | root = Skyline::MediaDir.find_or_create_by_parent_id(nil) do |md| 11 | md.name = "home" 12 | end 13 | 14 | puts "\n== Creating homepage" 15 | root = Skyline::Page.find_or_create_by_parent_id(nil) -------------------------------------------------------------------------------- /db/migrate/20090302102548_add_media_nodes.rb: -------------------------------------------------------------------------------- 1 | class AddMediaNodes < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_media_nodes do |t| 4 | t.column :parent_id, :integer 5 | t.column :type, :string 6 | t.column :name, :string 7 | t.column :content_type, :string 8 | t.column :size, :integer 9 | t.column :path, :string 10 | t.column :hidden, :boolean, :default => false 11 | end 12 | end 13 | 14 | def self.down 15 | drop_table :skyline_media_nodes 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /db/migrate/20090309133933_add_description_to_media_nodes.rb: -------------------------------------------------------------------------------- 1 | class AddDescriptionToMediaNodes < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_media_nodes, :description, :text 4 | end 5 | 6 | def self.down 7 | remove_column :skyline_media_nodes, :description 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090309134731_add_tags.rb: -------------------------------------------------------------------------------- 1 | class AddTags < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_tags do |t| 4 | t.column :tag, :string 5 | end 6 | end 7 | 8 | def self.down 9 | drop_table :skyline_tags 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /db/migrate/20090309135746_create_media_files_tags.rb: -------------------------------------------------------------------------------- 1 | class CreateMediaFilesTags < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_media_files_skyline_tags, :id => false do |t| 4 | t.column :media_file_id, :integer 5 | t.column :tag_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :skyline_media_files_skyline_tags 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /db/migrate/20090319091342_create_media_caches.rb: -------------------------------------------------------------------------------- 1 | class CreateMediaCaches < ActiveRecord::Migration #:nodoc: 2 | def self.up 3 | create_table :skyline_media_cache do |t| 4 | t.column :url, :string 5 | t.column :object_type, :string 6 | t.column :object_id, :integer 7 | end 8 | end 9 | 10 | def self.down 11 | drop_table :skyline_media_cache 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /db/migrate/20090327083240_create_users.rb: -------------------------------------------------------------------------------- 1 | class CreateUsers < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_users do |t| 4 | t.column :name, :string 5 | t.column :email, :string 6 | t.column :password, :string 7 | t.column :preferences, :string 8 | 9 | t.timestamps 10 | end 11 | end 12 | 13 | def self.down 14 | drop_table :skyline_users 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /db/migrate/20090327084656_create_roles.rb: -------------------------------------------------------------------------------- 1 | class CreateRoles < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_roles do |t| 4 | t.column :name, :string 5 | t.timestamps 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :skyline_roles 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /db/migrate/20090327084719_create_rights.rb: -------------------------------------------------------------------------------- 1 | class CreateRights < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_rights do |t| 4 | t.column :name, :string 5 | t.timestamps 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :skyline_rights 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /db/migrate/20090327084739_create_grants.rb: -------------------------------------------------------------------------------- 1 | class CreateGrants < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_grants, :id => false do |t| 4 | t.column :user_id, :integer 5 | t.column :role_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :skyline_grants 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /db/migrate/20090327090918_create_rights_roles.rb: -------------------------------------------------------------------------------- 1 | class CreateRightsRoles < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_rights_skyline_roles, :id => false do |t| 4 | t.column :right_id, :integer 5 | t.column :role_id, :integer 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :skyline_rights_skyline_roles 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /db/migrate/20090408115155_create_ref_objects.rb: -------------------------------------------------------------------------------- 1 | class CreateRefObjects < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_ref_objects do |t| 4 | t.integer :id 5 | t.integer :referable_id 6 | t.string :referable_type 7 | t.integer :refering_id 8 | t.string :refering_type 9 | t.string :type 10 | t.text :options 11 | 12 | t.timestamps 13 | end 14 | end 15 | 16 | def self.down 17 | drop_table :skyline_ref_objects 18 | end 19 | end 20 | -------------------------------------------------------------------------------- /db/migrate/20090504140044_create_test_sections.rb: -------------------------------------------------------------------------------- 1 | class CreateTestSections < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_test_sections do |t| 4 | t.text :body_a 5 | t.text :body_b 6 | 7 | t.timestamps 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :skyline_test_sections 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /db/migrate/20090506083107_add_refering_column_name_to_ref_objects.rb: -------------------------------------------------------------------------------- 1 | class AddReferingColumnNameToRefObjects < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_ref_objects, :refering_column_name, :string 4 | end 5 | 6 | def self.down 7 | remove_column :skyline_ref_objects, :refering_column_name 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090508145820_create_skyline_pages.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylinePages < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_pages do |t| 4 | t.references :page 5 | t.references :published_publication 6 | t.boolean :in_navigation, :null => false, :default => false 7 | t.integer :position, :null => false 8 | t.timestamps 9 | end 10 | add_index :skyline_pages, [:page_id, :position], :name => "sp_page_id_position" 11 | add_index :skyline_pages, [:page_id, :in_navigation], :name => "sp_page_id_in_navigation" 12 | end 13 | 14 | def self.down 15 | drop_table :skyline_pages 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /db/migrate/20090508150149_create_skyline_sections.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineSections < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_sections do |t| 4 | t.references :page_version 5 | t.references :sectionable, :polymorphic => true 6 | t.integer :position, :null => false, :default => 1 7 | t.string :template 8 | t.timestamps 9 | end 10 | 11 | add_index :skyline_sections, [:page_version_id, :position], :name => "ss_page_version_id_position" 12 | end 13 | 14 | def self.down 15 | drop_table :skyline_sections 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /db/migrate/20090508150204_create_skyline_wysiwyg_sections.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineWysiwygSections < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_wysiwyg_sections do |t| 4 | t.column :body, :mediumtext 5 | t.timestamps 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :skyline_wysiwyg_sections 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /db/migrate/20090508150210_create_skyline_rss_sections.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineRssSections < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_rss_sections do |t| 4 | t.string :url 5 | t.integer :show_count 6 | t.timestamps 7 | end 8 | end 9 | 10 | def self.down 11 | drop_table :skyline_rss_sections 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /db/migrate/20090511074702_create_test_content_objs.rb: -------------------------------------------------------------------------------- 1 | class CreateTestContentObjs < ActiveRecord::Migration 2 | def self.up 3 | create_table :test_content_objs do |t| 4 | t.integer :image_id 5 | t.string :header 6 | 7 | t.timestamps 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :test_content_objs 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /db/migrate/20090519143912_add_skyline_pages_locked.rb: -------------------------------------------------------------------------------- 1 | class AddSkylinePagesLocked < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_pages, :locked, :boolean, :default => false, :null => false 4 | end 5 | 6 | def self.down 7 | remove_column :skyline_pages, :locked 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090525081942_rename_test_content_objs.rb: -------------------------------------------------------------------------------- 1 | class RenameTestContentObjs < ActiveRecord::Migration 2 | def self.up 3 | rename_table :test_content_objs, :test_content_objects 4 | end 5 | 6 | def self.down 7 | rename_table :test_content_objects, :test_content_objs 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090526090049_add_pages_url_part.rb: -------------------------------------------------------------------------------- 1 | class AddPagesUrlPart < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_pages, :url_part, :string, :null => false, :default => "" 4 | end 5 | 6 | def self.down 7 | remove_column :skyline_pages, :url_part 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090527130112_create_skyline_iframe_sections.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineIframeSections < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_iframe_sections do |t| 4 | t.string :url 5 | t.integer :width 6 | t.integer :height 7 | t.timestamps 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :skyline_iframe_sections 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /db/migrate/20090528080308_create_skyline_versions.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineVersions < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_versions do |t| 4 | t.column :versionable_id, :integer 5 | t.column :versionable_type, :string 6 | t.column :version, :integer 7 | t.column :author, :string 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :skyline_versions 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /db/migrate/20090528090319_create_skyline_actions.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineActions < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_actions do |t| 4 | t.column :type, :string 5 | t.column :class_name, :string 6 | t.column :record_id, :integer 7 | t.column :perform_at, :timestamp 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :skyline_actions 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /db/migrate/20090608131055_add_skyline_pages_navigation_title.rb: -------------------------------------------------------------------------------- 1 | class AddSkylinePagesNavigationTitle < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_pages, :navigation_title, :string 4 | end 5 | 6 | def self.down 7 | remove_column :skyline_pages, :navigation_title 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090610134844_create_skyline_content_collection_sections.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineContentCollectionSections < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_content_collection_sections do |t| 4 | t.string :content_type, :null => false 5 | t.integer :number, :null => false 6 | t.timestamps 7 | end 8 | end 9 | 10 | def self.down 11 | drop_table :skyline_content_sections 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /db/migrate/20090610142139_add_skyline_tags_taggable_type.rb: -------------------------------------------------------------------------------- 1 | class AddSkylineTagsTaggableType < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_tags, :taggable_type, :string, :null => false, :default => "" 4 | add_index :skyline_tags, [:taggable_type, :tag], :name => "sk_taggable_type_tag" 5 | execute("UPDATE skyline_tags SET taggable_type='Skyline::MediaFile'") 6 | end 7 | 8 | def self.down 9 | remove_column :skyline_tags, :taggable_type 10 | end 11 | end -------------------------------------------------------------------------------- /db/migrate/20090610143446_move_skyline_media_files_skyline_tags_to_skyline_associated_tags.rb: -------------------------------------------------------------------------------- 1 | class MoveSkylineMediaFilesSkylineTagsToSkylineAssociatedTags < ActiveRecord::Migration 2 | def self.up 3 | rename_table :skyline_media_files_skyline_tags, :skyline_associated_tags 4 | rename_column :skyline_associated_tags, :media_file_id, :taggable_id 5 | add_column :skyline_associated_tags, :taggable_type, :string, :null => false, :default => "" 6 | execute "UPDATE skyline_associated_tags SET taggable_type='Skyline::MediaNode'" 7 | end 8 | 9 | def self.down 10 | remove_column :skyline_associated_tags, :taggable_type 11 | rename_column :skyline_associated_tags, :taggable_id, :media_file_id 12 | rename_table :skyline_associated_tags, :skyline_media_files_skyline_tags 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /db/migrate/20090616091122_add_skyline_pages_persistent.rb: -------------------------------------------------------------------------------- 1 | class AddSkylinePagesPersistent < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_pages, :persistent, :boolean, :null => false, :default => false 4 | end 5 | 6 | def self.down 7 | remove_column :skyline_pages, :persistent 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090616091432_add_skyline_pages_identifier.rb: -------------------------------------------------------------------------------- 1 | class AddSkylinePagesIdentifier < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_pages, :identifier, :string 4 | end 5 | 6 | def self.down 7 | remove_column :skyline_pages, :identifier 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090616134834_create_skyline_heading_section.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineHeadingSection < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_heading_sections do |t| 4 | t.string :heading, :null => false 5 | t.timestamps 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :skyline_heading_sections 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /db/migrate/20090624113754_create_skyline_content_item_section.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineContentItemSection < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_content_item_sections do |t| 4 | t.string :content_item_type, :null => false 5 | t.integer :content_item_id, :null => false 6 | t.timestamps 7 | end 8 | end 9 | 10 | def self.down 11 | drop_table :skyline_content_item_sections 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /db/migrate/20090624134548_create_skyline_splitter_section.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineSplitterSection < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_splitter_sections do |t| 4 | t.timestamps 5 | end 6 | end 7 | 8 | def self.down 9 | drop_table :skyline_splitter_sections 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /db/migrate/20090624154213_create_skyline_link_sections.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineLinkSections < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_link_sections do |t| 4 | t.string :title 5 | t.timestamps 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :skyline_link_sections 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /db/migrate/20090624154251_create_skyline_link_section_links.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineLinkSectionLinks < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_link_section_links do |t| 4 | t.integer :link_section_id, :null => false 5 | t.integer :linked_id 6 | t.string :custom_url 7 | t.string :title 8 | t.integer :position, :null => false 9 | t.timestamps 10 | end 11 | add_index :skyline_link_section_links, [:link_section_id, :position], :name => "slsl_link_section_id_position" 12 | end 13 | 14 | def self.down 15 | drop_table :skyline_link_section_links 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /db/migrate/20090625110837_remove_skyline_actions.rb: -------------------------------------------------------------------------------- 1 | class RemoveSkylineActions < ActiveRecord::Migration 2 | def self.up 3 | drop_table :skyline_actions 4 | end 5 | 6 | def self.down 7 | create_table "skyline_actions", :force => true do |t| 8 | t.string "type" 9 | t.string "class_name" 10 | t.integer "record_id" 11 | t.datetime "perform_at" 12 | end 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /db/migrate/20090630100045_add_media_nodes_file_type.rb: -------------------------------------------------------------------------------- 1 | class Skyline::MediaFile < Skyline::MediaNode 2 | def set_file_type! 3 | file_type = determine_file_type 4 | self.update_attribute(:file_type, file_type) unless file_type.blank? 5 | end 6 | end 7 | 8 | class AddMediaNodesFileType < ActiveRecord::Migration 9 | 10 | def self.up 11 | add_column :skyline_media_nodes, :file_type, :string 12 | Skyline::MediaFile.all(:conditions => "file_type = '' OR file_type IS NULL").each do |media_file| 13 | media_file.set_file_type! 14 | end 15 | 16 | end 17 | 18 | def self.down 19 | remove_column :skyline_media_nodes, :file_type 20 | end 21 | end 22 | -------------------------------------------------------------------------------- /db/migrate/20090702160937_add_media_node_dimensions.rb: -------------------------------------------------------------------------------- 1 | class AddMediaNodeDimensions < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_media_nodes, :width, :integer 4 | add_column :skyline_media_nodes, :height, :integer 5 | Skyline::MediaFile.find_all_by_file_type("image").each do |mf| 6 | begin 7 | img = Magick::Image::read(mf.file_path).first 8 | mf.update_attributes({:width => img.columns, :height => img.rows}); 9 | rescue 10 | end 11 | end 12 | end 13 | 14 | def self.down 15 | remove_column :skyline_media_nodes, :height 16 | remove_column :skyline_media_nodes, :width 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /db/migrate/20090703101812_rename_page_title_tag.rb: -------------------------------------------------------------------------------- 1 | class RenamePageTitleTag < ActiveRecord::Migration 2 | def self.up 3 | rename_column :skyline_page_versions, :title_tag, :custom_title_tag 4 | end 5 | 6 | def self.down 7 | rename_column :skyline_page_versions, :custom_title_tag, :title_tag 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090706124019_add_skyline_media_node_title.rb: -------------------------------------------------------------------------------- 1 | class AddSkylineMediaNodeTitle < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_media_nodes, :title, :string 4 | remove_column :skyline_media_nodes, :hidden 5 | end 6 | 7 | def self.down 8 | add_column :skyline_media_nodes, :hidden, :boolean, :default => false 9 | remove_column :skyline_media_nodes, :title 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /db/migrate/20090709142235_add_system_users_flag.rb: -------------------------------------------------------------------------------- 1 | class AddSystemUsersFlag < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_users, :system, :boolean, :default => false 4 | end 5 | 6 | def self.down 7 | remove_column :skyline_users, :system 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090710145157_add_skyline_users_destroyed.rb: -------------------------------------------------------------------------------- 1 | class AddSkylineUsersDestroyed < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_users, :destroyed, :boolean, :default => false 4 | end 5 | 6 | def self.down 7 | remove_column :skyline_users, :destroyed 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090713133240_add_skyline_grants_primary_key.rb: -------------------------------------------------------------------------------- 1 | class AddSkylineGrantsPrimaryKey < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_grants, :id, :primary_key 4 | end 5 | 6 | def self.down 7 | remove_column :skyline_grants, :id 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090723132822_add_skyline_page_version_current_editor.rb: -------------------------------------------------------------------------------- 1 | class AddSkylinePageVersionCurrentEditor < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_page_versions, :current_editor_id, :integer 4 | add_column :skyline_page_versions, :current_editor_timestamp, :timestamp 5 | add_column :skyline_page_versions, :current_editor_since, :timestamp 6 | end 7 | 8 | def self.down 9 | remove_column :skyline_page_versions, :current_editor_since 10 | remove_column :skyline_page_versions, :current_editor_timestamp 11 | remove_column :skyline_page_versions, :current_editor_id 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /db/migrate/20090804072505_create_skyline_sections_raw_sections.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineSectionsRawSections < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_sections_raw_sections do |t| 4 | t.text :body 5 | 6 | t.timestamps 7 | end 8 | end 9 | 10 | def self.down 11 | drop_table :skyline_sections_raw_sections 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /db/migrate/20090804074053_create_skyline_sections_media_sections.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineSectionsMediaSections < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_sections_media_sections do |t| 4 | t.integer :linked_id 5 | t.string :custom_url 6 | t.string :alignment 7 | t.integer :width 8 | t.integer :height 9 | t.text :caption 10 | end 11 | end 12 | 13 | def self.down 14 | drop_table :skyline_sections_media_sections 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /db/migrate/20090807074314_create_skyline_sections_redirect_sections.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineSectionsRedirectSections < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_sections_redirect_sections do |t| 4 | t.integer :linked_id 5 | t.string :custom_url 6 | t.integer :delay, :null => false, :default => 0 7 | end 8 | end 9 | 10 | def self.down 11 | drop_table :skyline_sections_redirect_sections 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /db/migrate/20090807112358_add_roles_system.rb: -------------------------------------------------------------------------------- 1 | class AddRolesSystem < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_roles, :system, :boolean, :null => false, :default => 0 4 | end 5 | 6 | def self.down 7 | remove_column :skyline_roles, :system 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090807143152_remove_articles_cached_fields.rb: -------------------------------------------------------------------------------- 1 | class RemoveArticlesCachedFields < ActiveRecord::Migration 2 | def self.up 3 | remove_column :skyline_articles, :navigation_title 4 | end 5 | 6 | def self.down 7 | add_column :skyline_articles, :navigation_title, :string 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20090810130159_remove_page_url_part_constraint.rb: -------------------------------------------------------------------------------- 1 | class RemovePageUrlPartConstraint < ActiveRecord::Migration 2 | def self.up 3 | change_column :skyline_articles, :url_part, :string, :null => true 4 | change_column :skyline_articles, :position, :integer, :default => 1 5 | end 6 | 7 | def self.down 8 | change_column :skyline_articles, :url_part, :string, :null => false 9 | change_column :skyline_articles, :position, :integer, :default => nil 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /db/migrate/20090810131440_create_skyline_page_fragement_data.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylinePageFragementData < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_page_fragment_data, :force => true do |t| 4 | t.string :title 5 | t.timestamps 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :skyline_page_fragment_data 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /db/migrate/20090812154655_create_skyline_sections_page_fragment_sections.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineSectionsPageFragmentSections < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_sections_page_fragment_sections do |t| 4 | t.integer :page_fragment_id, :null => false 5 | t.timestamps 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :skyline_sections_page_fragment_sections 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /db/migrate/20090814102107_add_associated_tag_id.rb: -------------------------------------------------------------------------------- 1 | class AddAssociatedTagId < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_associated_tags, :id, :primary_key, :null => false 4 | end 5 | 6 | def self.down 7 | remove_column :skyline_associated_tags, :id 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20091008134448_article_position_no_default.rb: -------------------------------------------------------------------------------- 1 | class ArticlePositionNoDefault < ActiveRecord::Migration 2 | def self.up 3 | # execute "ALTER TABLE `skyline_articles` CHANGE `position` `position` INT( 11 ) NOT NULL" 4 | change_column_default(:skyline_articles, :position, nil) 5 | end 6 | 7 | def self.down 8 | change_column :skyline_articles, :position, :integer, :null => false, :default => 1 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /db/migrate/20091013135821_allow_null_for_position_in_articles.rb: -------------------------------------------------------------------------------- 1 | class AllowNullForPositionInArticles < ActiveRecord::Migration 2 | def self.up 3 | change_column :skyline_articles, :position, :integer, :null => true 4 | end 5 | 6 | def self.down 7 | change_column :skyline_articles, :position, :integer, :null => true 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20091202130512_rename_users_destroyed_to_is_destroyed.rb: -------------------------------------------------------------------------------- 1 | class RenameUsersDestroyedToIsDestroyed < ActiveRecord::Migration 2 | def self.up 3 | rename_column :skyline_users, :destroyed, :is_destroyed 4 | end 5 | 6 | def self.down 7 | rename_column :skyline_users, :is_destroyed, :destroyed 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20091202152514_add_media_nodes_date.rb: -------------------------------------------------------------------------------- 1 | class AddMediaNodesDate < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_media_nodes, :date, :date 4 | end 5 | 6 | def self.down 7 | remove_column :skyline_media_nodes, :date 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20091221145204_add_skyline_media_section_link.rb: -------------------------------------------------------------------------------- 1 | class AddSkylineMediaSectionLink < ActiveRecord::Migration 2 | def self.up 3 | rename_column :skyline_sections_media_sections, :linked_id, :media_id 4 | add_column :skyline_sections_media_sections, :link_id, :integer 5 | end 6 | 7 | def self.down 8 | rename_column :skyline_sections_media_sections, :media_id, :linked_id 9 | remove_column :skyline_sections_media_sections, :link_id 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /db/migrate/20100109145958_add_associated_tags_index.rb: -------------------------------------------------------------------------------- 1 | class AddAssociatedTagsIndex < ActiveRecord::Migration 2 | def self.up 3 | add_index :skyline_associated_tags, [:taggable_type, :taggable_id, :tag_id], :name => "sat_ttt" 4 | end 5 | 6 | def self.down 7 | remove_index :skyline_associated_tags, :name => "sat_ttt" 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20100115111440_create_skyline_user_preferences.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineUserPreferences < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_user_preferences do |t| 4 | t.integer :user_id 5 | t.string :key 6 | t.string :encoded_value 7 | t.timestamps 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :user_preferences 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /db/migrate/20100409073447_change_referable_uri_to_text.rb: -------------------------------------------------------------------------------- 1 | class ChangeReferableUriToText < ActiveRecord::Migration 2 | def self.up 3 | change_column :skyline_referable_uris, :uri, :text 4 | end 5 | 6 | def self.down 7 | change_column :skyline_referable_uris, :uri, :string 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/20110816080626_add_skyline_test_article_data.rb: -------------------------------------------------------------------------------- 1 | class AddSkylineTestArticleData < ActiveRecord::Migration 2 | def self.up 3 | create_table :skyline_test_article_data, :force => true do |t| 4 | t.text :intro 5 | t.integer :link_id 6 | t.timestamps 7 | end 8 | end 9 | 10 | def self.down 11 | drop_table :skyline_test_article_data 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /db/migrate/20120327152625_remove_unused_articles_index.rb: -------------------------------------------------------------------------------- 1 | class RemoveUnusedArticlesIndex < ActiveRecord::Migration 2 | def self.up 3 | begin 4 | remove_index :skyline_articles, :name => "sp_page_id_in_navigation" 5 | rescue 6 | puts "Could not remove index: sp_page_id_in_navigation" 7 | end 8 | end 9 | 10 | def self.down 11 | add_index :skyline_pages, [:page_id, :in_navigation], :name => "sp_page_id_in_navigation" 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /db/migrate/20120426083829_add_timestamps_to_skyline_media_nodes.rb: -------------------------------------------------------------------------------- 1 | class AddTimestampsToSkylineMediaNodes < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_media_nodes, :updated_at, :timestamp 4 | 5 | execute "UPDATE skyline_media_nodes SET updated_at = '#{Time.now.utc.to_formatted_s(:db)}'" 6 | end 7 | 8 | def self.down 9 | remove_column :skyline_media_nodes, :updated_at 10 | end 11 | end -------------------------------------------------------------------------------- /db/migrate/20120508113638_add_encryption_method_to_users.rb: -------------------------------------------------------------------------------- 1 | class AddEncryptionMethodToUsers < ActiveRecord::Migration 2 | def self.up 3 | add_column :skyline_users, :encryption_method, :string 4 | execute "UPDATE skyline_users SET encryption_method = 'sha1'" 5 | end 6 | 7 | def self.down 8 | remove_column :skyline_users, :encryption_method 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /db/migrate/20120509082723_add_login_attempts_to_users.rb: -------------------------------------------------------------------------------- 1 | class AddLoginAttemptsToUsers < ActiveRecord::Migration 2 | def change 3 | add_column :skyline_users, :login_attempts, :integer, :default => 0 4 | add_column :skyline_users, :last_login_attempt, :timestamp 5 | end 6 | end 7 | -------------------------------------------------------------------------------- /db/migrate/20120515114410_add_locked_to_users.rb: -------------------------------------------------------------------------------- 1 | class AddLockedToUsers < ActiveRecord::Migration 2 | def change 3 | add_column :skyline_users, :is_locked, :boolean, :default => false 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /db/migrate/20120516140038_create_skyline_media_sizes.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineMediaSizes < ActiveRecord::Migration 2 | def up 3 | create_table :skyline_media_sizes do |t| 4 | t.integer :media_file_id 5 | t.integer :width 6 | t.integer :height 7 | t.timestamps 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :skyline_media_sizes 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /db/migrate/20130205120257_create_skyline_sessions.rb: -------------------------------------------------------------------------------- 1 | class CreateSkylineSessions < ActiveRecord::Migration 2 | def up 3 | create_table :skyline_sessions do |t| 4 | t.string :session_id, :null => false 5 | t.text :data 6 | t.timestamps 7 | end 8 | 9 | add_index :skyline_sessions, :session_id 10 | add_index :skyline_sessions, :updated_at 11 | end 12 | 13 | def self.down 14 | drop_table :skyline_sessions 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /lib/skyline/cli/base.rb: -------------------------------------------------------------------------------- 1 | require 'thor' 2 | 3 | require File.dirname(__FILE__) + '/init' 4 | require File.dirname(__FILE__) + '/../../skyline' 5 | require File.dirname(__FILE__) + '/../version' 6 | 7 | module Skyline 8 | # @private 9 | module Cli 10 | # @private 11 | class Base < Thor 12 | include Thor::Actions 13 | 14 | add_runtime_options! 15 | 16 | desc "init", "Setup Skyline in the current directory, this must be a valid Rails 2.3 application." 17 | def init 18 | invoke Skyline::Cli::Init 19 | end 20 | 21 | end 22 | end 23 | end -------------------------------------------------------------------------------- /lib/skyline/cli/init/templates/config/initializers/skyline_configuration.rb: -------------------------------------------------------------------------------- 1 | Skyline::Configuration.configure do |config| 2 | config.assets_path = File.join(Rails.root,"tmp/upload") 3 | config.media_file_cache_path = File.join(Rails.root,"tmp/cache/media_files/cache") 4 | end -------------------------------------------------------------------------------- /lib/skyline/cli/init/templates/tasks/skyline.rake: -------------------------------------------------------------------------------- 1 | require 'skyline' 2 | import Skyline.root + "tasks/implementation.rake" -------------------------------------------------------------------------------- /lib/skyline/content/exportable.rb: -------------------------------------------------------------------------------- 1 | module Skyline::Content 2 | # @private 3 | module Exportable 4 | 5 | # List of possible export formats for this class 6 | def export_formats 7 | self.exportable_formats || [] 8 | end 9 | 10 | # Set a list of possible export format for this class 11 | # [DOC] 12 | def exportable_as(*formats) 13 | # discard any options for now 14 | options = formats.pop if formats.last.kind_of? Hash 15 | 16 | formats.each do |format| 17 | class << self; self; end.send(:define_method, "export_#{format}"){} 18 | end 19 | if formats.any? 20 | self.exportable_formats = formats 21 | class << self; self; end.send(:define_method,:exportable?) do 22 | true 23 | end 24 | end 25 | end 26 | 27 | end # Exportable 28 | end -------------------------------------------------------------------------------- /lib/skyline/content/meta_data/class_settings.rb: -------------------------------------------------------------------------------- 1 | module Skyline::Content 2 | module MetaData 3 | class ClassSettings < Field #:nodoc: 4 | 5 | def singular_label 6 | singular(self.label,self.klass.to_s.demodulize.underscore.humanize) 7 | end 8 | def plural_label 9 | plural(self.label,self.klass.to_s.demodulize.underscore.humanize.pluralize) 10 | end 11 | 12 | 13 | # Klass these ClassSettings belong to 14 | def klass; self.owner; end 15 | 16 | end 17 | end 18 | end -------------------------------------------------------------------------------- /lib/skyline/javascript_generator_methods.rb: -------------------------------------------------------------------------------- 1 | # The JavascriptGeneratorMethods are added so they can be used within RJS blocks 2 | # and `render :update` blocks. 3 | # 4 | # @private 5 | module Skyline::JavascriptGeneratorMethods 6 | def message(type,message,options={}) 7 | record Skyline::MessageGenerator.new(type,message,options={}) 8 | end 9 | 10 | def notification(type,message,options={}) 11 | record Skyline::NotificationGenerator.new(type,message,options={}) 12 | end 13 | end -------------------------------------------------------------------------------- /lib/skyline/linkable.rb: -------------------------------------------------------------------------------- 1 | # If included the object will be linkable 2 | # currently only works on Articles 3 | module Skyline::Linkable 4 | 5 | class << self 6 | def linkables 7 | Skyline::Configuration.articles.select{|c| c < Skyline::Linkable } 8 | end 9 | end 10 | 11 | def self.included(base) 12 | raise(TypeError, "Expected #{base.inspect} to be a subclass of Skyline::Article") unless base < Skyline::Article 13 | 14 | class << base 15 | def linkable?; true; end 16 | end 17 | 18 | end 19 | 20 | # The URL this linkable can be found on. Needed to create the link 21 | # 22 | # @return String The URL 23 | # @abstract Implement in subclass 24 | def url 25 | raise "Implement in subclass" 26 | end 27 | 28 | end -------------------------------------------------------------------------------- /lib/skyline/rendering/helpers/column_helper.rb: -------------------------------------------------------------------------------- 1 | module Skyline::Rendering::Helpers::ColumnHelper 2 | 3 | # Devides the sections into columns depending on splitter location 4 | # 5 | # @param page_version [ArticleVersion] The ArticleVersion to get section from to split 6 | # 7 | # @return [Array>] An array of columns each containing and array of sections. 8 | def sections_per_column(page_version) 9 | sections_per_col ||= [] 10 | col = 0 11 | page_version.sections.each do |section| 12 | if section.sectionable_type == "Skyline::Sections::SplitterSection" 13 | col += 1 14 | else 15 | sections_per_col[col] ||= [] 16 | sections_per_col[col].push(section) 17 | end 18 | end 19 | sections_per_col 20 | end 21 | 22 | # @deprecated Will be removed in 3.1 for the more general sections_per_column 23 | alias :page_sections_per_column :sections_per_column 24 | 25 | end -------------------------------------------------------------------------------- /lib/skyline/rendering/scopes/interface.rb: -------------------------------------------------------------------------------- 1 | # @abstract Implement this interface in classes that can be used 2 | # as renderable scopes. 3 | module Skyline::Rendering::Scopes::Interface 4 | 5 | # @abstract 6 | def renderer(options = {}) 7 | raise "renderer(options = {}) must be overridden" 8 | end 9 | 10 | # @abstract 11 | def serialize 12 | raise "serialize() must be overridden" 13 | end 14 | 15 | # @abstract 16 | def self.load_from_serialized_string(serialized_string) 17 | raise "self.load_from_serialized_string() must be overridden" 18 | end 19 | 20 | def self.unserialize(serialized_string) 21 | class_name, params = serialized_string.split("-") 22 | class_name.constantize.load_from_serialized_string(params.to_s) 23 | end 24 | 25 | def templates_for(klass_or_obj) 26 | self.renderer.templates_for(klass_or_obj) 27 | end 28 | 29 | end -------------------------------------------------------------------------------- /lib/skyline/rendering/scopes/wildcard.rb: -------------------------------------------------------------------------------- 1 | # @private 2 | class Skyline::Rendering::Scopes::Wildcard 3 | include Skyline::Rendering::Scopes::Interface 4 | 5 | def renderer(options = {}) 6 | Skyline::Rendering::Renderer.new(options) 7 | end 8 | 9 | def serialize 10 | "#{self.class.name}-n/a" 11 | end 12 | 13 | def self.load_from_serialized_string(serialized_string) 14 | self.new 15 | end 16 | end -------------------------------------------------------------------------------- /lib/skylinecms.rb: -------------------------------------------------------------------------------- 1 | require File.dirname(__FILE__) + "/skyline" 2 | 3 | require File.dirname(__FILE__) + '/skyline/engine' if defined?(::Rails) && ::Rails::VERSION::MAJOR == 3 4 | 5 | 6 | -------------------------------------------------------------------------------- /lib/tasks/implementation.rake: -------------------------------------------------------------------------------- 1 | # Only import tasks that we want available from the Gem. 2 | import File.dirname(__FILE__) + "/database.rake" -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/advanced-closed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/advanced-closed.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/advanced-open.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/advanced-open.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/dialog-head.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/dialog-head.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/dialog-shadow-bl-corner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/dialog-shadow-bl-corner.png -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/dialog-shadow-bottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/dialog-shadow-bottom.png -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/dialog-shadow-br-corner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/dialog-shadow-br-corner.png -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/dialog-shadow-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/dialog-shadow-left.png -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/dialog-shadow-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/dialog-shadow-right.png -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/dialog-shadow-tl-corner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/dialog-shadow-tl-corner.png -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/dialog-shadow-top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/dialog-shadow-top.png -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/dialog-shadow-tr-corner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/dialog-shadow-tr-corner.png -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/dots.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/dots.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/hover.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/hover.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/login-contentarea.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/login-contentarea.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/mainnavigation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/mainnavigation.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/menu-arrow-bottom.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/menu-arrow-bottom.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/menu-arrow-right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/menu-arrow-right.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/menubutton-active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/menubutton-active.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/menubutton-arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/menubutton-arrow.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/menubutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/menubutton.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/messages-confirmation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/messages-confirmation.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/messages-error-icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/messages-error-icon.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/panel-dt.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/panel-dt.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/panel-footer.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/panel-footer.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/panel-head-closed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/panel-head-closed.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/panel-head-open.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/panel-head-open.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/panel-head.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/panel-head.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/pixel-blue.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/pixel-blue.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/pixel-gray.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/pixel-gray.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/progressbar-bar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/progressbar-bar.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/progressbar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/progressbar.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/section-splitter.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/section-splitter.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/selected.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/selected.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/tree-li-closed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/tree-li-closed.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/tree-li-last.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/tree-li-last.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/tree-li-open.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/tree-li-open.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/tree-li.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/tree-li.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/tree-ul.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/tree-ul.gif -------------------------------------------------------------------------------- /public/skyline/images/backgrounds/usernavigation.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/backgrounds/usernavigation.gif -------------------------------------------------------------------------------- /public/skyline/images/buttons/buttons-medium.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/buttons/buttons-medium.gif -------------------------------------------------------------------------------- /public/skyline/images/buttons/buttons-small.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/buttons/buttons-small.gif -------------------------------------------------------------------------------- /public/skyline/images/buttons/dialog-close.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/buttons/dialog-close.gif -------------------------------------------------------------------------------- /public/skyline/images/buttons/section-delete.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/buttons/section-delete.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/attachment.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/attachment.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/audio.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/audio.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/cog-blue.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/cog-blue.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/cog.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/cog.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/compressed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/compressed.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/default.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/default.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/drag.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/drag.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/excel.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/excel.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/executable.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/executable.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/false.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/false.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/file-failed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/file-failed.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/file-success.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/file-success.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/flash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/flash.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/folder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/folder.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/html.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/html.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/image.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/image.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/link-external.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/link-external.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/lock-open.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/lock-open.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/lock.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/lock.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/pages.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/pages.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/pdf.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/pdf.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/powerpoint.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/powerpoint.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/text.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/text.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/toolbar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/toolbar.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/true.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/true.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/video.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/video.gif -------------------------------------------------------------------------------- /public/skyline/images/icons/word.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/icons/word.gif -------------------------------------------------------------------------------- /public/skyline/images/logo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/logo.gif -------------------------------------------------------------------------------- /public/skyline/images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/logo.png -------------------------------------------------------------------------------- /public/skyline/images/spinner.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/images/spinner.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/README: -------------------------------------------------------------------------------- 1 | == Skyline Javscripts 2 | 3 | During development the SprocketsMiddleware will regenerate application.js and skyline.js on every request. 4 | 5 | In production they will be rendered once and then cached. -------------------------------------------------------------------------------- /public/skyline/javascripts/src/application_preinit.js: -------------------------------------------------------------------------------- 1 | // Required pre-initializer needs to be in seperate file because of the way sprockets loads 2 | // requires. 3 | var Application = {}; -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor.js: -------------------------------------------------------------------------------- 1 | //= require "skyline.editor/src/skyline.editor.js" -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/assets/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/assets/icons.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/dialogs/skyline_code.html: -------------------------------------------------------------------------------- 1 |
2 |
3 | 4 |
5 |
6 | 12 |
13 |
14 | 15 | 18 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/src/tinymce_preinit.js: -------------------------------------------------------------------------------- 1 | window.tinyMCEPreInit = {}; 2 | tinyMCEPreInit.suffix = ""; 3 | tinyMCEPreInit.base = "/javascripts/skyline.editor"; 4 | tinyMCEPreInit.query = ""; -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/test/lorem.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. 6 | 7 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/classes/util/JSONP.js: -------------------------------------------------------------------------------- 1 | /** 2 | * JSONP.js 3 | * 4 | * Copyright, Moxiecode Systems AB 5 | * Released under LGPL License. 6 | * 7 | * License: http://www.tinymce.com/license 8 | * Contributing: http://www.tinymce.com/contributing 9 | */ 10 | 11 | tinymce.create('static tinymce.util.JSONP', { 12 | callbacks : {}, 13 | count : 0, 14 | 15 | send : function(o) { 16 | var t = this, dom = tinymce.DOM, count = o.count !== undefined ? o.count : t.count, id = 'tinymce_jsonp_' + count; 17 | 18 | t.callbacks[count] = function(json) { 19 | dom.remove(id); 20 | delete t.callbacks[count]; 21 | 22 | o.callback(json); 23 | }; 24 | 25 | dom.add(dom.doc.body, 'script', {id : id , src : o.url, type : 'text/javascript'}); 26 | t.count++; 27 | } 28 | }); 29 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/advhr/css/advhr.css: -------------------------------------------------------------------------------- 1 | input.radio {border:1px none #000; background:transparent; vertical-align:middle;} 2 | .panel_wrapper div.current {height:80px;} 3 | #width {width:50px; vertical-align:middle;} 4 | #width2 {width:50px; vertical-align:middle;} 5 | #size {width:100px;} 6 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/advhr/editor_plugin.js: -------------------------------------------------------------------------------- 1 | (function(){tinymce.create("tinymce.plugins.AdvancedHRPlugin",{init:function(a,b){a.addCommand("mceAdvancedHr",function(){a.windowManager.open({file:b+"/rule.htm",width:250+parseInt(a.getLang("advhr.delta_width",0)),height:160+parseInt(a.getLang("advhr.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("advhr",{title:"advhr.advhr_desc",cmd:"mceAdvancedHr"});a.onNodeChange.add(function(d,c,e){c.setActive("advhr",e.nodeName=="HR")});a.onClick.add(function(c,d){d=d.target;if(d.nodeName==="HR"){c.selection.select(d)}})},getInfo:function(){return{longname:"Advanced HR",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advhr",tinymce.plugins.AdvancedHRPlugin)})(); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/advhr/langs/en_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.advhr_dlg',{size:"Height",noshade:"No Shadow",width:"Width",normal:"Normal",widthunits:"Units"}); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/advimage/css/advimage.css: -------------------------------------------------------------------------------- 1 | #src_list, #over_list, #out_list {width:280px;} 2 | .mceActionPanel {margin-top:7px;} 3 | .alignPreview {border:1px solid #000; width:140px; height:140px; overflow:hidden; padding:5px;} 4 | .checkbox {border:0;} 5 | .panel_wrapper div.current {height:305px;} 6 | #prev {margin:0; border:1px solid #000; width:428px; height:150px; overflow:auto;} 7 | #align, #classlist {width:150px;} 8 | #width, #height {vertical-align:middle; width:50px; text-align:center;} 9 | #vspace, #hspace, #border {vertical-align:middle; width:30px; text-align:center;} 10 | #class_list {width:180px;} 11 | input {width: 280px;} 12 | #constrain, #onmousemovecheck {width:auto;} 13 | #id, #dir, #lang, #usemap, #longdesc {width:200px;} 14 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/advimage/editor_plugin.js: -------------------------------------------------------------------------------- 1 | (function(){tinymce.create("tinymce.plugins.AdvancedImagePlugin",{init:function(a,b){a.addCommand("mceAdvImage",function(){if(a.dom.getAttrib(a.selection.getNode(),"class","").indexOf("mceItem")!=-1){return}a.windowManager.open({file:b+"/image.htm",width:480+parseInt(a.getLang("advimage.delta_width",0)),height:385+parseInt(a.getLang("advimage.delta_height",0)),inline:1},{plugin_url:b})});a.addButton("image",{title:"advimage.image_desc",cmd:"mceAdvImage"})},getInfo:function(){return{longname:"Advanced image",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("advimage",tinymce.plugins.AdvancedImagePlugin)})(); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/advimage/img/sample.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/advlink/css/advlink.css: -------------------------------------------------------------------------------- 1 | .mceLinkList, .mceAnchorList, #targetlist {width:280px;} 2 | .mceActionPanel {margin-top:7px;} 3 | .panel_wrapper div.current {height:320px;} 4 | #classlist, #title, #href {width:280px;} 5 | #popupurl, #popupname {width:200px;} 6 | #popupwidth, #popupheight, #popupleft, #popuptop {width:30px;vertical-align:middle;text-align:center;} 7 | #id, #style, #classes, #target, #dir, #hreflang, #lang, #charset, #type, #rel, #rev, #tabindex, #accesskey {width:200px;} 8 | #events_panel input {width:200px;} 9 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/editor_plugin.js: -------------------------------------------------------------------------------- 1 | (function(a){a.create("tinymce.plugins.EmotionsPlugin",{init:function(b,c){b.addCommand("mceEmotion",function(){b.windowManager.open({file:c+"/emotions.htm",width:250+parseInt(b.getLang("emotions.delta_width",0)),height:160+parseInt(b.getLang("emotions.delta_height",0)),inline:1},{plugin_url:c})});b.addButton("emotions",{title:"emotions.emotions_desc",cmd:"mceEmotion"})},getInfo:function(){return{longname:"Emotions",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/emotions",version:a.majorVersion+"."+a.minorVersion}}});a.PluginManager.add("emotions",a.plugins.EmotionsPlugin)})(tinymce); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cool.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-cry.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-embarassed.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-foot-in-mouth.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-frown.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-frown.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-innocent.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-kiss.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-laughing.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-money-mouth.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-sealed.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-smile.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-surprised.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-tongue-out.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-undecided.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-wink.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-wink.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/img/smiley-yell.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/emotions/langs/en_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.emotions_dlg',{cry:"Cry",cool:"Cool",desc:"Emotions",title:"Insert Emotion",usage:"Use left and right arrows to navigate.",yell:"Yell",wink:"Wink",undecided:"Undecided","tongue_out":"Tongue Out",surprised:"Surprised",smile:"Smile",sealed:"Sealed","money_mouth":"Money Mouth",laughing:"Laughing",kiss:"Kiss",innocent:"Innocent",frown:"Frown","foot_in_mouth":"Foot in Mouth",embarassed:"Embarassed"}); 2 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/example/editor_plugin.js: -------------------------------------------------------------------------------- 1 | (function(){tinymce.PluginManager.requireLangPack("example");tinymce.create("tinymce.plugins.ExamplePlugin",{init:function(a,b){a.addCommand("mceExample",function(){a.windowManager.open({file:b+"/dialog.htm",width:320+parseInt(a.getLang("example.delta_width",0)),height:120+parseInt(a.getLang("example.delta_height",0)),inline:1},{plugin_url:b,some_custom_arg:"custom arg"})});a.addButton("example",{title:"example.desc",cmd:"mceExample",image:b+"/img/example.gif"});a.onNodeChange.add(function(d,c,e){c.setActive("example",e.nodeName=="IMG")})},createControl:function(b,a){return null},getInfo:function(){return{longname:"Example plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example",version:"1.0"}}});tinymce.PluginManager.add("example",tinymce.plugins.ExamplePlugin)})(); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/example/img/example.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/example/img/example.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/example/js/dialog.js: -------------------------------------------------------------------------------- 1 | tinyMCEPopup.requireLangPack(); 2 | 3 | var ExampleDialog = { 4 | init : function() { 5 | var f = document.forms[0]; 6 | 7 | // Get the selected contents as text and place it in the input 8 | f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'}); 9 | f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_arg'); 10 | }, 11 | 12 | insert : function() { 13 | // Insert the contents from the input into the document 14 | tinyMCEPopup.editor.execCommand('mceInsertContent', false, document.forms[0].someval.value); 15 | tinyMCEPopup.close(); 16 | } 17 | }; 18 | 19 | tinyMCEPopup.onInit.add(ExampleDialog.init, ExampleDialog); 20 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/example/langs/en.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.example',{ 2 | desc : 'This is just a template button' 3 | }); 4 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/example/langs/en_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.example_dlg',{ 2 | title : 'This is just a example title' 3 | }); 4 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/example_dependency/editor_plugin.js: -------------------------------------------------------------------------------- 1 | (function(){tinymce.create("tinymce.plugins.ExampleDependencyPlugin",{init:function(a,b){},getInfo:function(){return{longname:"Example Dependency plugin",author:"Some author",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/example_dependency",version:"1.0"}}});tinymce.PluginManager.add("example_dependency",tinymce.plugins.ExampleDependencyPlugin,["example"])})(); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/alert.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/button.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/buttons.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/confirm.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/corners.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/horizontal.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/inlinepopups/skins/clearlooks2/img/vertical.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/media/moxieplayer.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/media/moxieplayer.swf -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/paste/langs/en_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.paste_dlg',{"word_title":"Use Ctrl+V on your keyboard to paste the text into the window.","text_linebreaks":"Keep Linebreaks","text_title":"Use Ctrl+V on your keyboard to paste the text into the window."}); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/preview/example.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 18 | Example of a custom preview page 19 | 20 | 21 | 22 | Editor contents:
23 |
24 | 25 |
26 | 27 | 28 | 29 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/preview/preview.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 10 | {#preview.preview_desc} 11 | 12 | 13 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/print/editor_plugin.js: -------------------------------------------------------------------------------- 1 | (function(){tinymce.create("tinymce.plugins.Print",{init:function(a,b){a.addCommand("mcePrint",function(){a.getWin().print()});a.addButton("print",{title:"print.print_desc",cmd:"mcePrint"})},getInfo:function(){return{longname:"Print",author:"Moxiecode Systems AB",authorurl:"http://tinymce.moxiecode.com",infourl:"http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/print",version:tinymce.majorVersion+"."+tinymce.minorVersion}}});tinymce.PluginManager.add("print",tinymce.plugins.Print)})(); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/searchreplace/css/searchreplace.css: -------------------------------------------------------------------------------- 1 | .panel_wrapper {height:85px;} 2 | .panel_wrapper div.current {height:85px;} 3 | 4 | /* IE */ 5 | * html .panel_wrapper {height:100px;} 6 | * html .panel_wrapper div.current {height:100px;} 7 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/searchreplace/langs/en_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.searchreplace_dlg',{findwhat:"Find What",replacewith:"Replace with",direction:"Direction",up:"Up",down:"Down",mcase:"Match Case",findnext:"Find Next",allreplaced:"All occurrences of the search string were replaced.","searchnext_desc":"Find Again",notfound:"The search has been completed. The search string could not be found.","search_title":"Find","replace_title":"Find/Replace",replaceall:"Replace All",replace:"Replace"}); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/spellchecker/css/content.css: -------------------------------------------------------------------------------- 1 | .mceItemHiddenSpellWord {background:url(../img/wline.gif) repeat-x bottom left; cursor:default;} 2 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin.js -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/spellchecker/editor_plugin_src.js -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/wline.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/spellchecker/img/wline.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/table/css/cell.css: -------------------------------------------------------------------------------- 1 | /* CSS file for cell dialog in the table plugin */ 2 | 3 | .panel_wrapper div.current { 4 | height: 200px; 5 | } 6 | 7 | .advfield { 8 | width: 200px; 9 | } 10 | 11 | #action { 12 | margin-bottom: 3px; 13 | } 14 | 15 | #class { 16 | width: 150px; 17 | } -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/table/css/row.css: -------------------------------------------------------------------------------- 1 | /* CSS file for row dialog in the table plugin */ 2 | 3 | .panel_wrapper div.current { 4 | height: 200px; 5 | } 6 | 7 | .advfield { 8 | width: 200px; 9 | } 10 | 11 | #action { 12 | margin-bottom: 3px; 13 | } 14 | 15 | #rowtype,#align,#valign,#class,#height { 16 | width: 150px; 17 | } 18 | 19 | #height { 20 | width: 50px; 21 | } 22 | 23 | .col2 { 24 | padding-left: 20px; 25 | } 26 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/table/css/table.css: -------------------------------------------------------------------------------- 1 | /* CSS file for table dialog in the table plugin */ 2 | 3 | .panel_wrapper div.current { 4 | height: 245px; 5 | } 6 | 7 | .advfield { 8 | width: 200px; 9 | } 10 | 11 | #class { 12 | width: 150px; 13 | } 14 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/table/js/merge_cells.js: -------------------------------------------------------------------------------- 1 | tinyMCEPopup.requireLangPack(); 2 | 3 | var MergeCellsDialog = { 4 | init : function() { 5 | var f = document.forms[0]; 6 | 7 | f.numcols.value = tinyMCEPopup.getWindowArg('cols', 1); 8 | f.numrows.value = tinyMCEPopup.getWindowArg('rows', 1); 9 | }, 10 | 11 | merge : function() { 12 | var func, f = document.forms[0]; 13 | 14 | tinyMCEPopup.restoreSelection(); 15 | 16 | func = tinyMCEPopup.getWindowArg('onaction'); 17 | 18 | func({ 19 | cols : f.numcols.value, 20 | rows : f.numrows.value 21 | }); 22 | 23 | tinyMCEPopup.close(); 24 | } 25 | }; 26 | 27 | tinyMCEPopup.onInit.add(MergeCellsDialog.init, MergeCellsDialog); 28 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/template/blank.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | blank_page 4 | 5 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/template/css/template.css: -------------------------------------------------------------------------------- 1 | #frmbody { 2 | padding: 10px; 3 | background-color: #FFF; 4 | border: 1px solid #CCC; 5 | } 6 | 7 | .frmRow { 8 | margin-bottom: 10px; 9 | } 10 | 11 | #templatesrc { 12 | border: none; 13 | width: 320px; 14 | height: 240px; 15 | } 16 | 17 | .title { 18 | padding-bottom: 5px; 19 | } 20 | 21 | .mceActionPanel { 22 | padding-top: 5px; 23 | } 24 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/template/langs/en_dlg.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.template_dlg',{title:"Templates",label:"Template","desc_label":"Description",desc:"Insert Predefined Template Content",select:"Select a Template",preview:"Preview",warning:"Warning: Updating a template with a different one may cause data loss.","mdate_format":"%Y-%m-%d %H:%M:%S","cdate_format":"%Y-%m-%d %H:%M:%S","months_long":"January,February,March,April,May,June,July,August,September,October,November,December","months_short":"Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec","day_long":"Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday","day_short":"Sun,Mon,Tue,Wed,Thu,Fri,Sat,Sun"}); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/attributes.css: -------------------------------------------------------------------------------- 1 | .panel_wrapper div.current { 2 | height: 290px; 3 | } 4 | 5 | #id, #style, #title, #dir, #hreflang, #lang, #classlist, #tabindex, #accesskey { 6 | width: 200px; 7 | } 8 | 9 | #events_panel input { 10 | width: 200px; 11 | } 12 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/css/popup.css: -------------------------------------------------------------------------------- 1 | input.field, select.field {width:200px;} 2 | input.picker {width:179px; margin-left: 5px;} 3 | input.disabled {border-color:#F2F2F2;} 4 | img.picker {vertical-align:text-bottom; cursor:pointer;} 5 | h1 {padding: 0 0 5px 0;} 6 | .panel_wrapper div.current {height:160px;} 7 | #xhtmlxtrasdel .panel_wrapper div.current, #xhtmlxtrasins .panel_wrapper div.current {height: 230px;} 8 | a.browse span {display:block; width:20px; height:20px; background:url('../../../themes/advanced/img/icons.gif') -140px -20px;} 9 | #datetime {width:180px;} 10 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/abbr.js: -------------------------------------------------------------------------------- 1 | /** 2 | * abbr.js 3 | * 4 | * Copyright 2009, Moxiecode Systems AB 5 | * Released under LGPL License. 6 | * 7 | * License: http://tinymce.moxiecode.com/license 8 | * Contributing: http://tinymce.moxiecode.com/contributing 9 | */ 10 | 11 | function init() { 12 | SXE.initElementDialog('abbr'); 13 | if (SXE.currentAction == "update") { 14 | SXE.showRemoveButton(); 15 | } 16 | } 17 | 18 | function insertAbbr() { 19 | SXE.insertElement('abbr'); 20 | tinyMCEPopup.close(); 21 | } 22 | 23 | function removeAbbr() { 24 | SXE.removeElement('abbr'); 25 | tinyMCEPopup.close(); 26 | } 27 | 28 | tinyMCEPopup.onInit.add(init); 29 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/acronym.js: -------------------------------------------------------------------------------- 1 | /** 2 | * acronym.js 3 | * 4 | * Copyright 2009, Moxiecode Systems AB 5 | * Released under LGPL License. 6 | * 7 | * License: http://tinymce.moxiecode.com/license 8 | * Contributing: http://tinymce.moxiecode.com/contributing 9 | */ 10 | 11 | function init() { 12 | SXE.initElementDialog('acronym'); 13 | if (SXE.currentAction == "update") { 14 | SXE.showRemoveButton(); 15 | } 16 | } 17 | 18 | function insertAcronym() { 19 | SXE.insertElement('acronym'); 20 | tinyMCEPopup.close(); 21 | } 22 | 23 | function removeAcronym() { 24 | SXE.removeElement('acronym'); 25 | tinyMCEPopup.close(); 26 | } 27 | 28 | tinyMCEPopup.onInit.add(init); 29 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/plugins/xhtmlxtras/js/cite.js: -------------------------------------------------------------------------------- 1 | /** 2 | * cite.js 3 | * 4 | * Copyright 2009, Moxiecode Systems AB 5 | * Released under LGPL License. 6 | * 7 | * License: http://tinymce.moxiecode.com/license 8 | * Contributing: http://tinymce.moxiecode.com/contributing 9 | */ 10 | 11 | function init() { 12 | SXE.initElementDialog('cite'); 13 | if (SXE.currentAction == "update") { 14 | SXE.showRemoveButton(); 15 | } 16 | } 17 | 18 | function insertCite() { 19 | SXE.insertElement('cite'); 20 | tinyMCEPopup.close(); 21 | } 22 | 23 | function removeCite() { 24 | SXE.removeElement('cite'); 25 | tinyMCEPopup.close(); 26 | } 27 | 28 | tinyMCEPopup.onInit.add(init); 29 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/colorpicker.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/colorpicker.jpg -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/flash.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/flash.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/icons.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/iframe.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/iframe.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/pagebreak.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/pagebreak.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/quicktime.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/quicktime.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/realmedia.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/realmedia.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/shockwave.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/shockwave.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/trans.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/trans.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/video.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/video.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/windowsmedia.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/img/windowsmedia.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/buttons.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/items.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/items.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/menu_arrow.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/menu_check.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/progress.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/progress.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/default/img/tabs.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_black.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/advanced/skins/o2k7/img/button_bg_silver.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/simple/img/icons.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/simple/img/icons.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/simple/langs/en.js: -------------------------------------------------------------------------------- 1 | tinyMCE.addI18n('en.simple',{"cleanup_desc":"Cleanup Messy Code","redo_desc":"Redo (Ctrl+Y)","undo_desc":"Undo (Ctrl+Z)","numlist_desc":"Insert/Remove Numbered List","bullist_desc":"Insert/Remove Bulleted List","striketrough_desc":"Strikethrough","underline_desc":"Underline (Ctrl+U)","italic_desc":"Italic (Ctrl+I)","bold_desc":"Bold (Ctrl+B)"}); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/simple/skins/default/content.css: -------------------------------------------------------------------------------- 1 | body, td, pre { 2 | font-family: Verdana, Arial, Helvetica, sans-serif; 3 | font-size: 10px; 4 | } 5 | 6 | body { 7 | background-color: #FFFFFF; 8 | } 9 | 10 | .mceVisualAid { 11 | border: 1px dashed #BBBBBB; 12 | } 13 | 14 | /* MSIE specific */ 15 | 16 | * html body { 17 | scrollbar-3dlight-color: #F0F0EE; 18 | scrollbar-arrow-color: #676662; 19 | scrollbar-base-color: #F0F0EE; 20 | scrollbar-darkshadow-color: #DDDDDD; 21 | scrollbar-face-color: #E0E0DD; 22 | scrollbar-highlight-color: #F0F0EE; 23 | scrollbar-shadow-color: #F0F0EE; 24 | scrollbar-track-color: #F5F5F5; 25 | } 26 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/content.css: -------------------------------------------------------------------------------- 1 | body, td, pre {font-family:Verdana, Arial, Helvetica, sans-serif; font-size:10px;} 2 | 3 | body {background: #FFF;} 4 | .mceVisualAid {border: 1px dashed #BBB;} 5 | 6 | /* IE */ 7 | 8 | * html body { 9 | scrollbar-3dlight-color: #F0F0EE; 10 | scrollbar-arrow-color: #676662; 11 | scrollbar-base-color: #F0F0EE; 12 | scrollbar-darkshadow-color: #DDDDDD; 13 | scrollbar-face-color: #E0E0DD; 14 | scrollbar-highlight-color: #F0F0EE; 15 | scrollbar-shadow-color: #F0F0EE; 16 | scrollbar-track-color: #F5F5F5; 17 | } 18 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline.editor/vendor/tinymce/jscripts/tiny_mce/themes/simple/skins/o2k7/img/button_bg.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline.js: -------------------------------------------------------------------------------- 1 | //= require "skyline/src/skyline" 2 | // 3 | //= require "skyline/src/utils" 4 | //= require "events" 5 | //= require "drag" 6 | //= require "layout" 7 | //= require "tree" 8 | //= require "tag_selector" 9 | //= require "dialog" 10 | //= require "tabs" 11 | //= require "toggle" 12 | //= require "menubutton" 13 | //= require "sortable" 14 | //= require "hover_select" 15 | //= require "field_replicator" 16 | //= require "menu" 17 | //= require "table" 18 | 19 | //= require_self 20 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/dialog/button-close.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/dialog/button-close.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/dialog/head.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/dialog/head.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/dialog/shadow-bl-corner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/dialog/shadow-bl-corner.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/dialog/shadow-bottom.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/dialog/shadow-bottom.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/dialog/shadow-br-corner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/dialog/shadow-br-corner.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/dialog/shadow-left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/dialog/shadow-left.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/dialog/shadow-right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/dialog/shadow-right.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/dialog/shadow-tl-corner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/dialog/shadow-tl-corner.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/dialog/shadow-top.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/dialog/shadow-top.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/dialog/shadow-tr-corner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/dialog/shadow-tr-corner.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/menubutton/menubutton-active.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/menubutton/menubutton-active.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/menubutton/menubutton-arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/menubutton/menubutton-arrow.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/menubutton/menubutton.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/menubutton/menubutton.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/tree/icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/tree/icon.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/tree/last.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/tree/last.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/tree/li.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/tree/li.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/tree/middle-closed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/tree/middle-closed.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/tree/middle-open.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/tree/middle-open.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/assets/tree/tree_vert_line.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/assets/tree/tree_vert_line.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/src/skyline.js: -------------------------------------------------------------------------------- 1 | //= require "mootools-core" 2 | //= require "mootools-more" 3 | 4 | /* 5 | Namespace: Skyline 6 | */ 7 | if (typeof Skyline == 'undefined') { 8 | var Skyline = {}; 9 | } -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/test/_dynamic_right.html: -------------------------------------------------------------------------------- 1 | 4 |
5 | 6 |
7 | -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/test/_right_content.html: -------------------------------------------------------------------------------- 1 | Some content that will be loaded dinamically -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/test/last-closed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/test/last-closed.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/test/last-open.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/test/last-open.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/test/middle.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/test/middle.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/test/tree.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/test/tree.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/changelog.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/changelog.txt -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/class.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/class.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/event.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/event.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/help.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/inherit-arrow.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/inherit-arrow.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/inherited.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/inherited.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/loader.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/loader.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/magnifier.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/magnifier.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/method.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/method.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/namespace.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/namespace.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/page_white_code.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/page_white_code.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/page_white_copy.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/page_white_copy.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/printer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/printer.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/property.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/property.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/root.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/root.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/static.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/static.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/treeview-famfamfam.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/treeview-famfamfam.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/wrapping.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/img/wrapping.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/js/clipboard.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/docs/api/js/clipboard.swf -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/examples/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/examples/bg.jpg -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/i18n/cs.js: -------------------------------------------------------------------------------- 1 | // .po file like language pack 2 | plupload.addI18n({ 3 | 'Select files' : 'Vyberte soubory', 4 | 'Add files to the upload queue and click the start button.' : 'Přidejte soubory do fronty a pak spusťte nahrávání.', 5 | 'Filename' : 'Název souboru', 6 | 'Status' : 'Status', 7 | 'Size' : 'Velikost', 8 | 'Add Files' : 'Přidat soubory', 9 | 'Stop current upload' : 'Zastavit nahrávání', 10 | 'Start uploading queue' : 'Spustit frontu nahrávání', 11 | 'Drag files here.' : 'Sem přetáhněte soubory.', 12 | 'Start Upload': 'Spustit nahrávání', 13 | 'Uploaded %d/%d files': 'Nahráno %d/%d souborů' 14 | }); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/i18n/da.js: -------------------------------------------------------------------------------- 1 | // .po file like language pack 2 | plupload.addI18n({ 3 | 'Select files' : 'Vælg filer', 4 | 'Add files to the upload queue and click the start button.' : 'Tilføj filer til køen, og tryk på start.', 5 | 'Filename' : 'Filnavn', 6 | 'Status' : 'Status', 7 | 'Size' : 'Størrelse', 8 | 'Add files' : 'Tilføj filer', 9 | 'Stop current upload' : 'Stop upload', 10 | 'Start uploading queue' : 'Start upload', 11 | 'Drag files here.' : 'Træk filer her.' 12 | }); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/i18n/sr.js: -------------------------------------------------------------------------------- 1 | // Serbian 2 | plupload.addI18n({ 3 | 'Select files' : 'Izaberite fajlove', 4 | 'Add files to the upload queue and click the start button.' : 'Dodajte fajlove u listu i kliknite na dugme Start.', 5 | 'Filename' : 'Naziv fajla', 6 | 'Status' : 'Status', 7 | 'Size' : 'Veličina', 8 | 'Add Files' : 'Dodaj fajlove', 9 | 'Stop current upload' : 'Zaustavi upload', 10 | 'Start uploading queue' : 'Počni upload', 11 | 'Drag files here.' : 'Prevucite fajlove ovde.', 12 | 'Start Upload': 'Počni upload', 13 | 'Uploaded %d/%d files': 'Snimljeno %d/%d fajlova' 14 | }); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/i18n/sv.js: -------------------------------------------------------------------------------- 1 | // .po file like language pack 2 | plupload.addI18n({ 3 | 'Select files' : 'Välj filer', 4 | 'Add files to the upload queue and click the start button.' : 'Lägg till filer till kön och tryck på start.', 5 | 'Filename' : 'Filnamn', 6 | 'Status' : 'Status', 7 | 'Size' : 'Storlek', 8 | 'Add files' : 'Lägg till filer', 9 | 'Stop current upload' : 'Stoppa uppladdningen', 10 | 'Start uploading queue' : 'Starta uppladdningen', 11 | 'Drag files here.' : 'Dra filer hit' 12 | }); -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/backgrounds.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/backgrounds.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/buttons-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/buttons-disabled.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/buttons.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/delete.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/delete.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/done.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/done.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/error.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/error.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/throbber.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/throbber.gif -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/transp50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.plupload.queue/img/transp50.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.ui.plupload/img/plupload-bw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.ui.plupload/img/plupload-bw.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.ui.plupload/img/plupload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/js/jquery.ui.plupload/img/plupload.png -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/plupload.flash.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/js/plupload.flash.swf -------------------------------------------------------------------------------- /public/skyline/javascripts/src/skyline/vendor/plupload/js/plupload.silverlight.xap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/DigitPaint/skyline/745a6058d2b78112ff67416dcd6a329f9ef814bd/public/skyline/javascripts/src/skyline/vendor/plupload/js/plupload.silverlight.xap -------------------------------------------------------------------------------- /public/skyline/stylesheets/ie.css: -------------------------------------------------------------------------------- 1 | #mainnavigation, 2 | #mainnavigation ul, 3 | #mainnavigation li, 4 | #mainnavigation li a, 5 | #mainnavigation li span, 6 | ul.files, 7 | ul.files li, 8 | ul.files li div.file, 9 | .sections li, 10 | ul.toptabs, 11 | .tabs .chrome, 12 | .innerpanel .submit, 13 | .innerpanel .actions, 14 | .tree, 15 | .tree ul, 16 | .tree ul li, 17 | .menubutton li, 18 | .menubutton li a, 19 | .selectlist li, 20 | .selectlist li a{ 21 | zoom: 1; 22 | } 23 | 24 | input.full{ 25 | width: 99%; 26 | } 27 | 28 | .section .head, 29 | .section .body, 30 | #mceToolbarContainer, 31 | .content, 32 | .scrollable{ 33 | zoom: 1; 34 | } 35 | 36 | #newDir{ 37 | width: 84px; 38 | } 39 | 40 | .scrollable{ 41 | background: #fff; 42 | } 43 | 44 | /* Turn off hasLayout */ 45 | .footerPanel .content{ 46 | zoom: 0; 47 | } -------------------------------------------------------------------------------- /test/mocks/custom_article.rb: -------------------------------------------------------------------------------- 1 | class Skyline::CustomArticle < Skyline::Article 2 | class Data < Skyline::Article::Data 3 | self.table_name = :skyline_test_article_data 4 | 5 | end 6 | 7 | def self.right_prefix 8 | "custom_article" 9 | end 10 | 11 | end 12 | -------------------------------------------------------------------------------- /test/mocks/test_article.rb: -------------------------------------------------------------------------------- 1 | class Skyline::TestArticle < Skyline::Article 2 | class Data < Skyline::Article::Data 3 | self.table_name = :skyline_test_article_data 4 | 5 | # include Skyline::HasManyReferablesIn 6 | # has_many_referables_in :intro 7 | # 8 | # include Skyline::BelongsToReferable 9 | # belongs_to_referable :link 10 | end 11 | end 12 | -------------------------------------------------------------------------------- /test/mocks/test_section.rb: -------------------------------------------------------------------------------- 1 | class Skyline::TestSection < ActiveRecord::Base 2 | include Skyline::Sections::Interface 3 | include Skyline::HasManyReferablesIn 4 | 5 | has_many_referables_in :body_a 6 | has_many_referables_in :body_b 7 | 8 | attr_accessor :fail_validation 9 | 10 | validate :validate_fail_validation 11 | 12 | self.table_name = "skyline_test_sections" 13 | 14 | attr_accessible :body_a, :body_b 15 | 16 | protected 17 | 18 | def validate_fail_validation 19 | self.errors.add(:base, "FAILED!!") if self.fail_validation == true 20 | end 21 | 22 | 23 | end 24 | 25 | --------------------------------------------------------------------------------