zena 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +18 -0
- data/README.txt +133 -0
- data/app/controllers/application_controller.rb +3 -0
- data/app/controllers/comments_controller.rb +141 -0
- data/app/controllers/data_entries_controller.rb +81 -0
- data/app/controllers/discussions_controller.rb +48 -0
- data/app/controllers/documents_controller.rb +136 -0
- data/app/controllers/groups_controller.rb +99 -0
- data/app/controllers/iformats_controller.rb +78 -0
- data/app/controllers/links_controller.rb +98 -0
- data/app/controllers/nodes_controller.rb +497 -0
- data/app/controllers/preferences_controller.rb +52 -0
- data/app/controllers/relations_controller.rb +95 -0
- data/app/controllers/sessions_controller.rb +41 -0
- data/app/controllers/sites_controller.rb +112 -0
- data/app/controllers/users_controller.rb +139 -0
- data/app/controllers/versions_controller.rb +268 -0
- data/app/controllers/virtual_classes_controller.rb +95 -0
- data/app/helpers/application_helper.rb +4 -0
- data/app/helpers/documents_helper.rb +13 -0
- data/app/helpers/nodes_helper.rb +20 -0
- data/app/helpers/versions_helper.rb +18 -0
- data/app/models/book.rb +242 -0
- data/app/models/cache.rb +52 -0
- data/app/models/cached_page.rb +134 -0
- data/app/models/comment.rb +125 -0
- data/app/models/contact.rb +32 -0
- data/app/models/contact_content.rb +70 -0
- data/app/models/contact_version.rb +40 -0
- data/app/models/data_entry.rb +162 -0
- data/app/models/discussion.rb +65 -0
- data/app/models/document.rb +146 -0
- data/app/models/document_content.rb +186 -0
- data/app/models/document_version.rb +13 -0
- data/app/models/dyn_attribute.rb +4 -0
- data/app/models/group.rb +142 -0
- data/app/models/iformat.rb +146 -0
- data/app/models/image.rb +96 -0
- data/app/models/image_content.rb +189 -0
- data/app/models/image_version.rb +21 -0
- data/app/models/link.rb +121 -0
- data/app/models/node.rb +1752 -0
- data/app/models/note.rb +58 -0
- data/app/models/page.rb +53 -0
- data/app/models/project.rb +10 -0
- data/app/models/reference.rb +18 -0
- data/app/models/relation.rb +18 -0
- data/app/models/relation_proxy.rb +379 -0
- data/app/models/section.rb +5 -0
- data/app/models/site.rb +355 -0
- data/app/models/skin.rb +20 -0
- data/app/models/template.rb +134 -0
- data/app/models/template_content.rb +112 -0
- data/app/models/template_version.rb +37 -0
- data/app/models/text_document.rb +162 -0
- data/app/models/text_document_content.rb +46 -0
- data/app/models/text_document_version.rb +21 -0
- data/app/models/user.rb +412 -0
- data/app/models/version.rb +328 -0
- data/app/models/virtual_class.rb +134 -0
- data/app/models/zip.rb +6 -0
- data/app/views/comments/_add.rhtml +6 -0
- data/app/views/comments/_bin.rhtml +5 -0
- data/app/views/comments/_form.rhtml +26 -0
- data/app/views/comments/_li.rhtml +13 -0
- data/app/views/comments/_li_simple.rhtml +3 -0
- data/app/views/comments/_list.rhtml +13 -0
- data/app/views/comments/create.rjs +32 -0
- data/app/views/comments/edit.rjs +2 -0
- data/app/views/comments/empty_bin.rjs +1 -0
- data/app/views/comments/index.rhtml +12 -0
- data/app/views/comments/publish.rjs +7 -0
- data/app/views/comments/remove.rjs +9 -0
- data/app/views/comments/reply_to.rjs +2 -0
- data/app/views/comments/update.rjs +1 -0
- data/app/views/data_entries/_li.html.erb +9 -0
- data/app/views/data_entries/create.rjs +1 -0
- data/app/views/data_entries/destroy.rjs +1 -0
- data/app/views/data_entries/edit.rjs +1 -0
- data/app/views/data_entries/index.html.erb +5 -0
- data/app/views/data_entries/show.html.erb +5 -0
- data/app/views/data_entries/show.rjs +1 -0
- data/app/views/data_entries/update.rjs +1 -0
- data/app/views/discussions/_add.rhtml +6 -0
- data/app/views/discussions/_form.rhtml +21 -0
- data/app/views/discussions/_li.rhtml +9 -0
- data/app/views/discussions/_list.rhtml +4 -0
- data/app/views/discussions/create.rjs +10 -0
- data/app/views/discussions/remove.rjs +7 -0
- data/app/views/discussions/show.rjs +1 -0
- data/app/views/discussions/update.rjs +2 -0
- data/app/views/documents/_crop.rhtml +10 -0
- data/app/views/documents/crop_form.rjs +4 -0
- data/app/views/documents/new.rhtml +18 -0
- data/app/views/documents/show.rhtml +17 -0
- data/app/views/groups/_add.rhtml +6 -0
- data/app/views/groups/_form.rhtml +44 -0
- data/app/views/groups/_li.rhtml +13 -0
- data/app/views/groups/create.rjs +8 -0
- data/app/views/groups/destroy.rjs +2 -0
- data/app/views/groups/edit.html.erb +5 -0
- data/app/views/groups/index.rhtml +6 -0
- data/app/views/groups/show.html.erb +5 -0
- data/app/views/groups/show.rjs +1 -0
- data/app/views/iformats/_add.rhtml +6 -0
- data/app/views/iformats/_form.rhtml +29 -0
- data/app/views/iformats/_li.rhtml +15 -0
- data/app/views/iformats/create.rjs +8 -0
- data/app/views/iformats/destroy.rjs +11 -0
- data/app/views/iformats/edit.html.erb +5 -0
- data/app/views/iformats/index.rhtml +7 -0
- data/app/views/iformats/show.html.erb +5 -0
- data/app/views/iformats/show.rjs +1 -0
- data/app/views/iformats/update.rjs +5 -0
- data/app/views/image/_title.rhtml +8 -0
- data/app/views/links/_add.rhtml +6 -0
- data/app/views/links/_form.rhtml +34 -0
- data/app/views/links/_li.rhtml +7 -0
- data/app/views/links/_list.rhtml +9 -0
- data/app/views/links/create.rjs +5 -0
- data/app/views/links/destroy.rjs +11 -0
- data/app/views/links/show.rjs +5 -0
- data/app/views/nodes/404.html +15 -0
- data/app/views/nodes/500.html +15 -0
- data/app/views/nodes/_dates.rhtml +13 -0
- data/app/views/nodes/_edit_attribute.rhtml +32 -0
- data/app/views/nodes/_gallery.rhtml +16 -0
- data/app/views/nodes/_groups.rhtml +25 -0
- data/app/views/nodes/_import_results.rhtml +20 -0
- data/app/views/nodes/_list_nodes.rhtml +9 -0
- data/app/views/nodes/_parent.rhtml +15 -0
- data/app/views/nodes/_position.rhtml +22 -0
- data/app/views/nodes/_results.rhtml +29 -0
- data/app/views/nodes/_show_attr.rhtml +6 -0
- data/app/views/nodes/_table.rhtml +14 -0
- data/app/views/nodes/clear_order.rjs +7 -0
- data/app/views/nodes/create.rjs +17 -0
- data/app/views/nodes/drive.rjs +2 -0
- data/app/views/nodes/drop.rjs +1 -0
- data/app/views/nodes/edit.html.erb +17 -0
- data/app/views/nodes/edit.rjs +7 -0
- data/app/views/nodes/import.rhtml +10 -0
- data/app/views/nodes/save_text.rjs +13 -0
- data/app/views/nodes/search.rjs +3 -0
- data/app/views/nodes/show.rjs +1 -0
- data/app/views/nodes/table_update.rjs +8 -0
- data/app/views/nodes/update.rjs +29 -0
- data/app/views/nodes/zafu.rjs +1 -0
- data/app/views/relations/_add.erb +6 -0
- data/app/views/relations/_form.erb +43 -0
- data/app/views/relations/_li.erb +16 -0
- data/app/views/relations/create.rjs +8 -0
- data/app/views/relations/destroy.rjs +6 -0
- data/app/views/relations/edit.erb +2 -0
- data/app/views/relations/index.erb +6 -0
- data/app/views/relations/new.erb +2 -0
- data/app/views/relations/show.rjs +1 -0
- data/app/views/relations/update.rjs +5 -0
- data/app/views/search/_form.rhtml +13 -0
- data/app/views/sites/_form.erb +37 -0
- data/app/views/sites/_li.erb +13 -0
- data/app/views/sites/clear_cache.rjs +2 -0
- data/app/views/sites/edit.erb +2 -0
- data/app/views/sites/index.erb +6 -0
- data/app/views/sites/show.rjs +1 -0
- data/app/views/sites/update.rjs +5 -0
- data/app/views/sites/zena_up.html.erb +11 -0
- data/app/views/templates/defaults/+adminLayout.zafu +69 -0
- data/app/views/templates/defaults/+login.zafu +32 -0
- data/app/views/templates/document_create_tabs/_file.rhtml +13 -0
- data/app/views/templates/document_create_tabs/_import.rhtml +9 -0
- data/app/views/templates/document_create_tabs/_template.rhtml +22 -0
- data/app/views/templates/document_create_tabs/_text_doc.rhtml +14 -0
- data/app/views/templates/drive_tabs/_drive.rhtml +11 -0
- data/app/views/templates/drive_tabs/_help.rhtml +0 -0
- data/app/views/templates/drive_tabs/_links.rhtml +8 -0
- data/app/views/templates/edit_tabs/_contact.rhtml +8 -0
- data/app/views/templates/edit_tabs/_custom.rhtml +6 -0
- data/app/views/templates/edit_tabs/_document.rhtml +8 -0
- data/app/views/templates/edit_tabs/_help.rhtml +7 -0
- data/app/views/templates/edit_tabs/_image.rhtml +19 -0
- data/app/views/templates/edit_tabs/_template.rhtml +8 -0
- data/app/views/templates/edit_tabs/_text.rhtml +1 -0
- data/app/views/templates/edit_tabs/_textdocument.rhtml +16 -0
- data/app/views/templates/edit_tabs/_title.rhtml +27 -0
- data/app/views/users/_add.rhtml +6 -0
- data/app/views/users/_form.rhtml +49 -0
- data/app/views/users/_li.rhtml +18 -0
- data/app/views/users/change_info.rjs +7 -0
- data/app/views/users/change_password.rjs +7 -0
- data/app/views/users/create.rjs +8 -0
- data/app/views/users/index.rhtml +7 -0
- data/app/views/users/preferences.html.erb +40 -0
- data/app/views/users/show.rjs +1 -0
- data/app/views/users/update.rjs +16 -0
- data/app/views/versions/_li.rhtml +3 -0
- data/app/views/versions/_list.rhtml +5 -0
- data/app/views/versions/_tr.rhtml +10 -0
- data/app/views/versions/backup.rjs +16 -0
- data/app/views/versions/css_preview.rjs +2 -0
- data/app/views/versions/destroy.rjs +6 -0
- data/app/views/versions/diff.rjs +3 -0
- data/app/views/versions/edit.rhtml +55 -0
- data/app/views/versions/preview.rjs +9 -0
- data/app/views/versions/show.rjs +5 -0
- data/app/views/versions/update.rjs +9 -0
- data/app/views/virtual_classes/_add.erb +6 -0
- data/app/views/virtual_classes/_form.erb +30 -0
- data/app/views/virtual_classes/_li.erb +12 -0
- data/app/views/virtual_classes/create.rjs +8 -0
- data/app/views/virtual_classes/destroy.rjs +6 -0
- data/app/views/virtual_classes/index.erb +7 -0
- data/app/views/virtual_classes/new.erb +2 -0
- data/app/views/virtual_classes/show.rjs +1 -0
- data/app/views/virtual_classes/update.rjs +5 -0
- data/bin/zena +5 -0
- data/bricks/captcha/MIT-LICENSE +19 -0
- data/bricks/captcha/README +11 -0
- data/bricks/captcha/patch/application_controller.rb +10 -0
- data/bricks/captcha/patch/application_helper.rb +32 -0
- data/bricks/captcha/patch/site.rb +2 -0
- data/bricks/captcha/zafu/captcha.rb +29 -0
- data/bricks/math/patch/application_helper.rb +95 -0
- data/bricks/tags/README +31 -0
- data/bricks/tags/lib/has_tags.rb +164 -0
- data/bricks/tags/patch/node.rb +15 -0
- data/bricks/tags/test/sites/zena/links.yml +11 -0
- data/bricks/tags/test/unit/tags_test.rb +103 -0
- data/bricks/tags/test/zafu/tags.yml +28 -0
- data/bricks/toto.zip +0 -0
- data/config/awstats.conf.rhtml +1497 -0
- data/config/boot.rb +109 -0
- data/config/database.rhtml +25 -0
- data/config/database.yml +40 -0
- data/config/database_example.yml +27 -0
- data/config/deploy.rb +382 -0
- data/config/deploy_config_example.rb +7 -0
- data/config/environment.rb +13 -0
- data/config/environments/development.rb +21 -0
- data/config/environments/production.rb +27 -0
- data/config/environments/test.rb +22 -0
- data/config/gems.yml +46 -0
- data/config/httpd.rhtml +18 -0
- data/config/initializers/mime_types.rb +10 -0
- data/config/initializers/zena.rb +1 -0
- data/config/locales/de.yml +120 -0
- data/config/locales/fr-CH.yml +123 -0
- data/config/locales/fr.yml +123 -0
- data/config/mongrel_upload_progress.conf +7 -0
- data/config/routes.rb +3 -0
- data/config/start.html +44 -0
- data/config/stats.vhost.rhtml +40 -0
- data/config/vhost.rhtml +84 -0
- data/config/vhost_www.rhtml +10 -0
- data/config/zena.rb +39 -0
- data/db/init/base/help.en.zml +94 -0
- data/db/init/base/help.fr.zml +88 -0
- data/db/init/base/skins.zml +3 -0
- data/db/init/base/skins/default.zml +10 -0
- data/db/init/base/skins/default/Node-+adminLayout.zafu +45 -0
- data/db/init/base/skins/default/Node-+index.zafu +1 -0
- data/db/init/base/skins/default/Node-+login.zafu +25 -0
- data/db/init/base/skins/default/Node-+notFound.zafu +14 -0
- data/db/init/base/skins/default/Node-+popupLayout.zafu +39 -0
- data/db/init/base/skins/default/Node-+search.zafu +20 -0
- data/db/init/base/skins/default/Node-tree.zafu +19 -0
- data/db/init/base/skins/default/Node.zafu +95 -0
- data/db/init/base/skins/default/Project.zafu +8 -0
- data/db/init/base/skins/default/favicon.png +0 -0
- data/db/init/base/skins/default/notes.zafu +22 -0
- data/db/init/base/skins/default/style.css +80 -0
- data/db/migrate/001_create_base.rb +156 -0
- data/db/migrate/002_add_time_zone_to_users.rb +9 -0
- data/db/migrate/003_add_custom_base_flag.rb +11 -0
- data/db/migrate/004_rename_template_skin.rb +9 -0
- data/db/migrate/005_create_cached_pages.rb +20 -0
- data/db/migrate/006_create_sites.rb +60 -0
- data/db/migrate/007_replace_id_by_zip.rb +17 -0
- data/db/migrate/008_user_status.rb +10 -0
- data/db/migrate/009_fulltext.rb +13 -0
- data/db/migrate/010_create_template_content.rb +17 -0
- data/db/migrate/011_project_to_section.rb +9 -0
- data/db/migrate/012_add_project_id.rb +12 -0
- data/db/migrate/013_remove_defaults.rb +29 -0
- data/db/migrate/014_add_sort_field.rb +10 -0
- data/db/migrate/015_add_dyn_attributes.rb +18 -0
- data/db/migrate/016_remove_translations.rb +20 -0
- data/db/migrate/017_rename_authorize.rb +9 -0
- data/db/migrate/018_add_auth_option.rb +9 -0
- data/db/migrate/019_remove_user_status.rb +25 -0
- data/db/migrate/020_create_participation.rb +30 -0
- data/db/migrate/021_create_relations.rb +23 -0
- data/db/migrate/022_create_virtual_classes.rb +20 -0
- data/db/migrate/023_ip_on_anonymous_comment.rb +9 -0
- data/db/migrate/024_correct_vclass_kpath.rb +11 -0
- data/db/migrate/025_move_tag_into_vclass.rb +13 -0
- data/db/migrate/026_rename_templates.rb +47 -0
- data/db/migrate/027_add_country_to_contacts.rb +9 -0
- data/db/migrate/028_change_size_of_conten_type_field.rb +9 -0
- data/db/migrate/029_create_data_entries.rb +21 -0
- data/db/migrate/030_redit_auto_publish_site_settings.rb +13 -0
- data/db/migrate/031_create_iformats.rb +21 -0
- data/db/migrate/032_caches_context_as_hash.rb +10 -0
- data/db/migrate/033_documents_kpath_change.rb +17 -0
- data/db/migrate/034_change_file_storage.rb +38 -0
- data/db/migrate/035_add_status_to_link.rb +13 -0
- data/db/migrate/036_add_flag_fields_on_nodes.rb +11 -0
- data/db/migrate/037_add_auto_create_discussion_to_v_class.rb +11 -0
- data/db/migrate/038_create_site_attributes.rb +15 -0
- data/db/migrate/039_default_position.rb +10 -0
- data/db/migrate/040_second_value_for_data_entry.rb +11 -0
- data/db/migrate/041_add_attributes_to_v_class.rb +9 -0
- data/db/migrate/042_fix_position_should_be_float.rb +8 -0
- data/db/migrate/043_move_user_lang_into_participation.rb +15 -0
- data/db/migrate/044_remove_monolingual_site_option.rb +9 -0
- data/db/migrate/045_avoid_star_in_templates.rb +13 -0
- data/db/migrate/046_fix_zazen_image_tag.rb +47 -0
- data/db/migrate/047_change_default_link_id_to_zero.rb +12 -0
- data/db/migrate/048_link_source_target_can_be_null.rb +11 -0
- data/db/migrate/049_fix_publish_from_is_null.rb +9 -0
- data/db/migrate/050_date_in_links.rb +9 -0
- data/db/migrate/051_add_exif_tags_to_images.rb +9 -0
- data/db/migrate/20090825201159_insert_zero_link.rb +8 -0
- data/db/migrate/20090825201200_merge_bricks_migrations_with_std_migrations.rb +19 -0
- data/db/migrate/20090924141459_zafu_fix_sept09.rb +19 -0
- data/db/migrate/20090927125912_allow_null_in_text_fields.rb +17 -0
- data/db/migrate/20090928133440_no_more_private_nodes.rb +25 -0
- data/db/migrate/20090928143754_version_status_change.rb +24 -0
- data/db/migrate/20091001084025_change_status_values_for_comments.rb +22 -0
- data/db/migrate/20091009084057_add_vhash_in_node.rb +13 -0
- data/db/migrate/20091013100351_rename_publish_group_to_drive_group.rb +12 -0
- data/db/migrate/20091014130833_fix_template_title.rb +16 -0
- data/db/migrate/20091014183726_merge_participation_into_users.rb +21 -0
- data/db/production.sqlite3 +0 -0
- data/db/schema.rb +281 -0
- data/lib/base_additions.rb +7 -0
- data/lib/bricks/patcher.rb +68 -0
- data/lib/comment_query.rb +92 -0
- data/lib/core_ext/date_time.rb +5 -0
- data/lib/core_ext/dir.rb +12 -0
- data/lib/core_ext/fixnum.rb +20 -0
- data/lib/core_ext/string.rb +74 -0
- data/lib/exif_data.rb +54 -0
- data/lib/fix_rails_layouts.rb +9 -0
- data/lib/gettext_strings.rb +160 -0
- data/lib/image_builder.rb +325 -0
- data/lib/log_recorder/lib/log_recorder.rb +138 -0
- data/lib/log_recorder/test/log_recorder_test.rb +0 -0
- data/lib/parser.rb +1 -0
- data/lib/tasks/capistrano.rake +99 -0
- data/lib/tasks/zena.rake +358 -0
- data/lib/tasks/zena.rb +2 -0
- data/lib/upload_progress_server.rb +24 -0
- data/lib/webdav_adapter.rb +172 -0
- data/lib/zafu_parser.rb +3 -0
- data/lib/zazen_parser.rb +1 -0
- data/lib/zena.rb +398 -0
- data/lib/zena/acts/multiversion.rb +755 -0
- data/lib/zena/acts/secure.rb +774 -0
- data/lib/zena/app.rb +39 -0
- data/lib/zena/code_syntax.rb +275 -0
- data/lib/zena/controller/test_case.rb +32 -0
- data/lib/zena/db.rb +252 -0
- data/lib/zena/fix/mysql_connection.rb +17 -0
- data/lib/zena/foxy_parser.rb +845 -0
- data/lib/zena/migrator.rb +109 -0
- data/lib/zena/parser.rb +601 -0
- data/lib/zena/parser/zafu_rules.rb +232 -0
- data/lib/zena/parser/zafu_tags.rb +197 -0
- data/lib/zena/parser/zazen_rules.rb +427 -0
- data/lib/zena/parser/zazen_tags.rb +44 -0
- data/lib/zena/parser/zena_rules.rb +29 -0
- data/lib/zena/parser/zena_tags.rb +3559 -0
- data/lib/zena/root.rb +3 -0
- data/lib/zena/routes.rb +73 -0
- data/lib/zena/test_controller.rb +74 -0
- data/lib/zena/unit/test_case.rb +24 -0
- data/lib/zena/use/ajax.rb +119 -0
- data/lib/zena/use/authentification.rb +120 -0
- data/lib/zena/use/calendar.rb +130 -0
- data/lib/zena/use/custom_queries/complex.host.yml +173 -0
- data/lib/zena/use/dates.rb +230 -0
- data/lib/zena/use/dyn_attributes.rb +256 -0
- data/lib/zena/use/error_rendering.rb +52 -0
- data/lib/zena/use/fixtures.rb +133 -0
- data/lib/zena/use/grid.rb +148 -0
- data/lib/zena/use/html_tags.rb +603 -0
- data/lib/zena/use/i18n.rb +247 -0
- data/lib/zena/use/nested_attributes_alias.rb +201 -0
- data/lib/zena/use/node_query_finders.rb +491 -0
- data/lib/zena/use/refactor.rb +231 -0
- data/lib/zena/use/relations.rb +360 -0
- data/lib/zena/use/rendering.rb +248 -0
- data/lib/zena/use/test_helper.rb +151 -0
- data/lib/zena/use/urls.rb +180 -0
- data/lib/zena/use/zafu.rb +549 -0
- data/lib/zena/use/zazen.rb +230 -0
- data/lib/zena/view/test_case.rb +23 -0
- data/locale/en/LC_MESSAGES/zena.mo +0 -0
- data/locale/en/zena.po +2116 -0
- data/locale/fr/LC_MESSAGES/zena.mo +0 -0
- data/locale/fr/zena.po +2172 -0
- data/locale/zena.pot +1915 -0
- data/public/calendar/calendar-brown.css +225 -0
- data/public/calendar/calendar-setup.js +153 -0
- data/public/calendar/calendar.js +1817 -0
- data/public/calendar/iconCalendar.gif +0 -0
- data/public/calendar/lang/calendar-en-utf8.js +128 -0
- data/public/calendar/lang/calendar-fr-utf8.js +120 -0
- data/public/calendar/lang/lang.zip +0 -0
- data/public/dispatch.cgi +10 -0
- data/public/dispatch.fcgi +24 -0
- data/public/dispatch.rb +10 -0
- data/public/favicon.ico +0 -0
- data/public/images/accept.png +0 -0
- data/public/images/action.png +0 -0
- data/public/images/add.png +0 -0
- data/public/images/ajax-loader.gif +0 -0
- data/public/images/anchor.png +0 -0
- data/public/images/application.png +0 -0
- data/public/images/application_add.png +0 -0
- data/public/images/application_cascade.png +0 -0
- data/public/images/application_delete.png +0 -0
- data/public/images/application_double.png +0 -0
- data/public/images/application_edit.png +0 -0
- data/public/images/application_error.png +0 -0
- data/public/images/application_form.png +0 -0
- data/public/images/application_form_add.png +0 -0
- data/public/images/application_form_delete.png +0 -0
- data/public/images/application_form_edit.png +0 -0
- data/public/images/application_form_magnify.png +0 -0
- data/public/images/application_get.png +0 -0
- data/public/images/application_go.png +0 -0
- data/public/images/application_home.png +0 -0
- data/public/images/application_key.png +0 -0
- data/public/images/application_lightning.png +0 -0
- data/public/images/application_link.png +0 -0
- data/public/images/application_osx.png +0 -0
- data/public/images/application_osx_terminal.png +0 -0
- data/public/images/application_put.png +0 -0
- data/public/images/application_side_boxes.png +0 -0
- data/public/images/application_side_contract.png +0 -0
- data/public/images/application_side_expand.png +0 -0
- data/public/images/application_side_list.png +0 -0
- data/public/images/application_side_tree.png +0 -0
- data/public/images/application_split.png +0 -0
- data/public/images/application_tile_horizontal.png +0 -0
- data/public/images/application_tile_vertical.png +0 -0
- data/public/images/application_view_columns.png +0 -0
- data/public/images/application_view_detail.png +0 -0
- data/public/images/application_view_gallery.png +0 -0
- data/public/images/application_view_icons.png +0 -0
- data/public/images/application_view_list.png +0 -0
- data/public/images/application_view_tile.png +0 -0
- data/public/images/application_xp.png +0 -0
- data/public/images/application_xp_terminal.png +0 -0
- data/public/images/arrow_branch.png +0 -0
- data/public/images/arrow_divide.png +0 -0
- data/public/images/arrow_down.png +0 -0
- data/public/images/arrow_in.png +0 -0
- data/public/images/arrow_inout.png +0 -0
- data/public/images/arrow_join.png +0 -0
- data/public/images/arrow_left.png +0 -0
- data/public/images/arrow_merge.png +0 -0
- data/public/images/arrow_out.png +0 -0
- data/public/images/arrow_redo.png +0 -0
- data/public/images/arrow_refresh.png +0 -0
- data/public/images/arrow_refresh_small.png +0 -0
- data/public/images/arrow_right.png +0 -0
- data/public/images/arrow_rotate_anticlockwise.png +0 -0
- data/public/images/arrow_rotate_clockwise.png +0 -0
- data/public/images/arrow_switch.png +0 -0
- data/public/images/arrow_turn_left.png +0 -0
- data/public/images/arrow_turn_right.png +0 -0
- data/public/images/arrow_undo.png +0 -0
- data/public/images/arrow_up.png +0 -0
- data/public/images/asterisk_orange.png +0 -0
- data/public/images/asterisk_yellow.png +0 -0
- data/public/images/attach.png +0 -0
- data/public/images/award_star_add.png +0 -0
- data/public/images/award_star_bronze_1.png +0 -0
- data/public/images/award_star_bronze_2.png +0 -0
- data/public/images/award_star_bronze_3.png +0 -0
- data/public/images/award_star_delete.png +0 -0
- data/public/images/award_star_gold_1.png +0 -0
- data/public/images/award_star_gold_2.png +0 -0
- data/public/images/award_star_gold_3.png +0 -0
- data/public/images/award_star_silver_1.png +0 -0
- data/public/images/award_star_silver_2.png +0 -0
- data/public/images/award_star_silver_3.png +0 -0
- data/public/images/basket.png +0 -0
- data/public/images/basket_add.png +0 -0
- data/public/images/basket_delete.png +0 -0
- data/public/images/basket_edit.png +0 -0
- data/public/images/basket_error.png +0 -0
- data/public/images/basket_go.png +0 -0
- data/public/images/basket_put.png +0 -0
- data/public/images/basket_remove.png +0 -0
- data/public/images/bell.png +0 -0
- data/public/images/bell_add.png +0 -0
- data/public/images/bell_delete.png +0 -0
- data/public/images/bell_error.png +0 -0
- data/public/images/bell_go.png +0 -0
- data/public/images/bell_link.png +0 -0
- data/public/images/bin.png +0 -0
- data/public/images/bin_closed.png +0 -0
- data/public/images/bin_empty.gif +0 -0
- data/public/images/bin_empty.png +0 -0
- data/public/images/bin_full.gif +0 -0
- data/public/images/bomb.png +0 -0
- data/public/images/book.png +0 -0
- data/public/images/book_add.png +0 -0
- data/public/images/book_addresses.png +0 -0
- data/public/images/book_delete.png +0 -0
- data/public/images/book_edit.png +0 -0
- data/public/images/book_error.png +0 -0
- data/public/images/book_go.png +0 -0
- data/public/images/book_key.png +0 -0
- data/public/images/book_link.png +0 -0
- data/public/images/book_next.png +0 -0
- data/public/images/book_open.png +0 -0
- data/public/images/book_previous.png +0 -0
- data/public/images/box.png +0 -0
- data/public/images/brick.png +0 -0
- data/public/images/brick_add.png +0 -0
- data/public/images/brick_delete.png +0 -0
- data/public/images/brick_edit.png +0 -0
- data/public/images/brick_error.png +0 -0
- data/public/images/brick_go.png +0 -0
- data/public/images/brick_link.png +0 -0
- data/public/images/bricks.png +0 -0
- data/public/images/briefcase.png +0 -0
- data/public/images/bug.png +0 -0
- data/public/images/bug_add.png +0 -0
- data/public/images/bug_delete.png +0 -0
- data/public/images/bug_edit.png +0 -0
- data/public/images/bug_error.png +0 -0
- data/public/images/bug_go.png +0 -0
- data/public/images/bug_link.png +0 -0
- data/public/images/building.png +0 -0
- data/public/images/building_add.png +0 -0
- data/public/images/building_delete.png +0 -0
- data/public/images/building_edit.png +0 -0
- data/public/images/building_error.png +0 -0
- data/public/images/building_go.png +0 -0
- data/public/images/building_key.png +0 -0
- data/public/images/building_link.png +0 -0
- data/public/images/bullet_add.png +0 -0
- data/public/images/bullet_arrow_bottom.png +0 -0
- data/public/images/bullet_arrow_down.png +0 -0
- data/public/images/bullet_arrow_top.png +0 -0
- data/public/images/bullet_arrow_up.png +0 -0
- data/public/images/bullet_black.png +0 -0
- data/public/images/bullet_blue.png +0 -0
- data/public/images/bullet_delete.png +0 -0
- data/public/images/bullet_disk.png +0 -0
- data/public/images/bullet_error.png +0 -0
- data/public/images/bullet_feed.png +0 -0
- data/public/images/bullet_go.png +0 -0
- data/public/images/bullet_green.png +0 -0
- data/public/images/bullet_key.png +0 -0
- data/public/images/bullet_orange.png +0 -0
- data/public/images/bullet_picture.png +0 -0
- data/public/images/bullet_pink.png +0 -0
- data/public/images/bullet_purple.png +0 -0
- data/public/images/bullet_red.png +0 -0
- data/public/images/bullet_star.png +0 -0
- data/public/images/bullet_toggle_minus.png +0 -0
- data/public/images/bullet_toggle_plus.png +0 -0
- data/public/images/bullet_white.png +0 -0
- data/public/images/bullet_wrench.png +0 -0
- data/public/images/bullet_yellow.png +0 -0
- data/public/images/cake.png +0 -0
- data/public/images/calculator.png +0 -0
- data/public/images/calculator_add.png +0 -0
- data/public/images/calculator_delete.png +0 -0
- data/public/images/calculator_edit.png +0 -0
- data/public/images/calculator_error.png +0 -0
- data/public/images/calculator_link.png +0 -0
- data/public/images/calendar.png +0 -0
- data/public/images/calendar_add.png +0 -0
- data/public/images/calendar_delete.png +0 -0
- data/public/images/calendar_edit.png +0 -0
- data/public/images/calendar_link.png +0 -0
- data/public/images/calendar_view_day.png +0 -0
- data/public/images/calendar_view_month.png +0 -0
- data/public/images/calendar_view_week.png +0 -0
- data/public/images/camera.png +0 -0
- data/public/images/camera_add.png +0 -0
- data/public/images/camera_delete.png +0 -0
- data/public/images/camera_edit.png +0 -0
- data/public/images/camera_error.png +0 -0
- data/public/images/camera_go.png +0 -0
- data/public/images/camera_link.png +0 -0
- data/public/images/camera_small.png +0 -0
- data/public/images/cancel.png +0 -0
- data/public/images/car.png +0 -0
- data/public/images/car_add.png +0 -0
- data/public/images/car_delete.png +0 -0
- data/public/images/cart.png +0 -0
- data/public/images/cart_add.png +0 -0
- data/public/images/cart_delete.png +0 -0
- data/public/images/cart_edit.png +0 -0
- data/public/images/cart_error.png +0 -0
- data/public/images/cart_go.png +0 -0
- data/public/images/cart_put.png +0 -0
- data/public/images/cart_remove.png +0 -0
- data/public/images/cd.png +0 -0
- data/public/images/cd_add.png +0 -0
- data/public/images/cd_burn.png +0 -0
- data/public/images/cd_delete.png +0 -0
- data/public/images/cd_edit.png +0 -0
- data/public/images/cd_eject.png +0 -0
- data/public/images/cd_go.png +0 -0
- data/public/images/chart_bar.png +0 -0
- data/public/images/chart_bar_add.png +0 -0
- data/public/images/chart_bar_delete.png +0 -0
- data/public/images/chart_bar_edit.png +0 -0
- data/public/images/chart_bar_error.png +0 -0
- data/public/images/chart_bar_link.png +0 -0
- data/public/images/chart_curve.png +0 -0
- data/public/images/chart_curve_add.png +0 -0
- data/public/images/chart_curve_delete.png +0 -0
- data/public/images/chart_curve_edit.png +0 -0
- data/public/images/chart_curve_error.png +0 -0
- data/public/images/chart_curve_go.png +0 -0
- data/public/images/chart_curve_link.png +0 -0
- data/public/images/chart_line.png +0 -0
- data/public/images/chart_line_add.png +0 -0
- data/public/images/chart_line_delete.png +0 -0
- data/public/images/chart_line_edit.png +0 -0
- data/public/images/chart_line_error.png +0 -0
- data/public/images/chart_line_link.png +0 -0
- data/public/images/chart_organisation.png +0 -0
- data/public/images/chart_organisation_add.png +0 -0
- data/public/images/chart_organisation_delete.png +0 -0
- data/public/images/chart_pie.png +0 -0
- data/public/images/chart_pie_add.png +0 -0
- data/public/images/chart_pie_delete.png +0 -0
- data/public/images/chart_pie_edit.png +0 -0
- data/public/images/chart_pie_error.png +0 -0
- data/public/images/chart_pie_link.png +0 -0
- data/public/images/clock.png +0 -0
- data/public/images/clock_add.png +0 -0
- data/public/images/clock_delete.png +0 -0
- data/public/images/clock_edit.png +0 -0
- data/public/images/clock_error.png +0 -0
- data/public/images/clock_go.png +0 -0
- data/public/images/clock_link.png +0 -0
- data/public/images/clock_pause.png +0 -0
- data/public/images/clock_play.png +0 -0
- data/public/images/clock_red.png +0 -0
- data/public/images/clock_stop.png +0 -0
- data/public/images/cog.png +0 -0
- data/public/images/cog_add.png +0 -0
- data/public/images/cog_delete.png +0 -0
- data/public/images/cog_edit.png +0 -0
- data/public/images/cog_error.png +0 -0
- data/public/images/cog_go.png +0 -0
- data/public/images/coins.png +0 -0
- data/public/images/coins_add.png +0 -0
- data/public/images/coins_delete.png +0 -0
- data/public/images/collection.png +0 -0
- data/public/images/color_swatch.png +0 -0
- data/public/images/color_wheel.png +0 -0
- data/public/images/column_add.png +0 -0
- data/public/images/column_delete.png +0 -0
- data/public/images/comment.png +0 -0
- data/public/images/comment_add.png +0 -0
- data/public/images/comment_delete.png +0 -0
- data/public/images/comment_edit.png +0 -0
- data/public/images/comments.png +0 -0
- data/public/images/comments_add.png +0 -0
- data/public/images/comments_delete.png +0 -0
- data/public/images/comments_red.png +0 -0
- data/public/images/compress.png +0 -0
- data/public/images/computer.png +0 -0
- data/public/images/computer_add.png +0 -0
- data/public/images/computer_delete.png +0 -0
- data/public/images/computer_edit.png +0 -0
- data/public/images/computer_error.png +0 -0
- data/public/images/computer_go.png +0 -0
- data/public/images/computer_key.png +0 -0
- data/public/images/computer_link.png +0 -0
- data/public/images/connect.png +0 -0
- data/public/images/contrast.png +0 -0
- data/public/images/contrast_decrease.png +0 -0
- data/public/images/contrast_high.png +0 -0
- data/public/images/contrast_increase.png +0 -0
- data/public/images/contrast_low.png +0 -0
- data/public/images/control_eject.png +0 -0
- data/public/images/control_eject_blue.png +0 -0
- data/public/images/control_end.png +0 -0
- data/public/images/control_end_blue.png +0 -0
- data/public/images/control_equalizer.png +0 -0
- data/public/images/control_equalizer_blue.png +0 -0
- data/public/images/control_fastforward.png +0 -0
- data/public/images/control_fastforward_blue.png +0 -0
- data/public/images/control_pause.png +0 -0
- data/public/images/control_pause_blue.png +0 -0
- data/public/images/control_play.png +0 -0
- data/public/images/control_play_blue.png +0 -0
- data/public/images/control_repeat.png +0 -0
- data/public/images/control_repeat_blue.png +0 -0
- data/public/images/control_rewind.png +0 -0
- data/public/images/control_rewind_blue.png +0 -0
- data/public/images/control_start.png +0 -0
- data/public/images/control_start_blue.png +0 -0
- data/public/images/control_stop.png +0 -0
- data/public/images/control_stop_blue.png +0 -0
- data/public/images/controller.png +0 -0
- data/public/images/controller_add.png +0 -0
- data/public/images/controller_delete.png +0 -0
- data/public/images/controller_error.png +0 -0
- data/public/images/creditcards.png +0 -0
- data/public/images/cross.png +0 -0
- data/public/images/css.png +0 -0
- data/public/images/css_add.png +0 -0
- data/public/images/css_delete.png +0 -0
- data/public/images/css_go.png +0 -0
- data/public/images/css_valid.png +0 -0
- data/public/images/cup.png +0 -0
- data/public/images/cup_add.png +0 -0
- data/public/images/cup_delete.png +0 -0
- data/public/images/cup_edit.png +0 -0
- data/public/images/cup_error.png +0 -0
- data/public/images/cup_go.png +0 -0
- data/public/images/cup_key.png +0 -0
- data/public/images/cup_link.png +0 -0
- data/public/images/cursor.png +0 -0
- data/public/images/cut.png +0 -0
- data/public/images/cut_red.png +0 -0
- data/public/images/database.png +0 -0
- data/public/images/database_add.png +0 -0
- data/public/images/database_connect.png +0 -0
- data/public/images/database_delete.png +0 -0
- data/public/images/database_edit.png +0 -0
- data/public/images/database_error.png +0 -0
- data/public/images/database_gear.png +0 -0
- data/public/images/database_go.png +0 -0
- data/public/images/database_key.png +0 -0
- data/public/images/database_lightning.png +0 -0
- data/public/images/database_link.png +0 -0
- data/public/images/database_refresh.png +0 -0
- data/public/images/database_save.png +0 -0
- data/public/images/database_table.png +0 -0
- data/public/images/date.png +0 -0
- data/public/images/date_add.png +0 -0
- data/public/images/date_delete.png +0 -0
- data/public/images/date_edit.png +0 -0
- data/public/images/date_error.png +0 -0
- data/public/images/date_go.png +0 -0
- data/public/images/date_link.png +0 -0
- data/public/images/date_magnify.png +0 -0
- data/public/images/date_next.png +0 -0
- data/public/images/date_previous.png +0 -0
- data/public/images/delete.png +0 -0
- data/public/images/disconnect.png +0 -0
- data/public/images/disk.png +0 -0
- data/public/images/disk_multiple.png +0 -0
- data/public/images/door.png +0 -0
- data/public/images/door_in.png +0 -0
- data/public/images/door_open.png +0 -0
- data/public/images/door_out.png +0 -0
- data/public/images/drink.png +0 -0
- data/public/images/drink_empty.png +0 -0
- data/public/images/drive.png +0 -0
- data/public/images/drive_add.png +0 -0
- data/public/images/drive_burn.png +0 -0
- data/public/images/drive_cd.png +0 -0
- data/public/images/drive_cd_empty.png +0 -0
- data/public/images/drive_delete.png +0 -0
- data/public/images/drive_disk.png +0 -0
- data/public/images/drive_edit.png +0 -0
- data/public/images/drive_error.png +0 -0
- data/public/images/drive_go.png +0 -0
- data/public/images/drive_key.png +0 -0
- data/public/images/drive_link.png +0 -0
- data/public/images/drive_magnify.png +0 -0
- data/public/images/drive_network.png +0 -0
- data/public/images/drive_rename.png +0 -0
- data/public/images/drive_user.png +0 -0
- data/public/images/drive_web.png +0 -0
- data/public/images/dvd.png +0 -0
- data/public/images/dvd_add.png +0 -0
- data/public/images/dvd_delete.png +0 -0
- data/public/images/dvd_edit.png +0 -0
- data/public/images/dvd_error.png +0 -0
- data/public/images/dvd_go.png +0 -0
- data/public/images/dvd_key.png +0 -0
- data/public/images/dvd_link.png +0 -0
- data/public/images/email.png +0 -0
- data/public/images/email_add.png +0 -0
- data/public/images/email_attach.png +0 -0
- data/public/images/email_delete.png +0 -0
- data/public/images/email_edit.png +0 -0
- data/public/images/email_error.png +0 -0
- data/public/images/email_go.png +0 -0
- data/public/images/email_link.png +0 -0
- data/public/images/email_open.png +0 -0
- data/public/images/email_open_image.png +0 -0
- data/public/images/emoticon_evilgrin.png +0 -0
- data/public/images/emoticon_grin.png +0 -0
- data/public/images/emoticon_happy.png +0 -0
- data/public/images/emoticon_smile.png +0 -0
- data/public/images/emoticon_surprised.png +0 -0
- data/public/images/emoticon_tongue.png +0 -0
- data/public/images/emoticon_unhappy.png +0 -0
- data/public/images/emoticon_waii.png +0 -0
- data/public/images/emoticon_wink.png +0 -0
- data/public/images/error.png +0 -0
- data/public/images/error_add.png +0 -0
- data/public/images/error_delete.png +0 -0
- data/public/images/error_go.png +0 -0
- data/public/images/exclamation.png +0 -0
- data/public/images/ext/contact.png +0 -0
- data/public/images/ext/contact_pv.png +0 -0
- data/public/images/ext/doc.png +0 -0
- data/public/images/ext/doc_tiny.png +0 -0
- data/public/images/ext/jpg.png +0 -0
- data/public/images/ext/jpg_tiny.png +0 -0
- data/public/images/ext/other.png +0 -0
- data/public/images/ext/other_pv.png +0 -0
- data/public/images/ext/other_tiny.png +0 -0
- data/public/images/ext/page.png +0 -0
- data/public/images/ext/page_pv.png +0 -0
- data/public/images/ext/page_tiny.png +0 -0
- data/public/images/ext/pdf.png +0 -0
- data/public/images/ext/pdf_pv.png +0 -0
- data/public/images/ext/pdf_tiny.png +0 -0
- data/public/images/ext/png.png +0 -0
- data/public/images/ext/png_tiny.png +0 -0
- data/public/images/ext/post.png +0 -0
- data/public/images/ext/post_pv.png +0 -0
- data/public/images/ext/post_tiny.png +0 -0
- data/public/images/ext/project.png +0 -0
- data/public/images/ext/project_pv.png +0 -0
- data/public/images/ext/project_tiny.png +0 -0
- data/public/images/ext/rtf.png +0 -0
- data/public/images/ext/rtf_tiny.png +0 -0
- data/public/images/ext/tag.png +0 -0
- data/public/images/ext/tag_pv.png +0 -0
- data/public/images/ext/xls.png +0 -0
- data/public/images/ext/xls_tiny.png +0 -0
- data/public/images/ext/zip.png +0 -0
- data/public/images/ext/zip_pv.png +0 -0
- data/public/images/ext/zip_tiny.png +0 -0
- data/public/images/eye.png +0 -0
- data/public/images/feed.png +0 -0
- data/public/images/feed_add.png +0 -0
- data/public/images/feed_delete.png +0 -0
- data/public/images/feed_disk.png +0 -0
- data/public/images/feed_edit.png +0 -0
- data/public/images/feed_error.png +0 -0
- data/public/images/feed_go.png +0 -0
- data/public/images/feed_key.png +0 -0
- data/public/images/feed_link.png +0 -0
- data/public/images/feed_magnify.png +0 -0
- data/public/images/female.png +0 -0
- data/public/images/film.png +0 -0
- data/public/images/film_add.png +0 -0
- data/public/images/film_delete.png +0 -0
- data/public/images/film_edit.png +0 -0
- data/public/images/film_error.png +0 -0
- data/public/images/film_go.png +0 -0
- data/public/images/film_key.png +0 -0
- data/public/images/film_link.png +0 -0
- data/public/images/film_save.png +0 -0
- data/public/images/find.png +0 -0
- data/public/images/flag_blue.png +0 -0
- data/public/images/flag_green.png +0 -0
- data/public/images/flag_orange.png +0 -0
- data/public/images/flag_pink.png +0 -0
- data/public/images/flag_purple.png +0 -0
- data/public/images/flag_red.png +0 -0
- data/public/images/flag_yellow.png +0 -0
- data/public/images/folder.png +0 -0
- data/public/images/folder_add.png +0 -0
- data/public/images/folder_bell.png +0 -0
- data/public/images/folder_brick.png +0 -0
- data/public/images/folder_bug.png +0 -0
- data/public/images/folder_camera.png +0 -0
- data/public/images/folder_database.png +0 -0
- data/public/images/folder_delete.png +0 -0
- data/public/images/folder_edit.png +0 -0
- data/public/images/folder_error.png +0 -0
- data/public/images/folder_explore.png +0 -0
- data/public/images/folder_feed.png +0 -0
- data/public/images/folder_find.png +0 -0
- data/public/images/folder_go.png +0 -0
- data/public/images/folder_heart.png +0 -0
- data/public/images/folder_image.png +0 -0
- data/public/images/folder_key.png +0 -0
- data/public/images/folder_lightbulb.png +0 -0
- data/public/images/folder_link.png +0 -0
- data/public/images/folder_magnify.png +0 -0
- data/public/images/folder_page.png +0 -0
- data/public/images/folder_page_white.png +0 -0
- data/public/images/folder_palette.png +0 -0
- data/public/images/folder_picture.png +0 -0
- data/public/images/folder_star.png +0 -0
- data/public/images/folder_table.png +0 -0
- data/public/images/folder_user.png +0 -0
- data/public/images/folder_wrench.png +0 -0
- data/public/images/font.png +0 -0
- data/public/images/font_add.png +0 -0
- data/public/images/font_delete.png +0 -0
- data/public/images/font_go.png +0 -0
- data/public/images/group.png +0 -0
- data/public/images/group_add.png +0 -0
- data/public/images/group_admin.png +0 -0
- data/public/images/group_delete.png +0 -0
- data/public/images/group_edit.png +0 -0
- data/public/images/group_error.png +0 -0
- data/public/images/group_gear.png +0 -0
- data/public/images/group_go.png +0 -0
- data/public/images/group_key.png +0 -0
- data/public/images/group_link.png +0 -0
- data/public/images/group_pub.png +0 -0
- data/public/images/group_site.png +0 -0
- data/public/images/heart.png +0 -0
- data/public/images/heart_add.png +0 -0
- data/public/images/heart_delete.png +0 -0
- data/public/images/help.png +0 -0
- data/public/images/home.png +0 -0
- data/public/images/hourglass.png +0 -0
- data/public/images/hourglass_add.png +0 -0
- data/public/images/hourglass_delete.png +0 -0
- data/public/images/hourglass_go.png +0 -0
- data/public/images/hourglass_link.png +0 -0
- data/public/images/house.png +0 -0
- data/public/images/house_go.png +0 -0
- data/public/images/house_link.png +0 -0
- data/public/images/html.png +0 -0
- data/public/images/html_add.png +0 -0
- data/public/images/html_delete.png +0 -0
- data/public/images/html_go.png +0 -0
- data/public/images/html_valid.png +0 -0
- data/public/images/image.png +0 -0
- data/public/images/image_add.png +0 -0
- data/public/images/image_delete.png +0 -0
- data/public/images/image_edit.png +0 -0
- data/public/images/image_link.png +0 -0
- data/public/images/images.png +0 -0
- data/public/images/img_not_found.png +0 -0
- data/public/images/information.png +0 -0
- data/public/images/ipod.png +0 -0
- data/public/images/ipod_cast.png +0 -0
- data/public/images/ipod_cast_add.png +0 -0
- data/public/images/ipod_cast_delete.png +0 -0
- data/public/images/ipod_sound.png +0 -0
- data/public/images/joystick.png +0 -0
- data/public/images/joystick_add.png +0 -0
- data/public/images/joystick_delete.png +0 -0
- data/public/images/joystick_error.png +0 -0
- data/public/images/key.png +0 -0
- data/public/images/key_add.png +0 -0
- data/public/images/key_delete.png +0 -0
- data/public/images/key_go.png +0 -0
- data/public/images/keyboard.png +0 -0
- data/public/images/keyboard_add.png +0 -0
- data/public/images/keyboard_delete.png +0 -0
- data/public/images/keyboard_magnify.png +0 -0
- data/public/images/latex_error.png +0 -0
- data/public/images/layers.png +0 -0
- data/public/images/layout.png +0 -0
- data/public/images/layout_add.png +0 -0
- data/public/images/layout_content.png +0 -0
- data/public/images/layout_delete.png +0 -0
- data/public/images/layout_edit.png +0 -0
- data/public/images/layout_error.png +0 -0
- data/public/images/layout_header.png +0 -0
- data/public/images/layout_link.png +0 -0
- data/public/images/layout_sidebar.png +0 -0
- data/public/images/lightbulb.png +0 -0
- data/public/images/lightbulb_add.png +0 -0
- data/public/images/lightbulb_delete.png +0 -0
- data/public/images/lightbulb_off.png +0 -0
- data/public/images/lightning.png +0 -0
- data/public/images/lightning_add.png +0 -0
- data/public/images/lightning_delete.png +0 -0
- data/public/images/lightning_go.png +0 -0
- data/public/images/link.png +0 -0
- data/public/images/link_add.png +0 -0
- data/public/images/link_break.png +0 -0
- data/public/images/link_delete.png +0 -0
- data/public/images/link_edit.png +0 -0
- data/public/images/link_error.png +0 -0
- data/public/images/link_go.png +0 -0
- data/public/images/lock.png +0 -0
- data/public/images/lock_add.png +0 -0
- data/public/images/lock_break.png +0 -0
- data/public/images/lock_delete.png +0 -0
- data/public/images/lock_edit.png +0 -0
- data/public/images/lock_go.png +0 -0
- data/public/images/lock_open.png +0 -0
- data/public/images/lorry.png +0 -0
- data/public/images/lorry_add.png +0 -0
- data/public/images/lorry_delete.png +0 -0
- data/public/images/lorry_error.png +0 -0
- data/public/images/lorry_flatbed.png +0 -0
- data/public/images/lorry_go.png +0 -0
- data/public/images/lorry_link.png +0 -0
- data/public/images/magifier_zoom_out.png +0 -0
- data/public/images/magnifier.png +0 -0
- data/public/images/magnifier_zoom_in.png +0 -0
- data/public/images/male.png +0 -0
- data/public/images/map.png +0 -0
- data/public/images/map_add.png +0 -0
- data/public/images/map_delete.png +0 -0
- data/public/images/map_edit.png +0 -0
- data/public/images/map_go.png +0 -0
- data/public/images/map_magnify.png +0 -0
- data/public/images/medal_bronze_1.png +0 -0
- data/public/images/medal_bronze_2.png +0 -0
- data/public/images/medal_bronze_3.png +0 -0
- data/public/images/medal_bronze_add.png +0 -0
- data/public/images/medal_bronze_delete.png +0 -0
- data/public/images/medal_gold_1.png +0 -0
- data/public/images/medal_gold_2.png +0 -0
- data/public/images/medal_gold_3.png +0 -0
- data/public/images/medal_gold_add.png +0 -0
- data/public/images/medal_gold_delete.png +0 -0
- data/public/images/medal_silver_1.png +0 -0
- data/public/images/medal_silver_2.png +0 -0
- data/public/images/medal_silver_3.png +0 -0
- data/public/images/medal_silver_add.png +0 -0
- data/public/images/medal_silver_delete.png +0 -0
- data/public/images/money.png +0 -0
- data/public/images/money_add.png +0 -0
- data/public/images/money_delete.png +0 -0
- data/public/images/money_dollar.png +0 -0
- data/public/images/money_euro.png +0 -0
- data/public/images/money_pound.png +0 -0
- data/public/images/money_yen.png +0 -0
- data/public/images/monitor.png +0 -0
- data/public/images/monitor_add.png +0 -0
- data/public/images/monitor_delete.png +0 -0
- data/public/images/monitor_edit.png +0 -0
- data/public/images/monitor_error.png +0 -0
- data/public/images/monitor_go.png +0 -0
- data/public/images/monitor_lightning.png +0 -0
- data/public/images/monitor_link.png +0 -0
- data/public/images/mouse.png +0 -0
- data/public/images/mouse_add.png +0 -0
- data/public/images/mouse_delete.png +0 -0
- data/public/images/mouse_error.png +0 -0
- data/public/images/music.png +0 -0
- data/public/images/new.png +0 -0
- data/public/images/newspaper.png +0 -0
- data/public/images/newspaper_add.png +0 -0
- data/public/images/newspaper_delete.png +0 -0
- data/public/images/newspaper_go.png +0 -0
- data/public/images/newspaper_link.png +0 -0
- data/public/images/note.png +0 -0
- data/public/images/note_add.png +0 -0
- data/public/images/note_delete.png +0 -0
- data/public/images/note_edit.png +0 -0
- data/public/images/note_error.png +0 -0
- data/public/images/note_go.png +0 -0
- data/public/images/overlays.png +0 -0
- data/public/images/package.png +0 -0
- data/public/images/package_add.png +0 -0
- data/public/images/package_delete.png +0 -0
- data/public/images/package_go.png +0 -0
- data/public/images/package_green.png +0 -0
- data/public/images/package_link.png +0 -0
- data/public/images/page.png +0 -0
- data/public/images/page_add.png +0 -0
- data/public/images/page_attach.png +0 -0
- data/public/images/page_code.png +0 -0
- data/public/images/page_copy.png +0 -0
- data/public/images/page_delete.png +0 -0
- data/public/images/page_edit.png +0 -0
- data/public/images/page_error.png +0 -0
- data/public/images/page_excel.png +0 -0
- data/public/images/page_find.png +0 -0
- data/public/images/page_gear.png +0 -0
- data/public/images/page_go.png +0 -0
- data/public/images/page_green.png +0 -0
- data/public/images/page_key.png +0 -0
- data/public/images/page_lightning.png +0 -0
- data/public/images/page_link.png +0 -0
- data/public/images/page_paintbrush.png +0 -0
- data/public/images/page_paste.png +0 -0
- data/public/images/page_red.png +0 -0
- data/public/images/page_refresh.png +0 -0
- data/public/images/page_save.png +0 -0
- data/public/images/page_white.png +0 -0
- data/public/images/page_white_acrobat.png +0 -0
- data/public/images/page_white_actionscript.png +0 -0
- data/public/images/page_white_add.png +0 -0
- data/public/images/page_white_c.png +0 -0
- data/public/images/page_white_camera.png +0 -0
- data/public/images/page_white_cd.png +0 -0
- data/public/images/page_white_code.png +0 -0
- data/public/images/page_white_code_red.png +0 -0
- data/public/images/page_white_coldfusion.png +0 -0
- data/public/images/page_white_compressed.png +0 -0
- data/public/images/page_white_copy.png +0 -0
- data/public/images/page_white_cplusplus.png +0 -0
- data/public/images/page_white_csharp.png +0 -0
- data/public/images/page_white_cup.png +0 -0
- data/public/images/page_white_database.png +0 -0
- data/public/images/page_white_delete.png +0 -0
- data/public/images/page_white_dvd.png +0 -0
- data/public/images/page_white_edit.png +0 -0
- data/public/images/page_white_error.png +0 -0
- data/public/images/page_white_excel.png +0 -0
- data/public/images/page_white_find.png +0 -0
- data/public/images/page_white_flash.png +0 -0
- data/public/images/page_white_freehand.png +0 -0
- data/public/images/page_white_gear.png +0 -0
- data/public/images/page_white_get.png +0 -0
- data/public/images/page_white_go.png +0 -0
- data/public/images/page_white_h.png +0 -0
- data/public/images/page_white_horizontal.png +0 -0
- data/public/images/page_white_key.png +0 -0
- data/public/images/page_white_lightning.png +0 -0
- data/public/images/page_white_link.png +0 -0
- data/public/images/page_white_magnify.png +0 -0
- data/public/images/page_white_medal.png +0 -0
- data/public/images/page_white_office.png +0 -0
- data/public/images/page_white_paint.png +0 -0
- data/public/images/page_white_paintbrush.png +0 -0
- data/public/images/page_white_paste.png +0 -0
- data/public/images/page_white_php.png +0 -0
- data/public/images/page_white_picture.png +0 -0
- data/public/images/page_white_powerpoint.png +0 -0
- data/public/images/page_white_put.png +0 -0
- data/public/images/page_white_ruby.png +0 -0
- data/public/images/page_white_stack.png +0 -0
- data/public/images/page_white_star.png +0 -0
- data/public/images/page_white_swoosh.png +0 -0
- data/public/images/page_white_text.png +0 -0
- data/public/images/page_white_text_width.png +0 -0
- data/public/images/page_white_tux.png +0 -0
- data/public/images/page_white_vector.png +0 -0
- data/public/images/page_white_visualstudio.png +0 -0
- data/public/images/page_white_width.png +0 -0
- data/public/images/page_white_word.png +0 -0
- data/public/images/page_white_world.png +0 -0
- data/public/images/page_white_wrench.png +0 -0
- data/public/images/page_white_zip.png +0 -0
- data/public/images/page_word.png +0 -0
- data/public/images/page_world.png +0 -0
- data/public/images/paintbrush.png +0 -0
- data/public/images/paintcan.png +0 -0
- data/public/images/palette.png +0 -0
- data/public/images/paste_plain.png +0 -0
- data/public/images/paste_word.png +0 -0
- data/public/images/pencil.png +0 -0
- data/public/images/pencil_add.png +0 -0
- data/public/images/pencil_delete.png +0 -0
- data/public/images/pencil_go.png +0 -0
- data/public/images/phone.png +0 -0
- data/public/images/phone_add.png +0 -0
- data/public/images/phone_delete.png +0 -0
- data/public/images/phone_sound.png +0 -0
- data/public/images/photo.png +0 -0
- data/public/images/photo_add.png +0 -0
- data/public/images/photo_blue.png +0 -0
- data/public/images/photo_delete.png +0 -0
- data/public/images/photo_grey.png +0 -0
- data/public/images/photo_link.png +0 -0
- data/public/images/photos.png +0 -0
- data/public/images/picture.png +0 -0
- data/public/images/picture_add.png +0 -0
- data/public/images/picture_delete.png +0 -0
- data/public/images/picture_edit.png +0 -0
- data/public/images/picture_empty.png +0 -0
- data/public/images/picture_error.png +0 -0
- data/public/images/picture_go.png +0 -0
- data/public/images/picture_key.png +0 -0
- data/public/images/picture_link.png +0 -0
- data/public/images/picture_save.png +0 -0
- data/public/images/pictures.png +0 -0
- data/public/images/pilcrow.png +0 -0
- data/public/images/pill.png +0 -0
- data/public/images/pill_add.png +0 -0
- data/public/images/pill_delete.png +0 -0
- data/public/images/pill_go.png +0 -0
- data/public/images/plugin.png +0 -0
- data/public/images/plugin_add.png +0 -0
- data/public/images/plugin_delete.png +0 -0
- data/public/images/plugin_disabled.png +0 -0
- data/public/images/plugin_edit.png +0 -0
- data/public/images/plugin_error.png +0 -0
- data/public/images/plugin_go.png +0 -0
- data/public/images/plugin_link.png +0 -0
- data/public/images/printer.png +0 -0
- data/public/images/printer_add.png +0 -0
- data/public/images/printer_delete.png +0 -0
- data/public/images/printer_empty.png +0 -0
- data/public/images/printer_error.png +0 -0
- data/public/images/project.png +0 -0
- data/public/images/rails.png +0 -0
- data/public/images/rainbow.png +0 -0
- data/public/images/report.png +0 -0
- data/public/images/report_add.png +0 -0
- data/public/images/report_delete.png +0 -0
- data/public/images/report_disk.png +0 -0
- data/public/images/report_edit.png +0 -0
- data/public/images/report_go.png +0 -0
- data/public/images/report_key.png +0 -0
- data/public/images/report_link.png +0 -0
- data/public/images/report_magnify.png +0 -0
- data/public/images/report_picture.png +0 -0
- data/public/images/report_user.png +0 -0
- data/public/images/report_word.png +0 -0
- data/public/images/resultset_first.png +0 -0
- data/public/images/resultset_last.png +0 -0
- data/public/images/resultset_next.png +0 -0
- data/public/images/resultset_previous.png +0 -0
- data/public/images/rosette.png +0 -0
- data/public/images/row_add.png +0 -0
- data/public/images/row_delete.png +0 -0
- data/public/images/rss.png +0 -0
- data/public/images/rss_add.png +0 -0
- data/public/images/rss_delete.png +0 -0
- data/public/images/rss_go.png +0 -0
- data/public/images/rss_valid.png +0 -0
- data/public/images/ruby.png +0 -0
- data/public/images/ruby_add.png +0 -0
- data/public/images/ruby_delete.png +0 -0
- data/public/images/ruby_gear.png +0 -0
- data/public/images/ruby_get.png +0 -0
- data/public/images/ruby_go.png +0 -0
- data/public/images/ruby_key.png +0 -0
- data/public/images/ruby_link.png +0 -0
- data/public/images/ruby_put.png +0 -0
- data/public/images/script.png +0 -0
- data/public/images/script_add.png +0 -0
- data/public/images/script_code.png +0 -0
- data/public/images/script_code_red.png +0 -0
- data/public/images/script_delete.png +0 -0
- data/public/images/script_edit.png +0 -0
- data/public/images/script_error.png +0 -0
- data/public/images/script_gear.png +0 -0
- data/public/images/script_go.png +0 -0
- data/public/images/script_key.png +0 -0
- data/public/images/script_lightning.png +0 -0
- data/public/images/script_link.png +0 -0
- data/public/images/script_palette.png +0 -0
- data/public/images/script_save.png +0 -0
- data/public/images/server.png +0 -0
- data/public/images/server_add.png +0 -0
- data/public/images/server_chart.png +0 -0
- data/public/images/server_compressed.png +0 -0
- data/public/images/server_connect.png +0 -0
- data/public/images/server_database.png +0 -0
- data/public/images/server_delete.png +0 -0
- data/public/images/server_edit.png +0 -0
- data/public/images/server_error.png +0 -0
- data/public/images/server_go.png +0 -0
- data/public/images/server_key.png +0 -0
- data/public/images/server_lightning.png +0 -0
- data/public/images/server_link.png +0 -0
- data/public/images/server_uncompressed.png +0 -0
- data/public/images/shading.png +0 -0
- data/public/images/shape_align_bottom.png +0 -0
- data/public/images/shape_align_center.png +0 -0
- data/public/images/shape_align_left.png +0 -0
- data/public/images/shape_align_middle.png +0 -0
- data/public/images/shape_align_right.png +0 -0
- data/public/images/shape_align_top.png +0 -0
- data/public/images/shape_flip_horizontal.png +0 -0
- data/public/images/shape_flip_vertical.png +0 -0
- data/public/images/shape_group.png +0 -0
- data/public/images/shape_handles.png +0 -0
- data/public/images/shape_move_back.png +0 -0
- data/public/images/shape_move_backwards.png +0 -0
- data/public/images/shape_move_forwards.png +0 -0
- data/public/images/shape_move_front.png +0 -0
- data/public/images/shape_rotate_anticlockwise.png +0 -0
- data/public/images/shape_rotate_clockwise.png +0 -0
- data/public/images/shape_square.png +0 -0
- data/public/images/shape_square_add.png +0 -0
- data/public/images/shape_square_delete.png +0 -0
- data/public/images/shape_square_edit.png +0 -0
- data/public/images/shape_square_error.png +0 -0
- data/public/images/shape_square_go.png +0 -0
- data/public/images/shape_square_key.png +0 -0
- data/public/images/shape_square_link.png +0 -0
- data/public/images/shape_ungroup.png +0 -0
- data/public/images/shield.png +0 -0
- data/public/images/shield_add.png +0 -0
- data/public/images/shield_delete.png +0 -0
- data/public/images/shield_go.png +0 -0
- data/public/images/silk.html +1495 -0
- data/public/images/sitemap.png +0 -0
- data/public/images/sitemap_color.png +0 -0
- data/public/images/sound.png +0 -0
- data/public/images/sound_add.png +0 -0
- data/public/images/sound_delete.png +0 -0
- data/public/images/sound_low.png +0 -0
- data/public/images/sound_mute.png +0 -0
- data/public/images/sound_none.png +0 -0
- data/public/images/spellcheck.png +0 -0
- data/public/images/sport_8ball.png +0 -0
- data/public/images/sport_basketball.png +0 -0
- data/public/images/sport_football.png +0 -0
- data/public/images/sport_golf.png +0 -0
- data/public/images/sport_raquet.png +0 -0
- data/public/images/sport_shuttlecock.png +0 -0
- data/public/images/sport_soccer.png +0 -0
- data/public/images/sport_tennis.png +0 -0
- data/public/images/star.png +0 -0
- data/public/images/status_away.png +0 -0
- data/public/images/status_busy.png +0 -0
- data/public/images/status_offline.png +0 -0
- data/public/images/status_online.png +0 -0
- data/public/images/stop.png +0 -0
- data/public/images/style.png +0 -0
- data/public/images/style_add.png +0 -0
- data/public/images/style_delete.png +0 -0
- data/public/images/style_edit.png +0 -0
- data/public/images/style_go.png +0 -0
- data/public/images/sum.png +0 -0
- data/public/images/swf/xspf/Main.as +55 -0
- data/public/images/swf/xspf/com/zuardi/musicplayer/MusicButton.as +557 -0
- data/public/images/swf/xspf/com/zuardi/musicplayer/MusicPlayer.as +118 -0
- data/public/images/swf/xspf/com/zuardi/musicplayer/Playlist.as +127 -0
- data/public/images/swf/xspf/com/zuardi/musicplayer/ProgressiveSlider.as +66 -0
- data/public/images/swf/xspf/license.txt +10 -0
- data/public/images/swf/xspf/musicplayer.swf +0 -0
- data/public/images/swf/xspf/musicplayer_f6.swf +0 -0
- data/public/images/swf/xspf/musicplayerbtn.fla +0 -0
- data/public/images/swf/xspf/parameters.as +39 -0
- data/public/images/tab.png +0 -0
- data/public/images/tab_add.png +0 -0
- data/public/images/tab_delete.png +0 -0
- data/public/images/tab_edit.png +0 -0
- data/public/images/tab_go.png +0 -0
- data/public/images/table.png +0 -0
- data/public/images/table_add.png +0 -0
- data/public/images/table_delete.png +0 -0
- data/public/images/table_edit.png +0 -0
- data/public/images/table_error.png +0 -0
- data/public/images/table_gear.png +0 -0
- data/public/images/table_go.png +0 -0
- data/public/images/table_key.png +0 -0
- data/public/images/table_lightning.png +0 -0
- data/public/images/table_link.png +0 -0
- data/public/images/table_multiple.png +0 -0
- data/public/images/table_refresh.png +0 -0
- data/public/images/table_relationship.png +0 -0
- data/public/images/table_row_delete.png +0 -0
- data/public/images/table_row_insert.png +0 -0
- data/public/images/table_save.png +0 -0
- data/public/images/table_sort.png +0 -0
- data/public/images/tag.png +0 -0
- data/public/images/tag_blue.png +0 -0
- data/public/images/tag_blue_add.png +0 -0
- data/public/images/tag_blue_delete.png +0 -0
- data/public/images/tag_blue_edit.png +0 -0
- data/public/images/tag_green.png +0 -0
- data/public/images/tag_orange.png +0 -0
- data/public/images/tag_pink.png +0 -0
- data/public/images/tag_purple.png +0 -0
- data/public/images/tag_red.png +0 -0
- data/public/images/tag_yellow.png +0 -0
- data/public/images/target.png +0 -0
- data/public/images/telephone.png +0 -0
- data/public/images/telephone_add.png +0 -0
- data/public/images/telephone_delete.png +0 -0
- data/public/images/telephone_edit.png +0 -0
- data/public/images/telephone_error.png +0 -0
- data/public/images/telephone_go.png +0 -0
- data/public/images/telephone_key.png +0 -0
- data/public/images/telephone_link.png +0 -0
- data/public/images/television.png +0 -0
- data/public/images/television_add.png +0 -0
- data/public/images/television_delete.png +0 -0
- data/public/images/text_align_center.png +0 -0
- data/public/images/text_align_justify.png +0 -0
- data/public/images/text_align_left.png +0 -0
- data/public/images/text_align_right.png +0 -0
- data/public/images/text_allcaps.png +0 -0
- data/public/images/text_bold.png +0 -0
- data/public/images/text_columns.png +0 -0
- data/public/images/text_dropcaps.png +0 -0
- data/public/images/text_heading_1.png +0 -0
- data/public/images/text_heading_2.png +0 -0
- data/public/images/text_heading_3.png +0 -0
- data/public/images/text_heading_4.png +0 -0
- data/public/images/text_heading_5.png +0 -0
- data/public/images/text_heading_6.png +0 -0
- data/public/images/text_horizontalrule.png +0 -0
- data/public/images/text_indent.png +0 -0
- data/public/images/text_indent_remove.png +0 -0
- data/public/images/text_italic.png +0 -0
- data/public/images/text_kerning.png +0 -0
- data/public/images/text_letter_omega.png +0 -0
- data/public/images/text_letterspacing.png +0 -0
- data/public/images/text_linespacing.png +0 -0
- data/public/images/text_list_bullets.png +0 -0
- data/public/images/text_list_numbers.png +0 -0
- data/public/images/text_lowercase.png +0 -0
- data/public/images/text_padding_bottom.png +0 -0
- data/public/images/text_padding_left.png +0 -0
- data/public/images/text_padding_right.png +0 -0
- data/public/images/text_padding_top.png +0 -0
- data/public/images/text_replace.png +0 -0
- data/public/images/text_signature.png +0 -0
- data/public/images/text_smallcaps.png +0 -0
- data/public/images/text_strikethrough.png +0 -0
- data/public/images/text_subscript.png +0 -0
- data/public/images/text_superscript.png +0 -0
- data/public/images/text_underline.png +0 -0
- data/public/images/text_uppercase.png +0 -0
- data/public/images/textfield.png +0 -0
- data/public/images/textfield_add.png +0 -0
- data/public/images/textfield_delete.png +0 -0
- data/public/images/textfield_key.png +0 -0
- data/public/images/textfield_rename.png +0 -0
- data/public/images/thumb_down.png +0 -0
- data/public/images/thumb_up.png +0 -0
- data/public/images/tick.png +0 -0
- data/public/images/time.png +0 -0
- data/public/images/time_add.png +0 -0
- data/public/images/time_delete.png +0 -0
- data/public/images/time_go.png +0 -0
- data/public/images/timeline_marker.png +0 -0
- data/public/images/transmit.png +0 -0
- data/public/images/transmit_add.png +0 -0
- data/public/images/transmit_blue.png +0 -0
- data/public/images/transmit_delete.png +0 -0
- data/public/images/transmit_edit.png +0 -0
- data/public/images/transmit_error.png +0 -0
- data/public/images/transmit_go.png +0 -0
- data/public/images/tux.png +0 -0
- data/public/images/user.png +0 -0
- data/public/images/user_add.png +0 -0
- data/public/images/user_admin.png +0 -0
- data/public/images/user_comment.png +0 -0
- data/public/images/user_delete.png +0 -0
- data/public/images/user_edit.png +0 -0
- data/public/images/user_female.png +0 -0
- data/public/images/user_go.png +0 -0
- data/public/images/user_gray.png +0 -0
- data/public/images/user_green.png +0 -0
- data/public/images/user_orange.png +0 -0
- data/public/images/user_pub.png +0 -0
- data/public/images/user_red.png +0 -0
- data/public/images/user_su.png +0 -0
- data/public/images/user_suit.png +0 -0
- data/public/images/validate.png +0 -0
- data/public/images/valider.png +0 -0
- data/public/images/vcard.png +0 -0
- data/public/images/vcard_add.png +0 -0
- data/public/images/vcard_delete.png +0 -0
- data/public/images/vcard_edit.png +0 -0
- data/public/images/vector.png +0 -0
- data/public/images/vector_add.png +0 -0
- data/public/images/vector_delete.png +0 -0
- data/public/images/wand.png +0 -0
- data/public/images/weather_clouds.png +0 -0
- data/public/images/weather_cloudy.png +0 -0
- data/public/images/weather_lightning.png +0 -0
- data/public/images/weather_rain.png +0 -0
- data/public/images/weather_snow.png +0 -0
- data/public/images/weather_sun.png +0 -0
- data/public/images/webcam.png +0 -0
- data/public/images/webcam_add.png +0 -0
- data/public/images/webcam_delete.png +0 -0
- data/public/images/webcam_error.png +0 -0
- data/public/images/world.png +0 -0
- data/public/images/world_add.png +0 -0
- data/public/images/world_delete.png +0 -0
- data/public/images/world_edit.png +0 -0
- data/public/images/world_go.png +0 -0
- data/public/images/world_link.png +0 -0
- data/public/images/wrench.png +0 -0
- data/public/images/wrench_orange.png +0 -0
- data/public/images/xhtml.png +0 -0
- data/public/images/xhtml_add.png +0 -0
- data/public/images/xhtml_delete.png +0 -0
- data/public/images/xhtml_go.png +0 -0
- data/public/images/xhtml_valid.png +0 -0
- data/public/images/zoom.png +0 -0
- data/public/images/zoom_in.png +0 -0
- data/public/images/zoom_out.png +0 -0
- data/public/img/logo.png +0 -0
- data/public/javascripts/application.js +2 -0
- data/public/javascripts/builder.js +136 -0
- data/public/javascripts/controls.js +965 -0
- data/public/javascripts/dragdrop.js +975 -0
- data/public/javascripts/effects.js +1130 -0
- data/public/javascripts/prototype.js +4320 -0
- data/public/javascripts/scriptaculous.js +60 -0
- data/public/javascripts/slider.js +275 -0
- data/public/javascripts/sound.js +55 -0
- data/public/javascripts/tablekit.js +965 -0
- data/public/javascripts/unittest.js +568 -0
- data/public/javascripts/upload-progress.js +133 -0
- data/public/javascripts/zena.js +501 -0
- data/public/robots.txt +1 -0
- data/public/stylesheets/admin.css +77 -0
- data/public/stylesheets/calendar.css +55 -0
- data/public/stylesheets/code.css +67 -0
- data/public/stylesheets/comment.css +43 -0
- data/public/stylesheets/csshover2.htc +121 -0
- data/public/stylesheets/default.css +85 -0
- data/public/stylesheets/popup.css +200 -0
- data/public/stylesheets/reset.css +33 -0
- data/public/stylesheets/search.css +19 -0
- data/public/stylesheets/upload-progress.css +4 -0
- data/public/stylesheets/wiki.css +100 -0
- data/public/stylesheets/zen.css +230 -0
- data/public/stylesheets/zena.css +78 -0
- data/rails/init.rb +2 -0
- data/tasks/ann.rake +80 -0
- data/tasks/bones.rake +20 -0
- data/tasks/gem.rake +201 -0
- data/tasks/git.rake +40 -0
- data/tasks/notes.rake +27 -0
- data/tasks/post_load.rake +34 -0
- data/tasks/rdoc.rake +51 -0
- data/tasks/rubyforge.rake +55 -0
- data/tasks/setup.rb +292 -0
- data/tasks/spec.rake +54 -0
- data/tasks/svn.rake +47 -0
- data/tasks/test.rake +40 -0
- data/tasks/zentest.rake +36 -0
- data/test/fixtures/comments.yml +126 -0
- data/test/fixtures/contact_contents.yml +132 -0
- data/test/fixtures/data_entries.yml +65 -0
- data/test/fixtures/discussions.yml +48 -0
- data/test/fixtures/document_contents.yml +108 -0
- data/test/fixtures/dyn_attributes.yml +66 -0
- data/test/fixtures/files/Node-test.zafu +307 -0
- data/test/fixtures/files/bird.jpg +0 -0
- data/test/fixtures/files/bomb.png +0 -0
- data/test/fixtures/files/exif_sample.jpg +0 -0
- data/test/fixtures/files/flower.jpg +0 -0
- data/test/fixtures/files/forest.pdf +0 -0
- data/test/fixtures/files/import.tgz +0 -0
- data/test/fixtures/files/jet_30.zip +0 -0
- data/test/fixtures/files/lake.jpg +0 -0
- data/test/fixtures/files/letter.zip +0 -0
- data/test/fixtures/files/other.txt +1 -0
- data/test/fixtures/files/simple.zml.gz +0 -0
- data/test/fixtures/files/some.txt +1 -0
- data/test/fixtures/files/translations_de.yml +4 -0
- data/test/fixtures/files/translations_fr.yml +4 -0
- data/test/fixtures/files/tree.jpg +0 -0
- data/test/fixtures/files/water.pdf +0 -0
- data/test/fixtures/groups.yml +86 -0
- data/test/fixtures/groups_users.yml +81 -0
- data/test/fixtures/iformats.yml +28 -0
- data/test/fixtures/import/photos.en.zml +11 -0
- data/test/fixtures/import/photos/bird.jpg +0 -0
- data/test/fixtures/import/photos/bird.jpg.en.zml +1 -0
- data/test/fixtures/import/photos/bird.jpg.fr.zml +1 -0
- data/test/fixtures/import/photos/document.yml.en +4 -0
- data/test/fixtures/import/photos/document.yml.fr +4 -0
- data/test/fixtures/import/simple.zml +8 -0
- data/test/fixtures/links.yml +313 -0
- data/test/fixtures/nodes.yml +2592 -0
- data/test/fixtures/relations.yml +126 -0
- data/test/fixtures/sites.yml +58 -0
- data/test/fixtures/template_contents.yml +172 -0
- data/test/fixtures/users.yml +167 -0
- data/test/fixtures/versions.yml +1909 -0
- data/test/fixtures/virtual_classes.yml +87 -0
- data/test/fixtures/zips.yml +15 -0
- data/test/functional/application_controller_test.rb +136 -0
- data/test/functional/calendar_controller_test.rb +25 -0
- data/test/functional/comments_controller_test.rb +59 -0
- data/test/functional/data_entries_controller_test.rb +22 -0
- data/test/functional/discussion_controller_test.rb +20 -0
- data/test/functional/documents_controller_test.rb +155 -0
- data/test/functional/groups_controller_test.rb +109 -0
- data/test/functional/iformats_controller_test.rb +115 -0
- data/test/functional/links_controller_test.rb +26 -0
- data/test/functional/nodes_controller_test.rb +448 -0
- data/test/functional/note_controller_test.rb +53 -0
- data/test/functional/preferences_controller_test.rb +11 -0
- data/test/functional/relations_controller_test.rb +55 -0
- data/test/functional/search_controller_test.rb +41 -0
- data/test/functional/sessions_controller_test.rb +73 -0
- data/test/functional/sites_controller_test.rb +102 -0
- data/test/functional/users_controller_test.rb +28 -0
- data/test/functional/versions_controller_test.rb +99 -0
- data/test/functional/virtual_classes_controller_test.rb +62 -0
- data/test/helpers/node_query/basic.yml +149 -0
- data/test/helpers/node_query/comments.yml +18 -0
- data/test/helpers/node_query/complex.yml +98 -0
- data/test/helpers/node_query/filters.yml +105 -0
- data/test/helpers/node_query/relations.yml +43 -0
- data/test/helpers/node_query_test.rb +117 -0
- data/test/integration/multiple_hosts_test.rb +98 -0
- data/test/integration/multiversion_test.rb +164 -0
- data/test/integration/navigation_test.rb +283 -0
- data/test/sites/README +2 -0
- data/test/sites/complex/complex.png +0 -0
- data/test/sites/complex/groups.yml +9 -0
- data/test/sites/complex/links.yml +75 -0
- data/test/sites/complex/nodes.yml +253 -0
- data/test/sites/complex/relations.yml +11 -0
- data/test/sites/complex/sites.yml +13 -0
- data/test/sites/complex/users.yml +20 -0
- data/test/sites/complex/versions.yml +1 -0
- data/test/sites/complex/virtual_classes.yml +19 -0
- data/test/sites/ocean/contact_contents.yml +19 -0
- data/test/sites/ocean/groups.yml +9 -0
- data/test/sites/ocean/iformats.yml +7 -0
- data/test/sites/ocean/nodes.yml +36 -0
- data/test/sites/ocean/sites.yml +14 -0
- data/test/sites/ocean/template_contents.yml +8 -0
- data/test/sites/ocean/users.yml +33 -0
- data/test/sites/ocean/versions.yml +48 -0
- data/test/sites/zena/comments.yml +82 -0
- data/test/sites/zena/contact_contents.yml +55 -0
- data/test/sites/zena/data_entries.yml +42 -0
- data/test/sites/zena/discussions.yml +30 -0
- data/test/sites/zena/document_contents.yml +76 -0
- data/test/sites/zena/dyn_attributes.yml +43 -0
- data/test/sites/zena/groups.yml +11 -0
- data/test/sites/zena/iformats.yml +6 -0
- data/test/sites/zena/links.yml +49 -0
- data/test/sites/zena/nodes.yml +338 -0
- data/test/sites/zena/relations.yml +66 -0
- data/test/sites/zena/sites.yml +13 -0
- data/test/sites/zena/template_contents.yml +103 -0
- data/test/sites/zena/users.yml +48 -0
- data/test/sites/zena/versions.yml +558 -0
- data/test/sites/zena/virtual_classes.yml +23 -0
- data/test/test_helper.rb +62 -0
- data/test/test_zena.rb +138 -0
- data/test/unit/cache_test.rb +62 -0
- data/test/unit/cached_page_test.rb +165 -0
- data/test/unit/comment_test.rb +185 -0
- data/test/unit/contact_content_test.rb +33 -0
- data/test/unit/contact_test.rb +39 -0
- data/test/unit/contact_version_test.rb +48 -0
- data/test/unit/core_ext_test.rb +48 -0
- data/test/unit/data_entry_test.rb +92 -0
- data/test/unit/discussion_test.rb +59 -0
- data/test/unit/document_content_test.rb +110 -0
- data/test/unit/document_test.rb +234 -0
- data/test/unit/document_version_test.rb +11 -0
- data/test/unit/dyn_attributes_test.rb +229 -0
- data/test/unit/exif_data_test.rb +66 -0
- data/test/unit/group_test.rb +142 -0
- data/test/unit/iformat_test.rb +190 -0
- data/test/unit/image_builder_test.rb +214 -0
- data/test/unit/image_content_test.rb +154 -0
- data/test/unit/image_test.rb +311 -0
- data/test/unit/image_version_test.rb +18 -0
- data/test/unit/letter_test.rb +9 -0
- data/test/unit/link_test.rb +32 -0
- data/test/unit/multiversion_test.rb +1008 -0
- data/test/unit/node_test.rb +1578 -0
- data/test/unit/note_test.rb +85 -0
- data/test/unit/page_test.rb +79 -0
- data/test/unit/project_test.rb +32 -0
- data/test/unit/reference_test.rb +9 -0
- data/test/unit/relation_proxy_test.rb +409 -0
- data/test/unit/relation_test.rb +48 -0
- data/test/unit/section_test.rb +32 -0
- data/test/unit/secure_test.rb +939 -0
- data/test/unit/site_test.rb +236 -0
- data/test/unit/skin_test.rb +18 -0
- data/test/unit/template_content_test.rb +9 -0
- data/test/unit/template_test.rb +357 -0
- data/test/unit/template_version_test.rb +7 -0
- data/test/unit/text_document_content_test.rb +8 -0
- data/test/unit/text_document_test.rb +139 -0
- data/test/unit/text_document_version_test.rb +37 -0
- data/test/unit/user_test.rb +295 -0
- data/test/unit/version_test.rb +312 -0
- data/test/unit/virtual_class_test.rb +242 -0
- data/test/unit/zena/db_test.rb +94 -0
- data/test/unit/zena/parser/latex.yml +14 -0
- data/test/unit/zena/parser/zafu.yml +391 -0
- data/test/unit/zena/parser/zafu_asset.yml +43 -0
- data/test/unit/zena/parser/zafu_insight.yml +3 -0
- data/test/unit/zena/parser/zazen.yml +211 -0
- data/test/unit/zena/parser_test.rb +184 -0
- data/test/unit/zena/unit/test_case_test.rb +12 -0
- data/test/unit/zena/use/calendar_test.rb +49 -0
- data/test/unit/zena/use/dates_model_methods_test.rb +41 -0
- data/test/unit/zena/use/dates_string_methods_test.rb +94 -0
- data/test/unit/zena/use/dates_view_methods_test.rb +158 -0
- data/test/unit/zena/use/html_tags_test.rb +244 -0
- data/test/unit/zena/use/i18n_test.rb +34 -0
- data/test/unit/zena/use/nested_attributes_alias_model_test.rb +104 -0
- data/test/unit/zena/use/nested_attributes_alias_view_test.rb +99 -0
- data/test/unit/zena/use/refactor_test.rb +52 -0
- data/test/unit/zena/use/rendering_test.rb +23 -0
- data/test/unit/zena/use/urls_test.rb +119 -0
- data/test/unit/zena/use/zafu_test.rb +21 -0
- data/test/unit/zena/use/zazen_test.rb +230 -0
- data/test/unit/zena/zena_tags/ajax.yml +233 -0
- data/test/unit/zena/zena_tags/apphelper.yml +85 -0
- data/test/unit/zena/zena_tags/basic.yml +1295 -0
- data/test/unit/zena/zena_tags/complex.yml +249 -0
- data/test/unit/zena/zena_tags/data.yml +73 -0
- data/test/unit/zena/zena_tags/errors.yml +71 -0
- data/test/unit/zena/zena_tags/eval.yml +51 -0
- data/test/unit/zena/zena_tags/relations.yml +411 -0
- data/test/unit/zena/zena_tags/zazen.yml +84 -0
- data/test/unit/zena/zena_tags_test.rb +235 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run 2.tmCommand +24 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run Context.tmCommand +58 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run Focused Should.tmCommand +88 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/Run.tmCommand +27 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Commands/YAML to Shoulda.tmCommand +23 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Preferences/Symbol List: Context.tmPreferences +19 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Preferences/Symbol List: Should.tmPreferences +19 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory attributes for.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory build.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_define with class.tmSnippet +18 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_define.tmSnippet +18 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_next.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/Factory_sequence.tmSnippet +18 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_bad_value.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_contains.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_does_not_contain.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_good_value.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_same_elements.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_save.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_sent_email.tmSnippet +18 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/assert_valid.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/association.tmSnippet +17 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/attribute.tmSnippet +17 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/before_should block.tmSnippet +18 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block get.tmSnippet +22 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block post.tmSnippet +23 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/context block with setup.tmSnippet +25 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/setup.tmSnippet +18 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should block with before proc.tmSnippet +18 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should block.tmSnippet +18 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_allow_values_for.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_assign_to.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_be_restful denied.tmSnippet +20 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_be_restful.tmSnippet +20 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_belong_to.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_change by.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_change from to.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_at_least.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_in_range.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_length_is.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_ensure_value_in_range.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_eventually.tmSnippet +18 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_filter_params.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_and_belong_to_many.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_class_methods.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_db_column.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_db_columns.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_index.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_indices.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_instance_methods.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_many.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_named_scope.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_one.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_have_readonly_attributes.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_allow_mass_assignment_of.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_allow_values_for.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_assign_to.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_change.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_not_set_the_flash.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_redirect_to.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_a_form.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_template.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_with_layout.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_render_without_layout.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_respond_with.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_respond_with_content_type.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_return_from_session.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_route.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_set_the_flash_to.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_acceptance_of.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_numericality_of.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_presence_of.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_uniqueness_of with scope.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Snippets/should_validate_uniqueness_of.tmSnippet +16 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/catch_exception.rb +39 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/run_script.rb +104 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/stdin_dialog.rb +14 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/test.rb +17 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/RubyMate/todo.txt +13 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Support/bin/yaml_to_shoulda.rb +25 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/Syntaxes/Ruby on Rails (Shoulda).tmLanguage +166 -0
- data/vendor/TextMate/Ruby Shoulda.tmbundle/info.plist +304 -0
- data/vendor/TextMate/Zena.tmbundle/Commands/Run all yaml tests.tmCommand +37 -0
- data/vendor/TextMate/Zena.tmbundle/Commands/Run focused yaml test.tmCommand +53 -0
- data/vendor/TextMate/Zena.tmbundle/Support/RubyMate/run_script.rb +74 -0
- data/vendor/TextMate/Zena.tmbundle/info.plist +15 -0
- data/vendor/apache_upload/mod_upload_progress.c +813 -0
- data/vendor/bricks/20070122-172926.txt +282 -0
- data/vendor/plugins/ar_mysql_full_text/README +15 -0
- data/vendor/plugins/ar_mysql_full_text/init.rb +1 -0
- data/vendor/plugins/ar_mysql_full_text/lib/ar_mysql_full_text.rb +69 -0
- data/vendor/plugins/gettext_i18n_rails/README.markdown +139 -0
- data/vendor/plugins/gettext_i18n_rails/Rakefile +6 -0
- data/vendor/plugins/gettext_i18n_rails/init.rb +10 -0
- data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails.rb +21 -0
- data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/action_controller.rb +6 -0
- data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/active_record.rb +17 -0
- data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/backend.rb +47 -0
- data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/haml_parser.rb +43 -0
- data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/i18n_hacks.rb +10 -0
- data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/model_attributes_finder.rb +46 -0
- data/vendor/plugins/gettext_i18n_rails/lib/gettext_i18n_rails/ruby_gettext_extractor.rb +136 -0
- data/vendor/plugins/gettext_i18n_rails/spec/gettext_i18n_rails/action_controller_spec.rb +36 -0
- data/vendor/plugins/gettext_i18n_rails/spec/gettext_i18n_rails/active_record_spec.rb +50 -0
- data/vendor/plugins/gettext_i18n_rails/spec/gettext_i18n_rails/backend_spec.rb +41 -0
- data/vendor/plugins/gettext_i18n_rails/spec/gettext_i18n_rails_spec.rb +43 -0
- data/vendor/plugins/gettext_i18n_rails/spec/spec_helper.rb +15 -0
- data/vendor/plugins/gettext_i18n_rails/tasks/gettext_rails_i18n.rake +73 -0
- data/vendor/plugins/responds_to_parent/MIT-LICENSE +20 -0
- data/vendor/plugins/responds_to_parent/README +42 -0
- data/vendor/plugins/responds_to_parent/Rakefile +22 -0
- data/vendor/plugins/responds_to_parent/init.rb +1 -0
- data/vendor/plugins/responds_to_parent/lib/responds_to_parent.rb +46 -0
- data/vendor/plugins/responds_to_parent/test/responds_to_parent_test.rb +115 -0
- data/vendor/plugins/rjs-assertions/MIT-LICENSE +20 -0
- data/vendor/plugins/rjs-assertions/README +64 -0
- data/vendor/plugins/rjs-assertions/init.rb +1 -0
- data/vendor/plugins/rjs-assertions/lib/rjs-assertions.rb +99 -0
- data/vendor/rails_patches/support_for_inverse_relationships_on_active_record_objects.diff +739 -0
- metadata +2075 -0
@@ -0,0 +1,52 @@
|
|
1
|
+
module Zena
|
2
|
+
module Use
|
3
|
+
module ErrorRendering
|
4
|
+
module Common
|
5
|
+
|
6
|
+
#TODO: test
|
7
|
+
def error_messages_for(obj, opts={})
|
8
|
+
return '' if obj.errors.empty?
|
9
|
+
res = ["<table class='#{opts[:class] || 'errors'}'>"]
|
10
|
+
obj.errors.each_error do |er,msg|
|
11
|
+
res << "<tr><td><b>#{er}</b></td><td>#{_(msg)}</td></tr>"
|
12
|
+
end
|
13
|
+
res << '</table>'
|
14
|
+
res.join("\n")
|
15
|
+
end
|
16
|
+
|
17
|
+
# TODO: test (where is this used ? discussions, ?)
|
18
|
+
def processing_error(msg)
|
19
|
+
# (this method used to be called add_error, but it messed up with 'test/unit/testcase.rb' when testing helpers)
|
20
|
+
@errors ||= []
|
21
|
+
@errors << _(msg)
|
22
|
+
end
|
23
|
+
|
24
|
+
# TODO: test
|
25
|
+
def render_errors(errs=@errors)
|
26
|
+
if !errs || errs.empty?
|
27
|
+
""
|
28
|
+
elsif errs.kind_of?(ActiveRecord::Errors)
|
29
|
+
res = "<table class='errors'>"
|
30
|
+
errs.each do |k,v|
|
31
|
+
res << "<tr><td><b>#{k}</b></td><td>#{v}</td></tr>\n"
|
32
|
+
end
|
33
|
+
res << "</table>"
|
34
|
+
res
|
35
|
+
else
|
36
|
+
"<table class='errors'><tr><td>#{errs.join("</td></tr>\n<tr><td>")}</td></tr></table>"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end # Common
|
41
|
+
|
42
|
+
module ControllerMethods
|
43
|
+
include Common
|
44
|
+
end
|
45
|
+
|
46
|
+
module ViewMethods
|
47
|
+
include Common
|
48
|
+
end
|
49
|
+
|
50
|
+
end # ErrorRendering
|
51
|
+
end # Use
|
52
|
+
end # Zena
|
@@ -0,0 +1,133 @@
|
|
1
|
+
module Zena
|
2
|
+
module Use
|
3
|
+
module Fixtures
|
4
|
+
# load all fixtures and setup fixture_accessors:
|
5
|
+
FIXTURE_PATH = File.join(RAILS_ROOT, 'test', 'fixtures')
|
6
|
+
FILE_FIXTURES_PATH = File.join(RAILS_ROOT, 'test', 'fixtures', 'files')
|
7
|
+
# We use transactional fixtures with a single load for ALL tests (this is not the default rails implementation). Tests are now 5x-10x faster.
|
8
|
+
|
9
|
+
def self.included(base)
|
10
|
+
self.load_fixtures unless defined?(@@loaded_fixtures)
|
11
|
+
end
|
12
|
+
|
13
|
+
# Could DRY with file_path defined in Base
|
14
|
+
def self.file_path(filename, content_id)
|
15
|
+
digest = Digest::SHA1.hexdigest(content_id.to_s)
|
16
|
+
fname = filename.split('.').first
|
17
|
+
"#{SITES_ROOT}/test.host/data/full/#{digest[0..0]}/#{digest[1..1]}/#{digest[2..2]}/#{fname}"
|
18
|
+
end
|
19
|
+
|
20
|
+
def self.load_fixtures
|
21
|
+
# make sure versions is of type InnoDB if testing with mysql (transaction support)
|
22
|
+
begin
|
23
|
+
Node.connection.remove_index "versions", ["title", "text", "summary"]
|
24
|
+
rescue ActiveRecord::StatementInvalid
|
25
|
+
ensure
|
26
|
+
Zena::Db.change_engine('versions', 'InnoDB')
|
27
|
+
end
|
28
|
+
|
29
|
+
# Our version of loaded fixtures to help define "users_id", "nodes_id" and such.
|
30
|
+
@@loaded_fixtures = {}
|
31
|
+
fixture_table_names = []
|
32
|
+
|
33
|
+
# no fixtures ? execute rake task
|
34
|
+
unless File.exist?(File.join(FIXTURE_PATH, 'nodes.yml'))
|
35
|
+
puts "No fixtures in 'test/fixtures'. Building from 'test/sites'."
|
36
|
+
`cd #{RAILS_ROOT} && rake zena:build_fixtures`
|
37
|
+
end
|
38
|
+
|
39
|
+
# make sure files and import directories are in sync
|
40
|
+
if RAILS_ROOT != Zena::ROOT
|
41
|
+
['test/fixtures/files', 'test/fixtures/import'].each do |path|
|
42
|
+
from_dir = "#{Zena::ROOT}/#{path}"
|
43
|
+
FileUtils.mkpath(from_dir) unless File.exist?(from_dir)
|
44
|
+
Dir.foreach(from_dir) do |f|
|
45
|
+
FileUtils.cp_r("#{from_dir}/#{f}", "#{RAILS_ROOT}/#{path}/") unless File.exist?("#{RAILS_ROOT}/#{path}/#{f}")
|
46
|
+
end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
Dir.foreach(FIXTURE_PATH) do |file|
|
51
|
+
next unless file =~ /^(.+)\.yml$/
|
52
|
+
table_name = $1
|
53
|
+
fixture_table_names << table_name
|
54
|
+
|
55
|
+
if ['users', 'sites'].include?(table_name)
|
56
|
+
|
57
|
+
define_method(table_name) do |fixture|
|
58
|
+
if @@loaded_fixtures[table_name][fixture.to_s]
|
59
|
+
# allways reload
|
60
|
+
@@loaded_fixtures[table_name][fixture.to_s].find
|
61
|
+
else
|
62
|
+
raise StandardError, "No fixture with name '#{fixture}' found for table '#{table_name}'"
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
define_method(table_name + "_id") do |fixture|
|
67
|
+
Zena::FoxyParser::multi_site_id(fixture)
|
68
|
+
end
|
69
|
+
else
|
70
|
+
|
71
|
+
define_method(table_name) do |fixture|
|
72
|
+
raise Exception.new("$_test_site is blank!") if $_test_site.blank?
|
73
|
+
fixture_name = "#{$_test_site}_#{fixture}"
|
74
|
+
if fix = @@loaded_fixtures[table_name][fixture_name]
|
75
|
+
# allways reload
|
76
|
+
fix.find
|
77
|
+
else
|
78
|
+
raise StandardError, "No fixture with name '#{fixture_name}' found for table '#{table_name}' in site '#{$_test_site}'."
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
define_method(table_name + "_id") do |fixture|
|
83
|
+
raise Exception.new("$_test_site is blank!") if $_test_site.blank?
|
84
|
+
Zena::FoxyParser::id($_test_site, fixture)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
if table_name == 'nodes' || table_name == 'zips'
|
89
|
+
define_method(table_name + "_zip") do |fixture|
|
90
|
+
# needed by additions_test
|
91
|
+
fixture_name = table_name == 'zips' ? fixture.to_s : "#{$_test_site}_#{fixture}"
|
92
|
+
if fix = @@loaded_fixtures[table_name][fixture_name]
|
93
|
+
fix.instance_eval { @fixture['zip'].to_i }
|
94
|
+
else
|
95
|
+
raise StandardError, "No fixture with name '#{fixture_name}' found for table '#{table_name}'"
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
if table_name == 'sites'
|
101
|
+
define_method("#{table_name}_host") do |fixture|
|
102
|
+
if fix = @@loaded_fixtures[table_name][fixture]
|
103
|
+
fix.instance_eval { @fixture['host'] }
|
104
|
+
else
|
105
|
+
raise StandardError, "No fixture with name '#{fixture}' found for '#{table_name}'"
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
109
|
+
end
|
110
|
+
|
111
|
+
fixtures = ::Fixtures.create_fixtures(FIXTURE_PATH, fixture_table_names)
|
112
|
+
unless fixtures.nil?
|
113
|
+
if fixtures.instance_of?(::Fixtures)
|
114
|
+
@@loaded_fixtures[fixtures.table_name] = fixtures
|
115
|
+
else
|
116
|
+
fixtures.each { |f| @@loaded_fixtures[f.table_name] = f }
|
117
|
+
end
|
118
|
+
end
|
119
|
+
|
120
|
+
unless File.exist?("#{SITES_ROOT}/test.host/data")
|
121
|
+
@@loaded_fixtures['document_contents'].each do |name,fixture|
|
122
|
+
fname, content_id = fixture.instance_eval { [@fixture['name']+"."+@fixture['ext'], @fixture['id'].to_s] }
|
123
|
+
path = file_path(fname, content_id)
|
124
|
+
FileUtils::mkpath(File.dirname(path))
|
125
|
+
if File.exist?(File.join(FILE_FIXTURES_PATH,fname))
|
126
|
+
FileUtils::cp(File.join(FILE_FIXTURES_PATH,fname),path)
|
127
|
+
end
|
128
|
+
end
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end # Fixtures
|
132
|
+
end # use
|
133
|
+
end # Zena
|
@@ -0,0 +1,148 @@
|
|
1
|
+
require 'json'
|
2
|
+
|
3
|
+
module Zena
|
4
|
+
module Use
|
5
|
+
module Grid
|
6
|
+
module Common
|
7
|
+
|
8
|
+
# Build a tabular content from a node's attribute
|
9
|
+
def get_table_from_json(text)
|
10
|
+
if text.blank?
|
11
|
+
table = [{"type"=>"table"},[["title"],["value"]]]
|
12
|
+
else
|
13
|
+
table = JSON.parse(text)
|
14
|
+
end
|
15
|
+
|
16
|
+
raise JSON::ParserError unless table.kind_of?(Array) && table.size == 2 && table[0].kind_of?(Hash) && table[0]['type'] == 'table' && table[1].kind_of?(Array)
|
17
|
+
table
|
18
|
+
end
|
19
|
+
|
20
|
+
end # Common
|
21
|
+
|
22
|
+
module ControllerMethods
|
23
|
+
include Common
|
24
|
+
|
25
|
+
# Get cell text
|
26
|
+
def cell_edit
|
27
|
+
# get table
|
28
|
+
table = get_table_from_json(@node.safe_read(params[:attr]))
|
29
|
+
# get row/cell
|
30
|
+
table_data = table[1]
|
31
|
+
|
32
|
+
if row = table_data[params[:row].to_i]
|
33
|
+
if cell = row[params[:cell].to_i]
|
34
|
+
render :text => cell
|
35
|
+
else
|
36
|
+
' '
|
37
|
+
end
|
38
|
+
else
|
39
|
+
' '
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
# Ajax table editor
|
44
|
+
def cell_update
|
45
|
+
# get table
|
46
|
+
table = get_table_from_json(@node.safe_read(params[:attr]))
|
47
|
+
# get row/cell
|
48
|
+
table_data = table[1]
|
49
|
+
|
50
|
+
if row = table_data[params[:row].to_i]
|
51
|
+
if cell = row[params[:cell].to_i]
|
52
|
+
if cell != params[:value]
|
53
|
+
row[params[:cell].to_i] = params[:value]
|
54
|
+
@node.update_attributes(params[:attr] => table.to_json)
|
55
|
+
end
|
56
|
+
else
|
57
|
+
@node.errors.add(params[:attr], 'Cell outside of table range.')
|
58
|
+
end
|
59
|
+
else
|
60
|
+
@node.errors.add(params[:attr], 'Row outside of table range.')
|
61
|
+
end
|
62
|
+
|
63
|
+
respond_to do |format|
|
64
|
+
format.html { render :inline => @node.errors.empty? ? "<%= zazen(params[:value], :no_p => true) %>" : error_messages_for(@node) }
|
65
|
+
end
|
66
|
+
rescue JSON::ParserError
|
67
|
+
render :inline => _('could not save value (bad attribute)')
|
68
|
+
end
|
69
|
+
|
70
|
+
# Ajax table add row/column
|
71
|
+
def table_update
|
72
|
+
# get table
|
73
|
+
@table = get_table_from_json(@node.safe_read(params[:attr]))
|
74
|
+
# get row/cell
|
75
|
+
table_data = @table[1]
|
76
|
+
|
77
|
+
if params[:add] == 'row'
|
78
|
+
table_data << table_data[0].map { ' ' }
|
79
|
+
elsif params[:add] == 'column'
|
80
|
+
table_data.each do |row|
|
81
|
+
row << ' '
|
82
|
+
end
|
83
|
+
elsif params[:remove] == 'row' && table_data.size > 2
|
84
|
+
table_data.pop
|
85
|
+
elsif params[:remove] == 'column' && table_data[0].size > 1
|
86
|
+
table_data.each do |row|
|
87
|
+
row.pop
|
88
|
+
end
|
89
|
+
else
|
90
|
+
# reorder ...
|
91
|
+
end
|
92
|
+
|
93
|
+
@node.update_attributes(params[:attr] => @table.to_json)
|
94
|
+
rescue JSON::ParserError
|
95
|
+
render :inline => _('could not save value (bad attribute)')
|
96
|
+
end
|
97
|
+
|
98
|
+
end
|
99
|
+
|
100
|
+
Routes = {
|
101
|
+
:cell_update => :post, :table_update => :post, :cell_edit => :get
|
102
|
+
}
|
103
|
+
|
104
|
+
module ViewMethods
|
105
|
+
include Common
|
106
|
+
|
107
|
+
# Create a table from an attribute
|
108
|
+
def make_table(opts)
|
109
|
+
style, node, attribute, title, table = opts[:style], opts[:node], opts[:attribute], opts[:title], opts[:table]
|
110
|
+
attribute = "d_#{attribute}" unless ['v_', 'd_'].include?(attribute[0..1])
|
111
|
+
case (style || '').sub('.', '')
|
112
|
+
when ">"
|
113
|
+
prefix = "<div class='img_right'>"
|
114
|
+
suffix = "</div>"
|
115
|
+
when "<"
|
116
|
+
prefix = "<div class='img_left'>"
|
117
|
+
suffix = "</div>"
|
118
|
+
when "="
|
119
|
+
prefix = "<div class='img_center'>"
|
120
|
+
suffix = "</div>"
|
121
|
+
else
|
122
|
+
prefix = ''
|
123
|
+
suffix = ''
|
124
|
+
end
|
125
|
+
|
126
|
+
if node.can_write?
|
127
|
+
prefix << "<div class='table_add'>"
|
128
|
+
prefix << link_to_remote("<img src='/images/column_add.png' alt='#{_('add column')}'/>",
|
129
|
+
:url => "/nodes/#{node.zip}/table_update?add=column&attr=#{attribute}")
|
130
|
+
prefix << link_to_remote("<img src='/images/column_delete.png' alt='#{_('add column')}'/>",
|
131
|
+
:url => "/nodes/#{node.zip}/table_update?remove=column&attr=#{attribute}")
|
132
|
+
prefix << link_to_remote("<img src='/images/row_add.png' alt='#{_('add column')}'/>",
|
133
|
+
:url => "/nodes/#{node.zip}/table_update?add=row&attr=#{attribute}")
|
134
|
+
prefix << link_to_remote("<img src='/images/row_delete.png' alt='#{_('add column')}'/>",
|
135
|
+
:url => "/nodes/#{node.zip}/table_update?remove=row&attr=#{attribute}")
|
136
|
+
prefix << "</div>"
|
137
|
+
end
|
138
|
+
|
139
|
+
table ||= get_table_from_json(node.safe_read(attribute))
|
140
|
+
|
141
|
+
prefix + render_to_string( :partial=>'nodes/table', :locals=>{:table=>table, :node=>node, :attribute=>attribute}) + suffix
|
142
|
+
rescue JSON::ParserError
|
143
|
+
"<span class='unknownLink'>could not build table from text</span>"
|
144
|
+
end
|
145
|
+
end
|
146
|
+
end # Grid
|
147
|
+
end # Use
|
148
|
+
end # Zena
|
@@ -0,0 +1,603 @@
|
|
1
|
+
require 'will_paginate'
|
2
|
+
require 'uuidtools'
|
3
|
+
|
4
|
+
module Zena
|
5
|
+
module Use
|
6
|
+
module HtmlTags
|
7
|
+
module ImageTags
|
8
|
+
|
9
|
+
# This is used by _crop.rhtml
|
10
|
+
def crop_formats(obj)
|
11
|
+
buttons = ['jpg', 'png']
|
12
|
+
ext = TYPE_TO_EXT[obj.c_conten_type]
|
13
|
+
ext = ext ? ext[0] : obj.c_ext
|
14
|
+
buttons << ext unless buttons.include?(ext)
|
15
|
+
buttons.map do |e|
|
16
|
+
"<input type='radio' name='node[c_crop][format]' value='#{e}'#{e==ext ? " checked='checked'" : ''}/> #{e} "
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
# Display an image tag for the given node. If no mode is provided, 'full' is used. Options are ':mode', ':id', ':alt',
|
21
|
+
# ':alt_src' and ':class'. If no class option is passed, the format is used as the image class. Example :
|
22
|
+
# img_tag(@node, :mode=>'pv') => <img src='/sites/test.host/data/jpg/20/bird_pv.jpg' height='80' width='80' alt='bird' class='pv'/>
|
23
|
+
def img_tag(obj, opts={})
|
24
|
+
return '' unless obj
|
25
|
+
# try:
|
26
|
+
# 1. tag on element data (Image, mp3 document)
|
27
|
+
res = asset_img_tag(obj, opts)
|
28
|
+
|
29
|
+
# 2. tag using alt_src data
|
30
|
+
if !res && alt_src = opts[:alt_src]
|
31
|
+
if alt_src == 'icon'
|
32
|
+
if icon = obj.icon
|
33
|
+
return img_tag(icon, opts.merge(:alt_src => nil))
|
34
|
+
end
|
35
|
+
elsif icon = obj.find(:first, alt_src.split(','))
|
36
|
+
# icon through alt_src relation
|
37
|
+
return img_tag(icon, opts.merge(:alt_src => nil))
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
# 3. generic icon
|
42
|
+
res ||= generic_img_tag(obj, opts)
|
43
|
+
|
44
|
+
if res.kind_of?(Hash)
|
45
|
+
out = "<img"
|
46
|
+
[:src, :width, :height, :alt, :id, :class, :style, :border].each do |k|
|
47
|
+
next unless v = res[k]
|
48
|
+
out << " #{k}='#{v}'"
|
49
|
+
end
|
50
|
+
out + "/>"
|
51
|
+
else
|
52
|
+
res
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
# <img> tag definition to show an Image / mp3 document
|
57
|
+
# FIXME: this should live inside zafu
|
58
|
+
def asset_img_tag(obj, opts)
|
59
|
+
if obj.kind_of?(Image)
|
60
|
+
res = {}
|
61
|
+
content = obj.version.content
|
62
|
+
format = Iformat[opts[:mode]] || Iformat['std']
|
63
|
+
|
64
|
+
[:id, :border].each do |k|
|
65
|
+
next unless opts[k]
|
66
|
+
res[k] = opts[k]
|
67
|
+
end
|
68
|
+
|
69
|
+
res[:alt] = opts[:alt] || fquote(obj.version.title)
|
70
|
+
res[:src] = data_path(obj, :mode => (format[:size] == :keep ? nil : format[:name]), :host => opts[:host])
|
71
|
+
res[:class] = opts[:class] || format[:name]
|
72
|
+
|
73
|
+
# compute image size
|
74
|
+
res[:width] = content.width(format)
|
75
|
+
res[:height] = content.height(format)
|
76
|
+
res
|
77
|
+
elsif obj.kind_of?(Document) && obj.version.content.ext == 'mp3' && (opts[:mode].nil? || opts[:mode] == 'std' || opts[:mode] == 'button')
|
78
|
+
# rough wrap to use the 'button'
|
79
|
+
# we differ '<object...>' by using a placeholder to avoid the RedCloth escaping.
|
80
|
+
add_place_holder( %{ <object type="application/x-shockwave-flash"
|
81
|
+
data="/images/swf/xspf/musicplayer.swf?&song_url=#{CGI.escape(data_path(obj))}"
|
82
|
+
width="17" height="17">
|
83
|
+
<param name="movie"
|
84
|
+
value="/images/swf/xspf/musicplayer.swf?&song_url=#{CGI.escape(data_path(obj))}" />
|
85
|
+
<img src="/images/sound_mute.png"
|
86
|
+
width="16" height="16" alt="" />
|
87
|
+
</object> } )
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
# <img> tag definition for the generic icon (image showing class of element).
|
92
|
+
def generic_img_tag(obj, opts)
|
93
|
+
res = {}
|
94
|
+
[:class, :id, :border, :style].each do |k|
|
95
|
+
next unless opts[k]
|
96
|
+
res[k] = opts[k]
|
97
|
+
end
|
98
|
+
|
99
|
+
if obj.vclass.kind_of?(VirtualClass) && !obj.vclass.icon.blank?
|
100
|
+
# FIXME: we could use a 'zip' to an image as 'icon' (but we would need some caching to avoid multiple loading during doc listing)
|
101
|
+
res[:src] = obj.vclass.icon
|
102
|
+
res[:alt] = opts[:alt] || (_('%{type} node') % {:type => obj.vclass.name})
|
103
|
+
res[:class] ||= obj.klass
|
104
|
+
# no width, height available
|
105
|
+
return res
|
106
|
+
end
|
107
|
+
|
108
|
+
# default generic icon from /images/ext folder
|
109
|
+
res[:width] = 32
|
110
|
+
res[:height] = 32
|
111
|
+
|
112
|
+
if obj.kind_of?(Document)
|
113
|
+
name = obj.version.content.ext
|
114
|
+
res[:alt] = opts[:alt] || (_('%{ext} document') % {:ext => name})
|
115
|
+
res[:class] ||= 'doc'
|
116
|
+
else
|
117
|
+
name = obj.klass.underscore
|
118
|
+
res[:alt] = opts[:alt] || (_('%{ext} node') % {:ext => obj.klass})
|
119
|
+
res[:class] ||= 'node'
|
120
|
+
end
|
121
|
+
|
122
|
+
if !File.exist?("#{RAILS_ROOT}/public/images/ext/#{name}.png")
|
123
|
+
name = 'other'
|
124
|
+
end
|
125
|
+
|
126
|
+
res[:src] = "/images/ext/#{name}.png"
|
127
|
+
|
128
|
+
if opts[:mode] && (format = Iformat[opts[:mode]]) && format[:size] != :keep
|
129
|
+
# resize image
|
130
|
+
img = ImageBuilder.new(:path=>"#{RAILS_ROOT}/public#{res[:src]}", :width=>32, :height=>32)
|
131
|
+
img.transform!(format)
|
132
|
+
if (img.width == res[:width] && img.height == res[:height])
|
133
|
+
# ignore mode
|
134
|
+
res[:mode] = nil
|
135
|
+
else
|
136
|
+
res[:width] = img.width
|
137
|
+
res[:height] = img.height
|
138
|
+
|
139
|
+
new_file = "#{name}_#{format[:name]}.png"
|
140
|
+
path = "#{RAILS_ROOT}/public/images/ext/#{new_file}"
|
141
|
+
unless File.exist?(path)
|
142
|
+
# make new image with the mode
|
143
|
+
if img.dummy?
|
144
|
+
File.cp("#{RAILS_ROOT}/public/images/ext/#{name}.png", path)
|
145
|
+
else
|
146
|
+
File.open(path, "wb") { |f| f.syswrite(img.read) }
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
res[:src] = "/images/ext/#{new_file}"
|
151
|
+
end
|
152
|
+
end
|
153
|
+
|
154
|
+
res[:src] = "http://#{opts[:host]}#{res[:src]}" if opts[:host]
|
155
|
+
|
156
|
+
res
|
157
|
+
end
|
158
|
+
end # ImageTags
|
159
|
+
|
160
|
+
module FormTags
|
161
|
+
|
162
|
+
# date_box seizure setup
|
163
|
+
def uses_datebox(opt={})
|
164
|
+
if ZENA_CALENDAR_LANGS.include?(lang)
|
165
|
+
l = lang
|
166
|
+
else
|
167
|
+
l = visitor.site[:default_lang]
|
168
|
+
end
|
169
|
+
<<-EOL
|
170
|
+
<script src="/calendar/calendar.js" type="text/javascript"></script>
|
171
|
+
<script src="/calendar/calendar-setup.js" type="text/javascript"></script>
|
172
|
+
<script src="/calendar/lang/calendar-#{l}-utf8.js" type="text/javascript"></script>
|
173
|
+
<link href="/calendar/calendar-brown.css" media="screen" rel="Stylesheet" type="text/css" />
|
174
|
+
#{javascript_start}
|
175
|
+
Calendar._TT["DEF_DATE_FORMAT"] = "#{_('datetime')}";
|
176
|
+
Calendar._TT["FIRST_DAY"] = #{_('week_start_day')};
|
177
|
+
#{javascript_end}
|
178
|
+
EOL
|
179
|
+
end
|
180
|
+
|
181
|
+
#TODO: test
|
182
|
+
# Return the list of groups from the visitor for forms
|
183
|
+
def form_groups
|
184
|
+
@form_groups ||= Group.find(:all, :select=>'id, name', :conditions=>"id IN (#{visitor.group_ids.join(',')})", :order=>"name ASC").collect {|p| [p.name, p.id]}
|
185
|
+
end
|
186
|
+
|
187
|
+
#TODO: test
|
188
|
+
# Return the list of possible templates
|
189
|
+
def form_skins
|
190
|
+
@form_skins ||= secure!(Skin) { Skin.find(:all, :order=>'name ASC') }.map {|r| r[:name]}
|
191
|
+
end
|
192
|
+
|
193
|
+
|
194
|
+
def upload_form_tag(url_opts, html_opts = {})
|
195
|
+
@uuid = UUIDTools::UUID.random_create.to_s.gsub('-','')
|
196
|
+
html_opts.reverse_merge!(:multipart => true, :id => "UploadForm#{@uuid}")
|
197
|
+
if html_opts[:multipart]
|
198
|
+
html_opts[:onsubmit] = "submitUploadForm('#{html_opts[:id]}', '#{@uuid}');"
|
199
|
+
url_opts[UPLOAD_KEY] = @uuid
|
200
|
+
end
|
201
|
+
if block_given?
|
202
|
+
form_tag( url_opts, html_opts ) do |f|
|
203
|
+
yield(f)
|
204
|
+
end
|
205
|
+
else
|
206
|
+
form_tag( url_opts, html_opts )
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
# Date selection tool
|
211
|
+
def date_box(obj, var, opts = {})
|
212
|
+
rnd_id = rand(100000000000)
|
213
|
+
defaults = { :id=>"datef#{rnd_id}", :button=>"dateb#{rnd_id}", :display=>"dated#{rnd_id}" }
|
214
|
+
opts = defaults.merge(opts)
|
215
|
+
date = eval("@#{obj} ? @#{obj}.#{var} : nil")
|
216
|
+
value = tformat_date(date,'datetime')
|
217
|
+
if opts[:size]
|
218
|
+
fld = "<input id='#{opts[:id]}' name='#{obj}[#{var}]' type='text' size='#{opts[:size]}' value='#{value}' />"
|
219
|
+
else
|
220
|
+
fld = "<input id='#{opts[:id]}' name='#{obj}[#{var}]' type='text' value='#{value}' />"
|
221
|
+
end
|
222
|
+
<<-EOL
|
223
|
+
<span class="date_box"><img src="/calendar/iconCalendar.gif" id="#{opts[:button]}" alt='#{_('date selection')}'/>
|
224
|
+
#{fld}
|
225
|
+
<script type="text/javascript">
|
226
|
+
Calendar.setup({
|
227
|
+
inputField : "#{opts[:id]}", // id of the input field
|
228
|
+
button : "#{opts[:button]}", // trigger for the calendar (button ID)
|
229
|
+
singleClick : true,
|
230
|
+
showsTime : true
|
231
|
+
});
|
232
|
+
</script></span>
|
233
|
+
EOL
|
234
|
+
end
|
235
|
+
|
236
|
+
# Display an input field to select an id. The user can enter an id or a name in the field and the
|
237
|
+
# node's path is shown next to the input field. If the :class option is specified and the elements
|
238
|
+
# in this class are not too many, a select menu is shown instead (nodes in the menu are found using secure_write scope).
|
239
|
+
# 'Sym' is the field to select the id for (parent_id, ...).
|
240
|
+
def select_id(obj, sym, opt={})
|
241
|
+
unless kpath = opt[:kpath]
|
242
|
+
klass = opt[:class].kind_of?(Class) ? opt[:class] : Node.get_class(opt[:class] || 'Node')
|
243
|
+
kpath = klass.kpath
|
244
|
+
end
|
245
|
+
|
246
|
+
count = secure_write(Node) { Node.count(:all, :conditions => ['kpath LIKE ?', "#{kpath}%"]) }
|
247
|
+
if count < 30
|
248
|
+
sql = "SELECT zip, name FROM nodes WHERE kpath LIKE '#{kpath}%' AND #{secure_write_scope} ORDER BY name ASC"
|
249
|
+
values = Node.connection.select_all(sql, "Node Load").map do |record|
|
250
|
+
[record['name'], record['zip']]
|
251
|
+
end
|
252
|
+
return select(obj, sym, values, { :include_blank => opt[:include_blank] })
|
253
|
+
end
|
254
|
+
|
255
|
+
if obj == 'link'
|
256
|
+
if link = instance_variable_get("@#{obj}")
|
257
|
+
node = link.this
|
258
|
+
current_obj = link.other
|
259
|
+
end
|
260
|
+
else
|
261
|
+
unless id = opt[:id]
|
262
|
+
node = instance_variable_get("@#{obj}")
|
263
|
+
if node
|
264
|
+
id = node.send(sym.to_sym)
|
265
|
+
else
|
266
|
+
id = nil
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
270
|
+
if !id.blank?
|
271
|
+
current_obj = secure!(Node) { Node.find(id) } rescue nil
|
272
|
+
end
|
273
|
+
end
|
274
|
+
|
275
|
+
|
276
|
+
name_ref = unique_id
|
277
|
+
attribute = opt[:show] || 'short_path'
|
278
|
+
if current_obj
|
279
|
+
zip = current_obj[:zip]
|
280
|
+
current = current_obj.send(attribute.to_sym)
|
281
|
+
if current.kind_of?(Array)
|
282
|
+
current = current.join('/ ')
|
283
|
+
end
|
284
|
+
else
|
285
|
+
zip = ''
|
286
|
+
current = ''
|
287
|
+
end
|
288
|
+
input_id = opt[:input_id] ? " id='#{params[:input_id]}'" : ''
|
289
|
+
# we use both 'onChange' and 'onKeyup' for old javascript compatibility
|
290
|
+
update = "new Ajax.Updater('#{name_ref}', '/nodes/#{(node || @node).zip}/attribute?node=' + this.value + '&attr=#{attribute}', {method:'get', asynchronous:true, evalScripts:true});"
|
291
|
+
"<div class='select_id'><input type='text' size='8'#{input_id} name='#{obj}[#{sym}]' value='#{zip}' onChange=\"#{update}\" onKeyup=\"#{update}\"/>"+
|
292
|
+
"<span class='select_id_name' id='#{name_ref}'>#{current}</span></div>"
|
293
|
+
end
|
294
|
+
|
295
|
+
def unique_id
|
296
|
+
@counter ||= 0
|
297
|
+
"#{Time.now.to_i}_#{@counter += 1}"
|
298
|
+
end
|
299
|
+
|
300
|
+
#TODO: test
|
301
|
+
def readers_for(obj=@node)
|
302
|
+
readers = if obj.public?
|
303
|
+
_('img_public')
|
304
|
+
else
|
305
|
+
names = []
|
306
|
+
names |= [truncate(obj.rgroup.name, :length => 7)] if obj.rgroup
|
307
|
+
names |= [truncate(obj.dgroup.name, :length => 7)] if obj.dgroup
|
308
|
+
names << obj.user.initials
|
309
|
+
names.join(', ')
|
310
|
+
end
|
311
|
+
custom = obj.inherit != 1 ? "<span class='custom'>#{_('img_custom_inherit')}</span>" : ''
|
312
|
+
"#{custom} #{readers}"
|
313
|
+
end
|
314
|
+
|
315
|
+
end # FormTags
|
316
|
+
|
317
|
+
module LinkTags
|
318
|
+
include WillPaginate::ViewHelpers
|
319
|
+
|
320
|
+
def protect_against_forgery?
|
321
|
+
false
|
322
|
+
end
|
323
|
+
|
324
|
+
# Add class='on' if the link points to the current page
|
325
|
+
def link_to_with_state(*args)
|
326
|
+
title, url, options = *args
|
327
|
+
options ||= {}
|
328
|
+
if request.path == url
|
329
|
+
options[:class] = 'on'
|
330
|
+
end
|
331
|
+
link_to(title, url, options)
|
332
|
+
end
|
333
|
+
|
334
|
+
#unobtrusive link_to_remote
|
335
|
+
def link_to_remote(name, options = {}, html_options = {})
|
336
|
+
html_options.merge!({:href => url_for(options[:url])}) unless options[:url].blank?
|
337
|
+
super(name, options, html_options)
|
338
|
+
end
|
339
|
+
|
340
|
+
# only display first <a> tag
|
341
|
+
def tag_to_remote(options = {}, html_options = {})
|
342
|
+
url = url_for(options[:url])
|
343
|
+
res = "<a href='#{url}' onclick=\"new Ajax.Request('#{url}', {asynchronous:true, evalScripts:true, method:'#{options[:method] || 'get'}'}); return false;\""
|
344
|
+
html_options.each do |k,v|
|
345
|
+
next unless [:class, :id, :style, :rel, :onclick].include?(k)
|
346
|
+
res << " #{k}='#{v}'"
|
347
|
+
end
|
348
|
+
res << ">"
|
349
|
+
res
|
350
|
+
end
|
351
|
+
|
352
|
+
# Shows 'login' or 'logout' button.
|
353
|
+
def login_link(opts={})
|
354
|
+
if visitor.is_anon?
|
355
|
+
if params[:prefix]
|
356
|
+
link_to _('login'), :overwrite_params => { :prefix => AUTHENTICATED_PREFIX }
|
357
|
+
else
|
358
|
+
"<a href='/login'>#{_('login')}</a>"
|
359
|
+
end
|
360
|
+
else
|
361
|
+
"<a href='/logout'>#{_('logout')}</a>"
|
362
|
+
end
|
363
|
+
end
|
364
|
+
|
365
|
+
# Show visitor name if logged in
|
366
|
+
def visitor_link(opts={})
|
367
|
+
unless visitor.is_anon?
|
368
|
+
link_to( visitor.fullname, user_path(visitor) )
|
369
|
+
else
|
370
|
+
""
|
371
|
+
end
|
372
|
+
end
|
373
|
+
|
374
|
+
# TODO: rename 'admin_links' ?
|
375
|
+
# shows links for site features
|
376
|
+
def show_link(link, opt={})
|
377
|
+
case link
|
378
|
+
when :admin_links
|
379
|
+
[show_link(:home), show_link(:preferences), show_link(:comments), show_link(:users), show_link(:groups), show_link(:relations), show_link(:virtual_classes), show_link(:iformats), show_link(:sites), show_link(:zena_up), show_link(:dev)].reject {|l| l==''}
|
380
|
+
when :home
|
381
|
+
return '' if visitor.is_anon?
|
382
|
+
link_to_with_state(_('my home'), user_path(visitor))
|
383
|
+
when :preferences
|
384
|
+
return '' if visitor.is_anon?
|
385
|
+
link_to_with_state(_('preferences'), preferences_user_path(visitor[:id]))
|
386
|
+
when :comments
|
387
|
+
return '' unless visitor.is_admin?
|
388
|
+
link_to_with_state(_('manage comments'), comments_path)
|
389
|
+
when :users
|
390
|
+
return '' unless visitor.is_admin?
|
391
|
+
link_to_with_state(_('manage users'), users_path)
|
392
|
+
when :groups
|
393
|
+
return '' unless visitor.is_admin?
|
394
|
+
link_to_with_state(_('manage groups'), groups_path)
|
395
|
+
when :relations
|
396
|
+
return '' unless visitor.is_admin?
|
397
|
+
link_to_with_state(_('manage relations'), relations_path)
|
398
|
+
when :virtual_classes
|
399
|
+
return '' unless visitor.is_admin?
|
400
|
+
link_to_with_state(_('manage classes'), virtual_classes_path)
|
401
|
+
when :iformats
|
402
|
+
return '' unless visitor.is_admin?
|
403
|
+
link_to_with_state(_('image formats'), iformats_path)
|
404
|
+
when :sites
|
405
|
+
return '' unless visitor.is_admin?
|
406
|
+
link_to_with_state(_('manage sites'), sites_path)
|
407
|
+
when :zena_up
|
408
|
+
return '' unless ENABLE_ZENA_UP && visitor.is_admin?
|
409
|
+
link_to_with_state(_('update zena'), zena_up_sites_path)
|
410
|
+
when :dev
|
411
|
+
return '' unless visitor.is_admin?
|
412
|
+
if @controller.session[:dev]
|
413
|
+
link_to(_('turn dev off'), swap_dev_user_path(visitor))
|
414
|
+
else
|
415
|
+
link_to(_('turn dev on'), swap_dev_user_path(visitor))
|
416
|
+
end
|
417
|
+
else
|
418
|
+
''
|
419
|
+
end
|
420
|
+
end
|
421
|
+
|
422
|
+
# show language selector
|
423
|
+
def lang_links(opts={})
|
424
|
+
if opts[:wrap]
|
425
|
+
tag_in = "<#{opts[:wrap]}>"
|
426
|
+
tag_out = "</#{opts[:wrap]}>"
|
427
|
+
else
|
428
|
+
tag_in = tag_out = ''
|
429
|
+
end
|
430
|
+
res = []
|
431
|
+
visitor.site.lang_list.each do |l|
|
432
|
+
if l == lang
|
433
|
+
if opts[:wrap]
|
434
|
+
res << "<#{opts[:wrap]} class='on'>#{l}" + tag_out
|
435
|
+
else
|
436
|
+
res << "<em>#{l}</em>"
|
437
|
+
end
|
438
|
+
else
|
439
|
+
if visitor.is_anon? && params[:prefix]
|
440
|
+
res << tag_in + link_to(l, :overwrite_params => {:prefix => l}) + tag_out
|
441
|
+
else
|
442
|
+
res << tag_in + link_to(l, :overwrite_params => {:lang => l}) + tag_out
|
443
|
+
end
|
444
|
+
end
|
445
|
+
end
|
446
|
+
res.join(opts[:join] || '')
|
447
|
+
end
|
448
|
+
|
449
|
+
# show current path with links to ancestors
|
450
|
+
def show_path(opts={})
|
451
|
+
node = opts.delete(:node) || @node
|
452
|
+
tag = opts.delete(:wrap) || 'li'
|
453
|
+
join = opts.delete(:join) || ''
|
454
|
+
if tag != ''
|
455
|
+
open_tag = "<#{tag}>"
|
456
|
+
close_tag = "</#{tag}>"
|
457
|
+
else
|
458
|
+
open_tag = ""
|
459
|
+
close_tag = ""
|
460
|
+
end
|
461
|
+
nav = []
|
462
|
+
node.ancestors.each do |obj|
|
463
|
+
nav << link_to(obj.name, zen_path(obj, opts))
|
464
|
+
end
|
465
|
+
|
466
|
+
nav << "<a href='#{url_for(zen_path(node))}' class='current'>#{node.name}</a>"
|
467
|
+
res = "#{res}#{open_tag}#{nav.join("#{close_tag}#{open_tag}#{join}")}#{close_tag}"
|
468
|
+
end
|
469
|
+
|
470
|
+
end # LinkTags
|
471
|
+
|
472
|
+
module ActionTags
|
473
|
+
|
474
|
+
# Actions that appear on the web page
|
475
|
+
def node_actions(opts={})
|
476
|
+
actions = (opts[:actions] || 'all').to_s
|
477
|
+
actions = 'edit,propose,refuse,publish,drive' if actions == 'all'
|
478
|
+
|
479
|
+
node = opts[:node] || @node
|
480
|
+
return '' if node.new_record?
|
481
|
+
publish_after_save = opts[:publish_after_save]
|
482
|
+
res = actions.split(',').reject do |action|
|
483
|
+
!node.can_apply?(action.to_sym)
|
484
|
+
end.map do |action|
|
485
|
+
node_action_link(action, node, publish_after_save)
|
486
|
+
end.join(" ")
|
487
|
+
|
488
|
+
if res != ""
|
489
|
+
"<span class='actions'>#{res}</span>"
|
490
|
+
else
|
491
|
+
""
|
492
|
+
end
|
493
|
+
end
|
494
|
+
|
495
|
+
# TODO: test
|
496
|
+
def node_action_link(action, node, publish_after_save)
|
497
|
+
case action
|
498
|
+
when 'edit'
|
499
|
+
url = edit_node_version_path(:node_id => node[:zip], :id => 0)
|
500
|
+
"<a href='#{url}#{publish_after_save ? "?pub=#{publish_after_save}" : ''}' target='_blank' title='#{_('btn_title_edit')}' onclick=\"editor=window.open('#{url}#{publish_after_save ? "?pub=#{publish_after_save}" : ''}', \'#{current_site.host}#{node[:zip]}\', 'location=0,width=300,height=400,resizable=1');return false;\">" +
|
501
|
+
_('btn_edit') + "</a>"
|
502
|
+
when 'drive'
|
503
|
+
"<a href='#' title='#{_('btn_title_drive')}' onclick=\"editor=window.open('" +
|
504
|
+
edit_node_url(:id => node[:zip] ) +
|
505
|
+
"', '_blank', 'location=0,width=300,height=400,resizable=1');return false;\">" +
|
506
|
+
_('btn_drive') + "</a>"
|
507
|
+
else
|
508
|
+
link_to( _("btn_#{action}"), {:controller=>'versions', :action => action, :node_id => node[:zip], :id => 0}, :title=>_("btn_title_#{action}"), :method => :put )
|
509
|
+
end
|
510
|
+
end
|
511
|
+
|
512
|
+
# Actions that appear in the drive popup versions list
|
513
|
+
def version_actions(version, opts={})
|
514
|
+
return "" unless version.kind_of?(Version)
|
515
|
+
# 'view' ?
|
516
|
+
actions = (opts[:actions] || 'all').to_s
|
517
|
+
actions = 'destroy_version,remove,redit,unpublish,propose,refuse,publish' if actions == 'all'
|
518
|
+
|
519
|
+
node = version.node
|
520
|
+
|
521
|
+
actions.split(',').reject do |action|
|
522
|
+
action.strip!
|
523
|
+
if action == 'view'
|
524
|
+
!node.can_apply?('publish', version)
|
525
|
+
else
|
526
|
+
!node.can_apply?(action.to_sym, version)
|
527
|
+
end
|
528
|
+
end.map do |action|
|
529
|
+
version_action_link(action, version)
|
530
|
+
end.join(' ')
|
531
|
+
end
|
532
|
+
|
533
|
+
# TODO: test
|
534
|
+
def version_action_link(action,version)
|
535
|
+
if action == 'view'
|
536
|
+
# FIXME
|
537
|
+
link_to_function(_('btn_view'), "opener.Zena.version_preview('/nodes/#{version.node.zip}/versions/#{version.number}');")
|
538
|
+
else
|
539
|
+
if action == 'destroy_version'
|
540
|
+
action = 'destroy'
|
541
|
+
method = :delete
|
542
|
+
else
|
543
|
+
method = :put
|
544
|
+
end
|
545
|
+
link_to_remote( _("btn_#{action}"), :url=>{:controller=>'versions', :action => action, :node_id => version.node[:zip], :id => version.number, :drive=>true}, :title=>_("btn_title_#{action}"), :method => method ) + "\n"
|
546
|
+
end
|
547
|
+
end
|
548
|
+
|
549
|
+
|
550
|
+
# TODO: test
|
551
|
+
def discussion_actions(discussion, opt={})
|
552
|
+
opt = {:action=>:all}.merge(opt)
|
553
|
+
return '' unless @node.can_drive?
|
554
|
+
if opt[:action] == :view
|
555
|
+
link_to_function(_('btn_view'), "opener.Zena.discussion_show(#{discussion[:id]}); return false;")
|
556
|
+
elsif opt[:action] == :all
|
557
|
+
if discussion.open?
|
558
|
+
link_to_remote( _("img_open"), :url=>{:controller=>'discussions', :action => 'close' , :id => discussion[:id]}, :title=>_("btn_title_close_discussion")) + "\n"
|
559
|
+
else
|
560
|
+
link_to_remote( _("img_closed"), :url=>{:controller=>'discussions', :action => 'open', :id => discussion[:id]}, :title=>_("btn_title_open_discussion")) + "\n"
|
561
|
+
end +
|
562
|
+
if discussion.can_destroy?
|
563
|
+
link_to_remote( _("btn_remove"), :url=>{:controller=>'discussions', :action => 'remove', :id => discussion[:id]}, :title=>_("btn_title_destroy_discussion")) + "\n"
|
564
|
+
else
|
565
|
+
''
|
566
|
+
end
|
567
|
+
end
|
568
|
+
end
|
569
|
+
end # ActionTags
|
570
|
+
|
571
|
+
module ViewMethods
|
572
|
+
include ImageTags
|
573
|
+
include FormTags
|
574
|
+
include LinkTags
|
575
|
+
include ActionTags
|
576
|
+
|
577
|
+
# Display flash[:notice] or flash[:error] if any. <%= flash <i>[:notice, :error, :both]</i> %>"
|
578
|
+
def flash_messages(opts={})
|
579
|
+
type = opts[:show] || 'both'
|
580
|
+
"<div id='messages'>" +
|
581
|
+
if (type == 'notice' || type == 'both') && flash[:notice]
|
582
|
+
"<div id='notice' class='flash' onclick='new Effect.Fade(\"notice\")'>#{flash[:notice]}</div>"
|
583
|
+
else
|
584
|
+
''
|
585
|
+
end +
|
586
|
+
if (type == 'error' || type == 'both') && flash[:error ]
|
587
|
+
"<div id='error' class='flash' onclick='new Effect.Fade(\"error\")'>#{flash[:error]}</div>"
|
588
|
+
else
|
589
|
+
''
|
590
|
+
end +
|
591
|
+
"</div>"
|
592
|
+
end
|
593
|
+
|
594
|
+
# TODO: test
|
595
|
+
def search_box(opts={})
|
596
|
+
render_to_string(:partial=>'search/form', :locals => {:ajax => opts[:ajax], :type => opts[:type]})
|
597
|
+
end
|
598
|
+
|
599
|
+
|
600
|
+
end # ViewMethods
|
601
|
+
end # HtmlTags
|
602
|
+
end # Use
|
603
|
+
end # Zena
|