├── public ├── favicon.ico ├── css │ └── base │ │ ├── ui.all.css │ │ ├── ui.base.css │ │ └── images │ │ ├── ui-icons_222222_256x240.png │ │ ├── ui-icons_2e83ff_256x240.png │ │ ├── ui-icons_454545_256x240.png │ │ ├── ui-icons_888888_256x240.png │ │ ├── ui-icons_cd0a0a_256x240.png │ │ ├── ui-bg_flat_0_aaaaaa_40x100.png │ │ ├── ui-bg_flat_75_ffffff_40x100.png │ │ ├── ui-bg_glass_55_fbf9ee_1x400.png │ │ ├── ui-bg_glass_65_ffffff_1x400.png │ │ ├── ui-bg_glass_75_dadada_1x400.png │ │ ├── ui-bg_glass_75_e6e6e6_1x400.png │ │ ├── ui-bg_glass_95_fef1ec_1x400.png │ │ └── ui-bg_highlight-soft_75_cccccc_1x100.png ├── img │ ├── bg.jpg │ ├── bg2.jpg │ ├── igo.png │ ├── n1.png │ ├── n2.png │ ├── n3.png │ ├── n4.png │ ├── n5.png │ ├── n6.png │ ├── yn1.png │ ├── yn2.png │ ├── yv1.png │ ├── yv2.png │ ├── Thumbs.db │ ├── excel.png │ ├── female.gif │ ├── index.ico │ ├── logo.jpg │ ├── logo.png │ ├── logo1.jpg │ ├── male.gif │ ├── moder.gif │ ├── moder1.gif │ ├── paket.jpg │ ├── soul.png │ ├── soup.gif │ ├── suser.png │ ├── friends.png │ ├── logotip.png │ ├── smaster.png │ ├── spartner.png │ ├── ��� ���.psd │ └── btnbar_edit.png ├── table │ ├── hsp.gif │ ├── sb.gif │ ├── sbl.gif │ ├── sbr.gif │ ├── sl.gif │ ├── sr.gif │ ├── st.gif │ ├── stl.gif │ ├── str.gif │ └── Thumbs.db ├── images │ ├── rails.png │ ├── calendar.gif │ ├── no_image.jpg │ ├── shadow.png │ ├── admin │ │ ├── ui-icons.png │ │ └── fancybox │ │ │ ├── blank.gif │ │ │ ├── fancy_close.png │ │ │ ├── fancy_loading.png │ │ │ ├── fancy_nav_left.png │ │ │ ├── fancy_nav_right.png │ │ │ ├── fancy_shadow_e.png │ │ │ ├── fancy_shadow_n.png │ │ │ ├── fancy_shadow_ne.png │ │ │ ├── fancy_shadow_nw.png │ │ │ ├── fancy_shadow_s.png │ │ │ ├── fancy_shadow_se.png │ │ │ ├── fancy_shadow_sw.png │ │ │ ├── fancy_shadow_w.png │ │ │ ├── fancy_title_left.png │ │ │ ├── fancy_title_main.png │ │ │ ├── fancy_title_over.png │ │ │ └── fancy_title_right.png │ └── calendar_date_select │ │ └── calendar.gif ├── javascripts │ ├── events-index.js │ ├── calendar_date_select │ │ ├── locale │ │ │ ├── fi.js │ │ │ ├── ru.js │ │ │ ├── da.js │ │ │ ├── es.js │ │ │ ├── it.js │ │ │ ├── pt.js │ │ │ ├── de.js │ │ │ ├── nl.js │ │ │ ├── fr.js │ │ │ ├── pl.js │ │ │ ├── sl.js │ │ │ └── ar.js │ │ ├── format_euro_24hr.js │ │ ├── format_euro_24hr_ymd.js │ │ └── format_italian.js │ ├── application.js │ ├── users-edit_profile.js │ ├── apply-select-chain.js │ ├── register.js │ ├── events-search.js │ ├── admin │ │ └── application.js │ └── ui │ │ └── i18n │ │ ├── ui.datepicker-zh-TW.js │ │ ├── ui.datepicker-zh-CN.js │ │ ├── ui.datepicker-ja.js │ │ ├── ui.datepicker-he.js │ │ ├── ui.datepicker-sr.js │ │ ├── ui.datepicker-sr-SR.js │ │ ├── ui.datepicker-hr.js │ │ ├── ui.datepicker-ko.js │ │ ├── ui.datepicker-tr.js │ │ ├── ui.datepicker-ca.js │ │ ├── ui.datepicker-sq.js │ │ ├── ui.datepicker-de.js │ │ ├── ui.datepicker-id.js │ │ ├── ui.datepicker-eo.js │ │ ├── ui.datepicker-ms.js │ │ ├── ui.datepicker-cs.js │ │ ├── ui.datepicker-fa.js │ │ ├── ui.datepicker-sk.js │ │ ├── ui.datepicker-ru.js │ │ ├── ui.datepicker-th.js │ │ ├── ui.datepicker-pl.js │ │ ├── ui.datepicker-it.js │ │ ├── ui.datepicker-nl.js │ │ ├── ui.datepicker-es.js │ │ ├── ui.datepicker-da.js │ │ ├── ui.datepicker-fr.js │ │ ├── ui.datepicker-hy.js │ │ ├── ui.datepicker-lv.js │ │ ├── ui.datepicker-sv.js │ │ ├── ui.datepicker-el.js │ │ ├── ui.datepicker-no.js │ │ ├── ui.datepicker-lt.js │ │ ├── ui.datepicker-hu.js │ │ ├── ui.datepicker-pt-BR.js │ │ ├── ui.datepicker-ro.js │ │ ├── ui.datepicker-sl.js │ │ ├── ui.datepicker-bg.js │ │ └── ui.datepicker-fi.js ├── temp │ └── anime_animaziya.gif ├── blank_iframe.html ├── robots.txt ├── stylesheets │ └── jquery.tooltip.css └── 422.html ├── log └── .gitignore ├── db ├── .gitignore ├── migrate │ ├── 022_add_url_to_book.rb │ ├── 021_add_info_to_material.rb │ ├── 019_create_books.rb │ ├── 007_add_place_id_to_events.rb │ ├── 013_add_owner_id_to_events.rb │ ├── 023_add_cost_type_to_events.rb │ ├── 009_add_subject_id_to_events.rb │ ├── 011_add_event_type_to_events.rb │ ├── 018_create_videos.rb │ ├── 014_add_recovery_hash_to_typus_users.rb │ ├── 025_add_activation_code_to_users.rb │ ├── 006_create_places.rb │ ├── 002_create_posts.rb │ ├── 008_create_subjects.rb │ ├── 010_create_event_types.rb │ ├── 017_create_materials.rb │ ├── 004_create_events.rb │ ├── 024_create_simple_captcha_data.rb │ ├── 020_add_attachments_file_to_book.rb │ ├── 003_add_attachments_image_to_post.rb │ ├── 005_add_attachments_image_to_event.rb │ ├── 012_add_patronymic_and_birth_date_to_typus_users.rb │ ├── 016_add_attachments_avatar_to_typus_user.rb │ ├── 001_create_typus_users.rb │ └── 015_add_additional_columns_to_typus_users.rb └── seeds.rb ├── vendor └── plugins │ ├── acts_as_tree │ ├── test │ │ ├── schema.rb │ │ ├── database.yml │ │ ├── abstract_unit.rb │ │ └── fixtures │ │ │ ├── mixin.rb │ │ │ └── mixins.yml │ ├── init.rb │ ├── Rakefile │ └── README │ ├── simple_captcha │ ├── install.rb │ ├── test │ │ └── simple_captcha_test.rb │ ├── init.rb │ ├── assets │ │ └── migrate │ │ │ ├── create_simple_captcha_data.rb │ │ │ └── create_simple_captcha_data_less_than_2.0.rb │ ├── tasks │ │ └── simple_captcha_tasks.rake │ ├── lib │ │ ├── simple_captcha_controller.rb │ │ ├── simple_captcha_data.rb │ │ └── simple_captcha_config.rb │ └── Rakefile │ ├── typus │ ├── test │ │ ├── config │ │ │ ├── broken │ │ │ │ ├── empty.yml │ │ │ │ ├── empty_roles.yml │ │ │ │ ├── undefined.yml │ │ │ │ ├── undefined_roles.yml │ │ │ │ └── application_roles.yml │ │ │ ├── empty │ │ │ │ ├── empty_01.yml │ │ │ │ ├── empty_02.yml │ │ │ │ ├── empty_01_roles.yml │ │ │ │ └── empty_02_roles.yml │ │ │ ├── ordered │ │ │ │ ├── 002_roles.yml │ │ │ │ └── 001_roles.yml │ │ │ ├── unordered │ │ │ │ ├── app_one_roles.yml │ │ │ │ └── app_two_roles.yml │ │ │ ├── default │ │ │ │ ├── typus_roles.yml │ │ │ │ └── typus.yml │ │ │ ├── working │ │ │ │ ├── typus_roles.yml │ │ │ │ ├── typus.yml │ │ │ │ └── application_roles.yml │ │ │ └── locales │ │ │ │ └── es.yml │ │ ├── fixtures │ │ │ ├── rails_app │ │ │ │ └── db │ │ │ │ │ └── test.sqlite3 │ │ │ ├── app │ │ │ │ ├── views │ │ │ │ │ └── admin │ │ │ │ │ │ ├── posts │ │ │ │ │ │ ├── _new.html.erb │ │ │ │ │ │ ├── _edit.html.erb │ │ │ │ │ │ ├── _index.html.erb │ │ │ │ │ │ ├── _show.html.erb │ │ │ │ │ │ └── _sidebar.html.erb │ │ │ │ │ │ ├── pictures │ │ │ │ │ │ ├── _edit.html.erb │ │ │ │ │ │ ├── _new.html.erb │ │ │ │ │ │ ├── _show.html.erb │ │ │ │ │ │ ├── _index.html.erb │ │ │ │ │ │ └── _sidebar.html.erb │ │ │ │ │ │ ├── status │ │ │ │ │ │ └── index.html.erb │ │ │ │ │ │ ├── categories │ │ │ │ │ │ └── _form.html.erb │ │ │ │ │ │ ├── shared │ │ │ │ │ │ └── _footer.html.erb │ │ │ │ │ │ ├── dashboard │ │ │ │ │ │ ├── _content.html.erb │ │ │ │ │ │ └── _sidebar.html.erb │ │ │ │ │ │ ├── resources │ │ │ │ │ │ └── _sidebar.html.erb │ │ │ │ │ │ └── templates │ │ │ │ │ │ └── _datepicker.html.erb │ │ │ │ ├── models │ │ │ │ │ ├── picture.rb │ │ │ │ │ ├── custom_user.rb │ │ │ │ │ ├── view.rb │ │ │ │ │ ├── asset.rb │ │ │ │ │ ├── delayed │ │ │ │ │ │ └── task.rb │ │ │ │ │ ├── page.rb │ │ │ │ │ ├── comment.rb │ │ │ │ │ ├── category.rb │ │ │ │ │ └── post.rb │ │ │ │ └── controllers │ │ │ │ │ └── admin │ │ │ │ │ ├── pages_controller.rb │ │ │ │ │ ├── posts_controller.rb │ │ │ │ │ ├── assets_controller.rb │ │ │ │ │ ├── categories_controller.rb │ │ │ │ │ ├── comments_controller.rb │ │ │ │ │ ├── pictures_controller.rb │ │ │ │ │ ├── typus_users_controller.rb │ │ │ │ │ ├── status_controller.rb │ │ │ │ │ └── watch_dog_controller.rb │ │ │ ├── assets.yml │ │ │ ├── categories.yml │ │ │ ├── pictures.yml │ │ │ ├── comments.yml │ │ │ ├── pages.yml │ │ │ └── posts.yml │ │ ├── functional │ │ │ └── admin │ │ │ │ ├── master_controller_posts_before_test.rb │ │ │ │ ├── master_controller_posts_toggle_test.rb │ │ │ │ └── master_controller_posts_forms_test.rb │ │ ├── extensions │ │ │ └── hash_test.rb │ │ ├── unit │ │ │ ├── typus_test.rb │ │ │ └── typus_mailer_test.rb │ │ └── helpers │ │ │ └── admin │ │ │ └── public_helper_test.rb │ ├── init.rb │ ├── lib │ │ ├── typus │ │ │ ├── version.rb │ │ │ ├── preferences.rb │ │ │ └── reloader.rb │ │ ├── extensions │ │ │ ├── hash.rb │ │ │ ├── array.rb │ │ │ ├── object.rb │ │ │ └── string.rb │ │ └── tasks │ │ │ └── defaults.rake │ ├── .gitignore │ ├── generators │ │ ├── typus │ │ │ ├── lib │ │ │ │ └── string.rb │ │ │ ├── templates │ │ │ │ ├── public │ │ │ │ │ ├── javascripts │ │ │ │ │ │ └── admin │ │ │ │ │ │ │ └── application.js │ │ │ │ │ └── images │ │ │ │ │ │ └── admin │ │ │ │ │ │ ├── ui-icons.png │ │ │ │ │ │ └── fancybox │ │ │ │ │ │ ├── blank.gif │ │ │ │ │ │ ├── fancy_close.png │ │ │ │ │ │ ├── fancy_loading.png │ │ │ │ │ │ ├── fancy_nav_left.png │ │ │ │ │ │ ├── fancy_nav_right.png │ │ │ │ │ │ ├── fancy_shadow_e.png │ │ │ │ │ │ ├── fancy_shadow_n.png │ │ │ │ │ │ ├── fancy_shadow_ne.png │ │ │ │ │ │ ├── fancy_shadow_nw.png │ │ │ │ │ │ ├── fancy_shadow_s.png │ │ │ │ │ │ ├── fancy_shadow_se.png │ │ │ │ │ │ ├── fancy_shadow_sw.png │ │ │ │ │ │ ├── fancy_shadow_w.png │ │ │ │ │ │ ├── fancy_title_left.png │ │ │ │ │ │ ├── fancy_title_main.png │ │ │ │ │ │ ├── fancy_title_over.png │ │ │ │ │ │ └── fancy_title_right.png │ │ │ │ ├── config │ │ │ │ │ └── typus │ │ │ │ │ │ ├── application.yml │ │ │ │ │ │ ├── application_roles.yml │ │ │ │ │ │ ├── typus_roles.yml │ │ │ │ │ │ └── typus.yml │ │ │ │ ├── controller.rb │ │ │ │ ├── model.rb │ │ │ │ ├── functional_test.rb │ │ │ │ ├── view.html.erb │ │ │ │ └── migration.rb │ │ │ └── USAGE │ │ ├── typus_update_schema_to_01 │ │ │ ├── templates │ │ │ │ ├── migration.rb │ │ │ │ └── config │ │ │ │ │ └── typus.yml │ │ │ └── typus_update_schema_to_01_generator.rb │ │ └── typus_update_schema_to_02 │ │ │ ├── templates │ │ │ └── migration.rb │ │ │ └── typus_update_schema_to_02_generator.rb │ ├── app │ │ ├── views │ │ │ ├── admin │ │ │ │ ├── helpers │ │ │ │ │ ├── _remove_filter_link.html.erb │ │ │ │ │ ├── _flash_message.html.erb │ │ │ │ │ ├── _table_header.html.erb │ │ │ │ │ ├── _display_link_to_previous.html.erb │ │ │ │ │ ├── _login_info.html.erb │ │ │ │ │ ├── _quick_edit.html.erb │ │ │ │ │ ├── _list.html.erb │ │ │ │ │ ├── _search.html.erb │ │ │ │ │ ├── _preview.html.erb │ │ │ │ │ ├── _header.html.erb │ │ │ │ │ ├── _resources.html.erb │ │ │ │ │ ├── _pagination.html.erb │ │ │ │ │ └── _date.html.erb │ │ │ │ ├── templates │ │ │ │ │ ├── _password.html.erb │ │ │ │ │ ├── _boolean.html.erb │ │ │ │ │ ├── _date.html.erb │ │ │ │ │ ├── _time.html.erb │ │ │ │ │ ├── _datetime.html.erb │ │ │ │ │ ├── _text.html.erb │ │ │ │ │ ├── _selector.html.erb │ │ │ │ │ ├── _file.html.erb │ │ │ │ │ └── _string.html.erb │ │ │ │ ├── shared │ │ │ │ │ └── _footer.html.erb │ │ │ │ ├── dashboard │ │ │ │ │ └── _sidebar.html.erb │ │ │ │ └── resources │ │ │ │ │ ├── _form.html.erb │ │ │ │ │ ├── index.html.erb │ │ │ │ │ ├── new.html.erb │ │ │ │ │ └── edit.html.erb │ │ │ ├── typus_mailer │ │ │ │ └── reset_password_link.erb │ │ │ ├── typus │ │ │ │ ├── dashboard.html.erb │ │ │ │ ├── sign_up.html.erb │ │ │ │ ├── recover_password.html.erb │ │ │ │ ├── sign_in.html.erb │ │ │ │ └── reset_password.html.erb │ │ │ └── layouts │ │ │ │ └── typus.html.erb │ │ ├── models │ │ │ ├── typus_user.rb │ │ │ └── typus_mailer.rb │ │ └── helpers │ │ │ └── admin │ │ │ └── public_helper.rb │ ├── config │ │ └── locales │ │ │ └── models │ │ │ ├── README.md │ │ │ ├── de_models.yml │ │ │ ├── pt-BR_models.yml │ │ │ ├── es_models.yml │ │ │ ├── fr_models.yml │ │ │ ├── hu_models.yml │ │ │ ├── ca_models.yml │ │ │ └── ru_models.yml │ └── typus.gemspec │ ├── partial_renderer │ ├── install.rb │ ├── uninstall.rb │ ├── lib │ │ └── partial_renderer.rb │ ├── init.rb │ ├── test │ │ ├── test_helper.rb │ │ └── partial_renderer_test.rb │ ├── tasks │ │ └── partial_renderer_tasks.rake │ ├── generators │ │ └── partial_renderer │ │ │ ├── templates │ │ │ ├── pagination.haml │ │ │ └── pagination.erb │ │ │ ├── USAGE │ │ │ └── partial_renderer_generator.rb │ ├── Rakefile │ └── README │ └── acts_as_list │ ├── init.rb │ └── README ├── app ├── helpers │ ├── news_helper.rb │ ├── users_helper.rb │ └── common_helper.rb ├── views │ ├── common │ │ ├── faq.erb │ │ ├── _video.haml │ │ ├── show_material.haml │ │ ├── _book.haml │ │ └── _materials_menu.haml │ ├── notifier │ │ ├── register_notification.haml │ │ └── activation_notification.haml │ ├── users │ │ ├── forgot_password.haml │ │ ├── activate.haml │ │ └── change_password.haml │ ├── require_login.haml │ ├── forgot_password │ │ └── index.haml │ ├── _tooltips.haml │ ├── _border.haml │ ├── require_activation.haml │ ├── _pagination.haml │ ├── events │ │ └── show.haml │ └── news │ │ └── show.haml ├── models │ ├── event_type.rb │ ├── subject.rb │ ├── video.rb │ ├── material.rb │ ├── place.rb │ ├── book.rb │ ├── forgot_password.rb │ ├── post.rb │ └── notifier.rb └── controllers │ ├── admin │ ├── books_controller.rb │ ├── posts_controller.rb │ ├── events_controller.rb │ ├── places_controller.rb │ ├── videos_controller.rb │ ├── materials_controller.rb │ ├── subjects_controller.rb │ ├── event_types_controller.rb │ └── typus_users_controller.rb │ ├── news_controller.rb │ └── common_controller.rb ├── script ├── plugin ├── runner ├── server ├── console ├── destroy ├── generate ├── dbconsole ├── performance │ ├── profiler │ └── benchmarker └── about ├── test ├── unit │ ├── helpers │ │ ├── common_helper_test.rb │ │ ├── events_helper_test.rb │ │ ├── news_helper_test.rb │ │ └── users_helper_test.rb │ ├── book_test.rb │ ├── place_test.rb │ ├── video_test.rb │ ├── material_test.rb │ ├── notifier_test.rb │ ├── subject_test.rb │ ├── event_type_test.rb │ ├── forgot_password_test.rb │ └── post_test.rb ├── performance │ └── browsing_test.rb └── functional │ ├── admin │ ├── books_controller_test.rb │ ├── events_controller_test.rb │ ├── places_controller_test.rb │ ├── posts_controller_test.rb │ ├── videos_controller_test.rb │ ├── subjects_controller_test.rb │ ├── event_types_controller_test.rb │ ├── materials_controller_test.rb │ └── typus_users_controller_test.rb │ └── news_controller_test.rb ├── lib └── I18n.rb ├── install.sh ├── config ├── typus │ ├── typus_roles.yml │ ├── application_roles.yml │ ├── 20100918104646_application_roles.yml │ ├── 20100918084548_application_roles.yml │ ├── 20100918090121_application_roles.yml │ ├── 20100428093006_application_roles.yml │ ├── 20100428133850_application_roles.yml │ ├── 20100918090121_application.yml │ ├── 20100918084548_application.yml │ ├── 20100918104646_application.yml │ ├── application.yml │ ├── typus.yml │ ├── 20100428133850_application.yml │ └── 20100428093006_application.yml ├── initializers │ ├── mime_types.rb │ ├── inflections.rb │ ├── backtrace_silencers.rb │ ├── session_store.rb │ └── new_rails_defaults.rb ├── locales │ ├── en.yml │ └── ru.yml ├── database.yml └── environments │ └── development.rb ├── doc └── README_FOR_APP ├── Rakefile └── .gitmodules /public/favicon.ico: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /log/.gitignore: -------------------------------------------------------------------------------- 1 | *.log 2 | -------------------------------------------------------------------------------- /db/.gitignore: -------------------------------------------------------------------------------- 1 | schema.rb 2 | *.sqlite3 3 | -------------------------------------------------------------------------------- /vendor/plugins/acts_as_tree/test/schema.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/acts_as_tree/test/database.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/simple_captcha/install.rb: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /vendor/plugins/acts_as_tree/test/abstract_unit.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/acts_as_tree/test/fixtures/mixin.rb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/acts_as_tree/test/fixtures/mixins.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/broken/empty.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/empty/empty_01.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/empty/empty_02.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/helpers/news_helper.rb: -------------------------------------------------------------------------------- 1 | module NewsHelper 2 | end 3 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/broken/empty_roles.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/empty/empty_01_roles.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/empty/empty_02_roles.yml: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/rails_app/db/test.sqlite3: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/typus/init.rb: -------------------------------------------------------------------------------- 1 | require 'typus' 2 | 3 | Typus.boot! -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/install.rb: -------------------------------------------------------------------------------- 1 | # Install hook code here 2 | -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/uninstall.rb: -------------------------------------------------------------------------------- 1 | # Uninstall hook code here 2 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/broken/undefined.yml: -------------------------------------------------------------------------------- 1 | Page: 2 | 3 | User: 4 | -------------------------------------------------------------------------------- /app/views/common/faq.erb: -------------------------------------------------------------------------------- 1 | Edit me !!! I'm located at app/views/common/faq.erb 2 | -------------------------------------------------------------------------------- /public/css/base/ui.all.css: -------------------------------------------------------------------------------- 1 | @import "ui.base.css"; 2 | @import "ui.theme.css"; 3 | -------------------------------------------------------------------------------- /public/img/bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/bg.jpg -------------------------------------------------------------------------------- /public/img/bg2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/bg2.jpg -------------------------------------------------------------------------------- /public/img/igo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/igo.png -------------------------------------------------------------------------------- /public/img/n1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/n1.png -------------------------------------------------------------------------------- /public/img/n2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/n2.png -------------------------------------------------------------------------------- /public/img/n3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/n3.png -------------------------------------------------------------------------------- /public/img/n4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/n4.png -------------------------------------------------------------------------------- /public/img/n5.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/n5.png -------------------------------------------------------------------------------- /public/img/n6.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/n6.png -------------------------------------------------------------------------------- /public/img/yn1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/yn1.png -------------------------------------------------------------------------------- /public/img/yn2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/yn2.png -------------------------------------------------------------------------------- /public/img/yv1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/yv1.png -------------------------------------------------------------------------------- /public/img/yv2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/yv2.png -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/ordered/002_roles.yml: -------------------------------------------------------------------------------- 1 | admin: 2 | categories: read -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/posts/_new.html.erb: -------------------------------------------------------------------------------- 1 | _new.html.erb -------------------------------------------------------------------------------- /public/img/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/Thumbs.db -------------------------------------------------------------------------------- /public/img/excel.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/excel.png -------------------------------------------------------------------------------- /public/img/female.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/female.gif -------------------------------------------------------------------------------- /public/img/index.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/index.ico -------------------------------------------------------------------------------- /public/img/logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/logo.jpg -------------------------------------------------------------------------------- /public/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/logo.png -------------------------------------------------------------------------------- /public/img/logo1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/logo1.jpg -------------------------------------------------------------------------------- /public/img/male.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/male.gif -------------------------------------------------------------------------------- /public/img/moder.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/moder.gif -------------------------------------------------------------------------------- /public/img/moder1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/moder1.gif -------------------------------------------------------------------------------- /public/img/paket.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/paket.jpg -------------------------------------------------------------------------------- /public/img/soul.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/soul.png -------------------------------------------------------------------------------- /public/img/soup.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/soup.gif -------------------------------------------------------------------------------- /public/img/suser.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/suser.png -------------------------------------------------------------------------------- /public/table/hsp.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/table/hsp.gif -------------------------------------------------------------------------------- /public/table/sb.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/table/sb.gif -------------------------------------------------------------------------------- /public/table/sbl.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/table/sbl.gif -------------------------------------------------------------------------------- /public/table/sbr.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/table/sbr.gif -------------------------------------------------------------------------------- /public/table/sl.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/table/sl.gif -------------------------------------------------------------------------------- /public/table/sr.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/table/sr.gif -------------------------------------------------------------------------------- /public/table/st.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/table/st.gif -------------------------------------------------------------------------------- /public/table/stl.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/table/stl.gif -------------------------------------------------------------------------------- /public/table/str.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/table/str.gif -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/pictures/_edit.html.erb: -------------------------------------------------------------------------------- 1 | _edit.html.erb -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/pictures/_new.html.erb: -------------------------------------------------------------------------------- 1 | _new.html.erb -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/pictures/_show.html.erb: -------------------------------------------------------------------------------- 1 | _show.html.erb -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/posts/_edit.html.erb: -------------------------------------------------------------------------------- 1 | _edit.html.erb -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/posts/_index.html.erb: -------------------------------------------------------------------------------- 1 | _index.html.erb -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/posts/_show.html.erb: -------------------------------------------------------------------------------- 1 | _show.html.erb -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/status/index.html.erb: -------------------------------------------------------------------------------- 1 | index.html.erb -------------------------------------------------------------------------------- /app/models/event_type.rb: -------------------------------------------------------------------------------- 1 | class EventType < ActiveRecord::Base 2 | acts_as_list 3 | end 4 | -------------------------------------------------------------------------------- /app/views/common/_video.haml: -------------------------------------------------------------------------------- 1 | = item.code 2 | %br 3 | %br 4 | = material_info @material 5 | -------------------------------------------------------------------------------- /public/css/base/ui.base.css: -------------------------------------------------------------------------------- 1 | @import url("ui.core.css"); 2 | @import url("ui.datepicker.css"); -------------------------------------------------------------------------------- /public/images/rails.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/rails.png -------------------------------------------------------------------------------- /public/img/friends.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/friends.png -------------------------------------------------------------------------------- /public/img/logotip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/logotip.png -------------------------------------------------------------------------------- /public/img/smaster.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/smaster.png -------------------------------------------------------------------------------- /public/img/spartner.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/spartner.png -------------------------------------------------------------------------------- /public/img/��� ���.psd: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/��� ���.psd -------------------------------------------------------------------------------- /public/table/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/table/Thumbs.db -------------------------------------------------------------------------------- /vendor/plugins/typus/lib/typus/version.rb: -------------------------------------------------------------------------------- 1 | module Typus 2 | VERSION = "0.9.40" 3 | end 4 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/ordered/001_roles.yml: -------------------------------------------------------------------------------- 1 | admin: 2 | categories: read, update -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/unordered/app_one_roles.yml: -------------------------------------------------------------------------------- 1 | admin: 2 | categories: read -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/categories/_form.html.erb: -------------------------------------------------------------------------------- 1 | _form.html.erb -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/pictures/_index.html.erb: -------------------------------------------------------------------------------- 1 | _index.html.erb -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/posts/_sidebar.html.erb: -------------------------------------------------------------------------------- 1 | _sidebar.html.erb -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/shared/_footer.html.erb: -------------------------------------------------------------------------------- 1 | _footer.html.erb -------------------------------------------------------------------------------- /public/images/calendar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/calendar.gif -------------------------------------------------------------------------------- /public/images/no_image.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/no_image.jpg -------------------------------------------------------------------------------- /public/images/shadow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/shadow.png -------------------------------------------------------------------------------- /public/img/btnbar_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/img/btnbar_edit.png -------------------------------------------------------------------------------- /public/javascripts/events-index.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | $('#from,#to').datepicker(); 3 | }); 4 | -------------------------------------------------------------------------------- /vendor/plugins/acts_as_tree/init.rb: -------------------------------------------------------------------------------- 1 | ActiveRecord::Base.send :include, ActiveRecord::Acts::Tree 2 | -------------------------------------------------------------------------------- /vendor/plugins/typus/.gitignore: -------------------------------------------------------------------------------- 1 | # Ignore generated files ... 2 | *.gem 3 | *.log 4 | *.csv 5 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/unordered/app_two_roles.yml: -------------------------------------------------------------------------------- 1 | admin: 2 | categories: read, update -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/dashboard/_content.html.erb: -------------------------------------------------------------------------------- 1 | _content.html.erb -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/dashboard/_sidebar.html.erb: -------------------------------------------------------------------------------- 1 | _sidebar.html.erb -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/pictures/_sidebar.html.erb: -------------------------------------------------------------------------------- 1 | _sidebar.html.erb -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/resources/_sidebar.html.erb: -------------------------------------------------------------------------------- 1 | _sidebar.html.erb -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/lib/partial_renderer.rb: -------------------------------------------------------------------------------- 1 | require 'will_paginate/partial_renderer' 2 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/models/picture.rb: -------------------------------------------------------------------------------- 1 | class Picture < ActiveRecord::Base 2 | end 3 | -------------------------------------------------------------------------------- /public/temp/anime_animaziya.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/temp/anime_animaziya.gif -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/default/typus_roles.yml: -------------------------------------------------------------------------------- 1 | admin: 2 | TypusUser: create, read, update, delete -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/working/typus_roles.yml: -------------------------------------------------------------------------------- 1 | admin: 2 | TypusUser: create, read, update, delete -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/models/custom_user.rb: -------------------------------------------------------------------------------- 1 | class CustomUser < ActiveRecord::Base 2 | end -------------------------------------------------------------------------------- /public/images/admin/ui-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/ui-icons.png -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/init.rb: -------------------------------------------------------------------------------- 1 | require File.join(File.dirname(__FILE__), "lib", "partial_renderer") 2 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/lib/string.rb: -------------------------------------------------------------------------------- 1 | class String 2 | 3 | def name; self; end 4 | 5 | end 6 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/views/admin/templates/_datepicker.html.erb: -------------------------------------------------------------------------------- 1 | datepicker_template_<%= attribute %> -------------------------------------------------------------------------------- /public/images/admin/fancybox/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/blank.gif -------------------------------------------------------------------------------- /script/plugin: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../config/boot', __FILE__) 3 | require 'commands/plugin' 4 | -------------------------------------------------------------------------------- /script/runner: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../config/boot', __FILE__) 3 | require 'commands/runner' 4 | -------------------------------------------------------------------------------- /script/server: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../config/boot', __FILE__) 3 | require 'commands/server' 4 | -------------------------------------------------------------------------------- /test/unit/helpers/common_helper_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class CommonHelperTest < ActionView::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /test/unit/helpers/events_helper_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class EventsHelperTest < ActionView::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /test/unit/helpers/news_helper_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class NewsHelperTest < ActionView::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /test/unit/helpers/users_helper_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class UsersHelperTest < ActionView::TestCase 4 | end 5 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/helpers/_remove_filter_link.html.erb: -------------------------------------------------------------------------------- 1 | <%= link_to _("Remove filter") %> 2 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/models/view.rb: -------------------------------------------------------------------------------- 1 | class View < ActiveRecord::Base 2 | 3 | belongs_to :post 4 | 5 | end -------------------------------------------------------------------------------- /script/console: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../config/boot', __FILE__) 3 | require 'commands/console' 4 | -------------------------------------------------------------------------------- /script/destroy: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../config/boot', __FILE__) 3 | require 'commands/destroy' 4 | -------------------------------------------------------------------------------- /script/generate: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../config/boot', __FILE__) 3 | require 'commands/generate' 4 | -------------------------------------------------------------------------------- /app/models/subject.rb: -------------------------------------------------------------------------------- 1 | class Subject < ActiveRecord::Base 2 | acts_as_tree 3 | 4 | def typus_name 5 | title 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /app/views/notifier/register_notification.haml: -------------------------------------------------------------------------------- 1 | Привет 2 | = @account.name 3 | , Вы успешно зарегистрировались на сайте soulup.net 4 | 5 | -------------------------------------------------------------------------------- /lib/I18n.rb: -------------------------------------------------------------------------------- 1 | module I18n 2 | def self.default_exception_handler(exception, locale, key, options) 3 | return key 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /public/blank_iframe.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_close.png -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_loading.png -------------------------------------------------------------------------------- /script/dbconsole: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../config/boot', __FILE__) 3 | require 'commands/dbconsole' 4 | -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/test/test_helper.rb: -------------------------------------------------------------------------------- 1 | require 'rubygems' 2 | require 'active_support' 3 | require 'active_support/test_case' -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/controllers/admin/pages_controller.rb: -------------------------------------------------------------------------------- 1 | class Admin::PagesController < Admin::MasterController 2 | end -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/controllers/admin/posts_controller.rb: -------------------------------------------------------------------------------- 1 | class Admin::PostsController < Admin::MasterController 2 | end -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_nav_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_nav_left.png -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_nav_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_nav_right.png -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_shadow_e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_shadow_e.png -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_shadow_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_shadow_n.png -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_shadow_ne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_shadow_ne.png -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_shadow_nw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_shadow_nw.png -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_shadow_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_shadow_s.png -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_shadow_se.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_shadow_se.png -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_shadow_sw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_shadow_sw.png -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_shadow_w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_shadow_w.png -------------------------------------------------------------------------------- /public/images/calendar_date_select/calendar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/calendar_date_select/calendar.gif -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/controllers/admin/assets_controller.rb: -------------------------------------------------------------------------------- 1 | class Admin::AssetsController < Admin::MasterController 2 | end -------------------------------------------------------------------------------- /public/css/base/images/ui-icons_222222_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/css/base/images/ui-icons_222222_256x240.png -------------------------------------------------------------------------------- /public/css/base/images/ui-icons_2e83ff_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/css/base/images/ui-icons_2e83ff_256x240.png -------------------------------------------------------------------------------- /public/css/base/images/ui-icons_454545_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/css/base/images/ui-icons_454545_256x240.png -------------------------------------------------------------------------------- /public/css/base/images/ui-icons_888888_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/css/base/images/ui-icons_888888_256x240.png -------------------------------------------------------------------------------- /public/css/base/images/ui-icons_cd0a0a_256x240.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/css/base/images/ui-icons_cd0a0a_256x240.png -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_title_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_title_left.png -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_title_main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_title_main.png -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_title_over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_title_over.png -------------------------------------------------------------------------------- /public/images/admin/fancybox/fancy_title_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/images/admin/fancybox/fancy_title_right.png -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/controllers/admin/categories_controller.rb: -------------------------------------------------------------------------------- 1 | class Admin::CategoriesController < Admin::MasterController 2 | end -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/controllers/admin/comments_controller.rb: -------------------------------------------------------------------------------- 1 | class Admin::CommentsController < Admin::MasterController 2 | end -------------------------------------------------------------------------------- /public/css/base/images/ui-bg_flat_0_aaaaaa_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/css/base/images/ui-bg_flat_0_aaaaaa_40x100.png -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/fi.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/javascripts/calendar_date_select/locale/fi.js -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/controllers/admin/pictures_controller.rb: -------------------------------------------------------------------------------- 1 | class Admin::PicturesController < Admin::MasterController 2 | end 3 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/controllers/admin/typus_users_controller.rb: -------------------------------------------------------------------------------- 1 | class Admin::TypusUsersController < Admin::MasterController 2 | end -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/models/asset.rb: -------------------------------------------------------------------------------- 1 | class Asset < ActiveRecord::Base 2 | 3 | belongs_to :resource, :polymorphic => true 4 | 5 | end -------------------------------------------------------------------------------- /install.sh: -------------------------------------------------------------------------------- 1 | gem install -v=2.3.5 rails --no-rdoc --no-ri 2 | rake gems:install 3 | git submodule init 4 | git submodule update 5 | rake db:migrate 6 | 7 | -------------------------------------------------------------------------------- /public/css/base/images/ui-bg_flat_75_ffffff_40x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/css/base/images/ui-bg_flat_75_ffffff_40x100.png -------------------------------------------------------------------------------- /public/css/base/images/ui-bg_glass_55_fbf9ee_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/css/base/images/ui-bg_glass_55_fbf9ee_1x400.png -------------------------------------------------------------------------------- /public/css/base/images/ui-bg_glass_65_ffffff_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/css/base/images/ui-bg_glass_65_ffffff_1x400.png -------------------------------------------------------------------------------- /public/css/base/images/ui-bg_glass_75_dadada_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/css/base/images/ui-bg_glass_75_dadada_1x400.png -------------------------------------------------------------------------------- /public/css/base/images/ui-bg_glass_75_e6e6e6_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/css/base/images/ui-bg_glass_75_e6e6e6_1x400.png -------------------------------------------------------------------------------- /public/css/base/images/ui-bg_glass_95_fef1ec_1x400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/css/base/images/ui-bg_glass_95_fef1ec_1x400.png -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/broken/undefined_roles.yml: -------------------------------------------------------------------------------- 1 | admin: 2 | 3 | designer: 4 | Category: read, update 5 | Comment: read 6 | Post: read 7 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/models/delayed/task.rb: -------------------------------------------------------------------------------- 1 | class Delayed::Task < ActiveRecord::Base 2 | 3 | set_table_name 'delayed_tasks' 4 | 5 | end -------------------------------------------------------------------------------- /script/performance/profiler: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../../config/boot', __FILE__) 3 | require 'commands/performance/profiler' 4 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/models/page.rb: -------------------------------------------------------------------------------- 1 | class Page < ActiveRecord::Base 2 | 3 | acts_as_tree if defined?(ActiveRecord::Acts::Tree) 4 | 5 | end -------------------------------------------------------------------------------- /script/performance/benchmarker: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../../config/boot', __FILE__) 3 | require 'commands/performance/benchmarker' 4 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/helpers/_flash_message.html.erb: -------------------------------------------------------------------------------- 1 |
2 |

<%= message[flash_type] %>

3 |
4 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/controllers/admin/status_controller.rb: -------------------------------------------------------------------------------- 1 | class Admin::StatusController < TypusController 2 | 3 | def index 4 | end 5 | 6 | end -------------------------------------------------------------------------------- /config/typus/typus_roles.yml: -------------------------------------------------------------------------------- 1 | # Typus Roles Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | admin: 6 | TypusUser: all 7 | -------------------------------------------------------------------------------- /public/css/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/public/css/base/images/ui-bg_highlight-soft_75_cccccc_1x100.png -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/helpers/_table_header.html.erb: -------------------------------------------------------------------------------- 1 | 2 | <% headers.each do |header| %> 3 | <%= header %> 4 | <% end %> 5 | 6 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/controllers/admin/watch_dog_controller.rb: -------------------------------------------------------------------------------- 1 | class Admin::WatchDogController < TypusController 2 | 3 | def index 4 | end 5 | 6 | end -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/tasks/partial_renderer_tasks.rake: -------------------------------------------------------------------------------- 1 | # desc "Explaining what the task does" 2 | # task :partial_renderer do 3 | # # Task goes here 4 | # end 5 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/templates/_password.html.erb: -------------------------------------------------------------------------------- 1 |
  • 2 | <%= form.label attribute, label_text %> 3 | <%= form.password_field attribute, options %> 4 |
  • -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/javascripts/admin/application.js: -------------------------------------------------------------------------------- 1 | // Place your application-specific JavaScript functions and classes for 2 | // Typus here. 3 | -------------------------------------------------------------------------------- /vendor/plugins/typus/lib/extensions/hash.rb: -------------------------------------------------------------------------------- 1 | class Hash 2 | 3 | # Remove nil and empty keys. 4 | def compact 5 | delete_if { |key, value| value.blank? } 6 | end 7 | 8 | end -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/models/comment.rb: -------------------------------------------------------------------------------- 1 | class Comment < ActiveRecord::Base 2 | 3 | validates_presence_of :name, :email, :body 4 | belongs_to :post 5 | 6 | end -------------------------------------------------------------------------------- /app/controllers/admin/books_controller.rb: -------------------------------------------------------------------------------- 1 | # Controller generated by Typus, use it to extend admin functionality. 2 | class Admin::BooksController < Admin::MasterController 3 | 4 | end 5 | -------------------------------------------------------------------------------- /app/controllers/admin/posts_controller.rb: -------------------------------------------------------------------------------- 1 | # Controller generated by Typus, use it to extend admin functionality. 2 | class Admin::PostsController < Admin::MasterController 3 | 4 | end 5 | -------------------------------------------------------------------------------- /script/about: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | require File.expand_path('../../config/boot', __FILE__) 3 | $LOAD_PATH.unshift "#{RAILTIES_PATH}/builtin/rails_info" 4 | require 'commands/about' 5 | -------------------------------------------------------------------------------- /app/controllers/admin/events_controller.rb: -------------------------------------------------------------------------------- 1 | # Controller generated by Typus, use it to extend admin functionality. 2 | class Admin::EventsController < Admin::MasterController 3 | 4 | end 5 | -------------------------------------------------------------------------------- /app/controllers/admin/places_controller.rb: -------------------------------------------------------------------------------- 1 | # Controller generated by Typus, use it to extend admin functionality. 2 | class Admin::PlacesController < Admin::MasterController 3 | 4 | end 5 | -------------------------------------------------------------------------------- /app/controllers/admin/videos_controller.rb: -------------------------------------------------------------------------------- 1 | # Controller generated by Typus, use it to extend admin functionality. 2 | class Admin::VideosController < Admin::MasterController 3 | 4 | end 5 | -------------------------------------------------------------------------------- /public/javascripts/application.js: -------------------------------------------------------------------------------- 1 | // Place your application-specific JavaScript functions and classes here 2 | // This file is automatically included by javascript_include_tag :defaults 3 | -------------------------------------------------------------------------------- /vendor/plugins/acts_as_list/init.rb: -------------------------------------------------------------------------------- 1 | $:.unshift "#{File.dirname(__FILE__)}/lib" 2 | require 'active_record/acts/list' 3 | ActiveRecord::Base.class_eval { include ActiveRecord::Acts::List } 4 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/shared/_footer.html.erb: -------------------------------------------------------------------------------- 1 |

    <%= link_to 'Typus', 'http://core.typuscms.com/' %> by <%= link_to 'intraducibles.com', 'http://intraducibles.com' %>.

    2 | -------------------------------------------------------------------------------- /app/controllers/admin/materials_controller.rb: -------------------------------------------------------------------------------- 1 | # Controller generated by Typus, use it to extend admin functionality. 2 | class Admin::MaterialsController < Admin::MasterController 3 | 4 | end 5 | -------------------------------------------------------------------------------- /app/controllers/admin/subjects_controller.rb: -------------------------------------------------------------------------------- 1 | # Controller generated by Typus, use it to extend admin functionality. 2 | class Admin::SubjectsController < Admin::MasterController 3 | 4 | end 5 | -------------------------------------------------------------------------------- /config/typus/application_roles.yml: -------------------------------------------------------------------------------- 1 | # Typus Roles Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | admin: 6 | Post: create, read, update, delete 7 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/templates/_boolean.html.erb: -------------------------------------------------------------------------------- 1 |
  • 2 | <%= form.label attribute, label_text, :class => 'inline_label' %> 3 | <%= form.check_box attribute, options %> 4 |
  • -------------------------------------------------------------------------------- /app/controllers/admin/event_types_controller.rb: -------------------------------------------------------------------------------- 1 | # Controller generated by Typus, use it to extend admin functionality. 2 | class Admin::EventTypesController < Admin::MasterController 3 | 4 | end 5 | -------------------------------------------------------------------------------- /app/controllers/admin/typus_users_controller.rb: -------------------------------------------------------------------------------- 1 | # Controller generated by Typus, use it to extend admin functionality. 2 | class Admin::TypusUsersController < Admin::MasterController 3 | 4 | end 5 | -------------------------------------------------------------------------------- /app/models/video.rb: -------------------------------------------------------------------------------- 1 | class Video < ActiveRecord::Base 2 | has_one :material, :as => :item 3 | has_many :materials, :as => :item 4 | 5 | def list_representation 6 | code 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /app/views/common/show_material.haml: -------------------------------------------------------------------------------- 1 | - display_materials_menu 2 | - surround_with_border do 3 | .text_3 4 | = render :partial => @material.item_type.downcase, :locals => { :item => @material.item } 5 | -------------------------------------------------------------------------------- /test/unit/book_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class BookTest < ActiveSupport::TestCase 4 | # Replace this with your real tests. 5 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /test/unit/place_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class PlaceTest < ActiveSupport::TestCase 4 | # Replace this with your real tests. 5 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /test/unit/video_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class VideoTest < ActiveSupport::TestCase 4 | # Replace this with your real tests. 5 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/ui-icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/ui-icons.png -------------------------------------------------------------------------------- /config/typus/20100918104646_application_roles.yml: -------------------------------------------------------------------------------- 1 | # Typus Roles Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | admin: 6 | Book: create, read, update, delete 7 | -------------------------------------------------------------------------------- /test/unit/material_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class MaterialTest < ActiveSupport::TestCase 4 | # Replace this with your real tests. 5 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /test/unit/notifier_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class NotifierTest < ActionMailer::TestCase 4 | # replace this with your real tests 5 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /test/unit/subject_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class SubjectTest < ActiveSupport::TestCase 4 | # Replace this with your real tests. 5 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /config/typus/20100918084548_application_roles.yml: -------------------------------------------------------------------------------- 1 | # Typus Roles Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | admin: 6 | Material: create, read, update, delete 7 | -------------------------------------------------------------------------------- /config/typus/20100918090121_application_roles.yml: -------------------------------------------------------------------------------- 1 | # Typus Roles Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | admin: 6 | Video: create, read, update, delete 7 | -------------------------------------------------------------------------------- /test/unit/event_type_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class EventTypeTest < ActiveSupport::TestCase 4 | # Replace this with your real tests. 5 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/models/typus_user.rb: -------------------------------------------------------------------------------- 1 | class TypusUser < ActiveRecord::Base 2 | 3 | ROLE = Typus::Configuration.roles.keys.sort 4 | LANGUAGE = Typus.locales 5 | 6 | enable_as_typus_user 7 | 8 | end 9 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/helpers/_display_link_to_previous.html.erb: -------------------------------------------------------------------------------- 1 |
    2 |

    <%= message %> <%= link_to _("Do you want to cancel it?"), params[:back_to] %>

    3 |
    4 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/config/typus/application.yml: -------------------------------------------------------------------------------- 1 | # Typus Models Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | <%= configuration[:base] %> -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/controller.rb: -------------------------------------------------------------------------------- 1 | # Controller generated by Typus, use it to extend admin functionality. 2 | class Admin::<%= resource %>Controller < <%= inherits_from %> 3 | 4 | end 5 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/blank.gif -------------------------------------------------------------------------------- /test/unit/forgot_password_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class ForgotPasswordTest < ActionMailer::TestCase 4 | # replace this with your real tests 5 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /app/helpers/users_helper.rb: -------------------------------------------------------------------------------- 1 | module UsersHelper 2 | def text_field_for(form, name, args = {}) 3 | content_tag 'span', form.text_field(name, args.merge(:class => :text_6, :size => nil)), :class => 'zagolov' 4 | end 5 | end 6 | -------------------------------------------------------------------------------- /app/views/users/forgot_password.haml: -------------------------------------------------------------------------------- 1 | Забыли пароль ? Введите свой email для восстановления пароля 2 | - form_for TypusUser.new, :url => url_for do |f| 3 | Email: 4 | = f.text_field :email 5 | = f.submit "Восстановить" 6 | 7 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/helpers/_login_info.html.erb: -------------------------------------------------------------------------------- 1 | 5 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/config/typus/application_roles.yml: -------------------------------------------------------------------------------- 1 | # Typus Roles Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | admin: 6 | <%= configuration[:roles] %> -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_close.png -------------------------------------------------------------------------------- /app/controllers/news_controller.rb: -------------------------------------------------------------------------------- 1 | class NewsController < ApplicationController 2 | def index 3 | @news = Post.list(params[:page]) 4 | end 5 | 6 | def show 7 | @item = Post.find(params[:id]) 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /app/helpers/common_helper.rb: -------------------------------------------------------------------------------- 1 | module CommonHelper 2 | def material_info(item) 3 | if item.info.blank? 4 | "Нет доступной информации о материале" 5 | else 6 | h item.info 7 | end 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /app/models/material.rb: -------------------------------------------------------------------------------- 1 | class Material < ActiveRecord::Base 2 | belongs_to :item, :polymorphic => true 3 | 4 | def self.count_by_first_letter(letter) 5 | return true unless title_begins_with(letter).empty? 6 | end 7 | end 8 | -------------------------------------------------------------------------------- /doc/README_FOR_APP: -------------------------------------------------------------------------------- 1 | Use this README file to introduce your application and point to useful places in the API for learning more. 2 | Run "rake doc:app" to generate API documentation for your models, controllers, helpers, and libraries. 3 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/helpers/_quick_edit.html.erb: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/typus_mailer/reset_password_link.erb: -------------------------------------------------------------------------------- 1 | 2 | <%= _("You can update your password at") %>: 3 | 4 | <%= @url %> 5 | 6 | <%= _("If you didn't request a password update, you can ignore this message") %> 7 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_loading.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_loading.png -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_left.png -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_nav_right.png -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_e.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_e.png -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_n.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_n.png -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_ne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_ne.png -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_nw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_nw.png -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_s.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_s.png -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_se.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_se.png -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_sw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_sw.png -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_w.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_shadow_w.png -------------------------------------------------------------------------------- /vendor/plugins/typus/lib/typus/preferences.rb: -------------------------------------------------------------------------------- 1 | module Typus 2 | 3 | module Preferences 4 | 5 | def set_typus_preferences 6 | I18n.locale = @current_user.preferences[:locale] 7 | end 8 | 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /db/migrate/022_add_url_to_book.rb: -------------------------------------------------------------------------------- 1 | class AddUrlToBook < ActiveRecord::Migration 2 | def self.up 3 | add_column :books, :url, :string 4 | end 5 | 6 | def self.down 7 | remove_column :books, :url 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /public/robots.txt: -------------------------------------------------------------------------------- 1 | # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file 2 | # 3 | # To ban all spiders from the entire site uncomment the next two lines: 4 | # User-Agent: * 5 | # Disallow: / 6 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/config/typus/typus_roles.yml: -------------------------------------------------------------------------------- 1 | # Typus Roles Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | admin: 6 | <%= options[:user_class_name] %>: all 7 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_left.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_left.png -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_main.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_main.png -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_over.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_over.png -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_right.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/html/sup/master/vendor/plugins/typus/generators/typus/templates/public/images/admin/fancybox/fancy_title_right.png -------------------------------------------------------------------------------- /app/views/require_login.haml: -------------------------------------------------------------------------------- 1 | Эта страница недоступна для незарегистрированных пользователей, 2 | = link_to("войдите под своим аккаунтом", login_path) 3 | или 4 | = link_to("зарегистрируйтесь", register_path) 5 | если у Вас нет еще аккаунта 6 | -------------------------------------------------------------------------------- /app/views/users/activate.haml: -------------------------------------------------------------------------------- 1 | - if @user 2 | Успешно активированная учетная запись, пожалуйста 3 | = link_to 'войдите под своим аккаунтом', login_path 4 | - else 5 | Неверный код активации, скорее всего учетная запись уже активирована 6 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/model.rb: -------------------------------------------------------------------------------- 1 | class <%= options[:user_class_name] %> < ActiveRecord::Base 2 | 3 | ROLE = Typus::Configuration.roles.keys.sort 4 | LANGUAGE = Typus.locales 5 | 6 | enable_as_typus_user 7 | 8 | end 9 | -------------------------------------------------------------------------------- /config/initializers/mime_types.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new mime types for use in respond_to blocks: 4 | # Mime::Type.register "text/richtext", :rtf 5 | # Mime::Type.register_alias "text/html", :iphone 6 | -------------------------------------------------------------------------------- /config/typus/20100428093006_application_roles.yml: -------------------------------------------------------------------------------- 1 | # Typus Roles Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | admin: 6 | Event: create, read, update, delete 7 | Place: create, read, update, delete 8 | -------------------------------------------------------------------------------- /db/migrate/021_add_info_to_material.rb: -------------------------------------------------------------------------------- 1 | class AddInfoToMaterial < ActiveRecord::Migration 2 | def self.up 3 | add_column :materials, :info, :text 4 | end 5 | 6 | def self.down 7 | remove_column :materials, :info 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/test/partial_renderer_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class PartialRendererTest < ActiveSupport::TestCase 4 | # Replace this with your real tests. 5 | test "the truth" do 6 | assert true 7 | end 8 | end 9 | -------------------------------------------------------------------------------- /app/views/common/_book.haml: -------------------------------------------------------------------------------- 1 | %br 2 | = item.list_representation 3 | %br 4 | %br 5 | = material_info @material 6 | %br 7 | %br 8 | %h1.zagolov 9 | - link_to item.url, :target => "_blank" do 10 | = image_tag '/img/download1.jpg' 11 | Скачать 12 | -------------------------------------------------------------------------------- /config/typus/20100428133850_application_roles.yml: -------------------------------------------------------------------------------- 1 | # Typus Roles Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | admin: 6 | EventType: create, read, update, delete 7 | Subject: create, read, update, delete 8 | -------------------------------------------------------------------------------- /db/migrate/019_create_books.rb: -------------------------------------------------------------------------------- 1 | class CreateBooks < ActiveRecord::Migration 2 | def self.up 3 | create_table :books do |t| 4 | 5 | t.timestamps 6 | end 7 | end 8 | 9 | def self.down 10 | drop_table :books 11 | end 12 | end 13 | -------------------------------------------------------------------------------- /db/migrate/007_add_place_id_to_events.rb: -------------------------------------------------------------------------------- 1 | class AddPlaceIdToEvents < ActiveRecord::Migration 2 | def self.up 3 | add_column :events, :place_id, :integer 4 | end 5 | 6 | def self.down 7 | remove_column :events, :place_id 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/013_add_owner_id_to_events.rb: -------------------------------------------------------------------------------- 1 | class AddOwnerIdToEvents < ActiveRecord::Migration 2 | def self.up 3 | add_column :events, :owner_id, :integer 4 | end 5 | 6 | def self.down 7 | remove_column :events, :owner_id 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/023_add_cost_type_to_events.rb: -------------------------------------------------------------------------------- 1 | class AddCostTypeToEvents < ActiveRecord::Migration 2 | def self.up 3 | add_column :events, :cost_type, :string 4 | end 5 | 6 | def self.down 7 | remove_column :events, :cost_type 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /app/models/place.rb: -------------------------------------------------------------------------------- 1 | class Place < ActiveRecord::Base 2 | #acts_as_list 3 | acts_as_tree 4 | 5 | def typus_name 6 | title 7 | end 8 | 9 | def xxx 10 | if parent_id 11 | '↳' 12 | else 13 | '*' 14 | end 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /app/views/common/_materials_menu.haml: -------------------------------------------------------------------------------- 1 | #materials_menu.text_25 2 | = link_to_unless_current "Все материалы", materials_path 3 | %br 4 | = link_to_unless_current "Видео", video_materials_path 5 | %br 6 | = link_to_unless_current "Книги", book_materials_path 7 | -------------------------------------------------------------------------------- /db/migrate/009_add_subject_id_to_events.rb: -------------------------------------------------------------------------------- 1 | class AddSubjectIdToEvents < ActiveRecord::Migration 2 | def self.up 3 | add_column :events, :subject_id, :integer 4 | end 5 | 6 | def self.down 7 | remove_column :events, :subject_id 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /public/javascripts/users-edit_profile.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | var root_el = $('#events_root_place'), child_el = $('#typus_user_place_id'), url = '/events/cities'; 3 | applySelectChain(root_el, child_el, url); 4 | $('#typus_user_birth_date').datepicker(); 5 | }); 6 | -------------------------------------------------------------------------------- /public/javascripts/apply-select-chain.js: -------------------------------------------------------------------------------- 1 | function applySelectChain(root_el, child_el, url, empty_text){ 2 | root_el.selectChain({ 3 | target: child_el, 4 | url: url, 5 | data: 'ajax=true' + (empty_text ? '&empty_text=1' : '') 6 | }); 7 | } 8 | 9 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/templates/_date.html.erb: -------------------------------------------------------------------------------- 1 | <% 2 | custom = { :include_blank => false } 3 | options.merge!(custom) 4 | %> 5 | 6 |
  • 7 | <%= form.label attribute, label_text %> 8 | <%= form.date_select attribute, options, html_options %> 9 |
  • -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/templates/_time.html.erb: -------------------------------------------------------------------------------- 1 | <% 2 | custom = { :include_blank => false } 3 | options.merge!(custom) 4 | %> 5 | 6 |
  • 7 | <%= form.label attribute, label_text %> 8 | <%= form.time_select attribute, options, html_options %> 9 |
  • -------------------------------------------------------------------------------- /db/migrate/011_add_event_type_to_events.rb: -------------------------------------------------------------------------------- 1 | class AddEventTypeToEvents < ActiveRecord::Migration 2 | def self.up 3 | add_column :events, :event_type_id, :integer 4 | end 5 | 6 | def self.down 7 | remove_column :events, :event_type_id 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/templates/_datetime.html.erb: -------------------------------------------------------------------------------- 1 | <% 2 | custom = { :include_blank => false } 3 | options.merge!(custom) 4 | %> 5 | 6 |
  • 7 | <%= form.label attribute, label_text %> 8 | <%= form.datetime_select attribute, options, html_options %> 9 |
  • -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/typus/dashboard.html.erb: -------------------------------------------------------------------------------- 1 | <% content_for :sidebar do %> 2 | <%= typus_block :location => 'dashboard', :partial => 'sidebar' %> 3 | <% end %> 4 | 5 |

    <%= _("Dashboard") %>

    6 | 7 | <%= applications %> 8 | 9 | <%= resources %> 10 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/assets.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 3 | caption: This is the caption. 4 | resource_type: Post 5 | resource_id: 1 6 | 7 | second: 8 | id: 2 9 | caption: This is the second caption. 10 | resource_type: Post 11 | resource_id: 1 12 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/categories.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 3 3 | name: First Category 4 | position: 1 5 | 6 | second: 7 | id: 1 8 | name: Second Category 9 | position: 2 10 | 11 | third: 12 | id: 2 13 | name: Third Category 14 | position: 3 15 | -------------------------------------------------------------------------------- /app/views/forgot_password/index.haml: -------------------------------------------------------------------------------- 1 | Попытка восстановления пароля, если это Ваша попытка, пройдите по ссылке ниже 2 | %br 3 | = link_to "Изменить пароль", change_url(:recover => @user.recovery_hash) 4 | 5 | Если это не Вы пробовали изменить пароль, просто проигнорируйте письмо 6 | 7 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/helpers/_list.html.erb: -------------------------------------------------------------------------------- 1 | <%= content_tag('h2', header) if header %> 2 | 3 | <% unless options[:selector] %> 4 | 5 | 10 | 11 | <% end %> -------------------------------------------------------------------------------- /app/models/book.rb: -------------------------------------------------------------------------------- 1 | class Book < ActiveRecord::Base 2 | include ActionView::Helpers 3 | has_one :material, :as => :item 4 | has_many :materials, :as => :item 5 | has_attached_file :file 6 | 7 | def list_representation 8 | image_tag file.url 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /db/migrate/018_create_videos.rb: -------------------------------------------------------------------------------- 1 | class CreateVideos < ActiveRecord::Migration 2 | def self.up 3 | create_table :videos do |t| 4 | t.text :code 5 | 6 | t.timestamps 7 | end 8 | end 9 | 10 | def self.down 11 | drop_table :videos 12 | end 13 | end 14 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/models/category.rb: -------------------------------------------------------------------------------- 1 | class Category < ActiveRecord::Base 2 | 3 | acts_as_list if defined?(ActiveRecord::Acts::List) 4 | 5 | validates_presence_of :name 6 | has_and_belongs_to_many :posts 7 | 8 | def self.typus 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /db/migrate/014_add_recovery_hash_to_typus_users.rb: -------------------------------------------------------------------------------- 1 | class AddRecoveryHashToTypusUsers < ActiveRecord::Migration 2 | def self.up 3 | add_column :typus_users, :recovery_hash, :string 4 | end 5 | 6 | def self.down 7 | remove_column :typus_users, :recovery_hash 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /db/migrate/025_add_activation_code_to_users.rb: -------------------------------------------------------------------------------- 1 | class AddActivationCodeToUsers < ActiveRecord::Migration 2 | def self.up 3 | add_column :typus_users, :activation_code, :string 4 | end 5 | 6 | def self.down 7 | remove_column :typus_users, :activation_code 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/templates/_text.html.erb: -------------------------------------------------------------------------------- 1 | <% 2 | custom = { :rows => @resource[:class].typus_options_for(:form_rows) } 3 | options = options.merge!(custom) 4 | %> 5 | 6 |
  • 7 | <%= form.label attribute, label_text %> 8 | <%= form.text_area attribute, options %> 9 |
  • -------------------------------------------------------------------------------- /public/javascripts/register.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | $('#typus_user_birth_date').datepicker({ 3 | showOn: "button", 4 | buttonImage: "images/calendar.gif", 5 | buttonImageOnly: true 6 | }); 7 | applySelectChain($('#events_root_place'), $('#typus_user_city_id'), '/events/cities'); 8 | }); 9 | -------------------------------------------------------------------------------- /test/performance/browsing_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | require 'performance_test_help' 3 | 4 | # Profiling results for each test method are written to tmp/performance. 5 | class BrowsingTest < ActionController::PerformanceTest 6 | def test_homepage 7 | get '/' 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /vendor/plugins/simple_captcha/test/simple_captcha_test.rb: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2008 [Sur http://expressica.com] 2 | 3 | require 'test/unit' 4 | 5 | class SimpleCaptchaTest < Test::Unit::TestCase 6 | # Replace this with your real tests. 7 | def test_this_plugin 8 | flunk 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /app/views/_tooltips.haml: -------------------------------------------------------------------------------- 1 | :javascript 2 | $(function(){ 3 | $('.tip').tooltip({ 4 | track: true, 5 | delay: 0, 6 | showURL: false, 7 | showBody: " - ", 8 | extraClass: "pretty", 9 | fixPNG: true, 10 | opacity: 0.95, 11 | left: -120 12 | }); 13 | }); 14 | -------------------------------------------------------------------------------- /vendor/plugins/typus/config/locales/models/README.md: -------------------------------------------------------------------------------- 1 | Important 2 | ========= 3 | 4 | Model translations are disabled by default. 5 | 6 | It's responsability of the application to translate the models. If 7 | you want to use the provided translations add the `config/locales/models` 8 | to the I18n load path. 9 | -------------------------------------------------------------------------------- /app/views/_border.haml: -------------------------------------------------------------------------------- 1 | %table.section{ :cellspacing => "0", :width => "100%", :cellpadding => "0" } 2 | %tbody 3 | %tr 4 | %td.tl 5 | %td.t 6 | %td.tr 7 | %tr 8 | %td.l 9 | %td 10 | = content 11 | %td.r 12 | %tr 13 | %td.bl 14 | %td.b 15 | %td.br 16 | 17 | 18 | -------------------------------------------------------------------------------- /app/views/require_activation.haml: -------------------------------------------------------------------------------- 1 | Эта страница недоступна для пользователей не прошедших активацию, пожалуйста активируйте аккаунт. 2 | %br 3 | Письмо с ссылкой для активации должно было прийти Вам, если письмо затерялось, 4 | = link_to 'нажмите здесь для получения письма еще раз', send_activation_mail_path(@auth_user) 5 | -------------------------------------------------------------------------------- /db/migrate/006_create_places.rb: -------------------------------------------------------------------------------- 1 | class CreatePlaces < ActiveRecord::Migration 2 | def self.up 3 | create_table :places do |t| 4 | t.string :title 5 | t.integer :parent_id 6 | 7 | t.timestamps 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :places 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus_update_schema_to_01/templates/migration.rb: -------------------------------------------------------------------------------- 1 | class UpdateTypusSchemaTo01 < ActiveRecord::Migration 2 | 3 | def self.up 4 | rename_column :typus_users, :roles, :role 5 | end 6 | 7 | def self.down 8 | rename_column :typus_users, :role, :roles 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /vendor/plugins/typus/test/functional/admin/master_controller_posts_before_test.rb: -------------------------------------------------------------------------------- 1 | require 'test/helper' 2 | 3 | class Admin::PostsControllerTest < ActionController::TestCase 4 | 5 | def setup 6 | @typus_user = typus_users(:admin) 7 | @request.session[:typus_user_id] = @typus_user.id 8 | end 9 | 10 | end -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus_update_schema_to_02/templates/migration.rb: -------------------------------------------------------------------------------- 1 | class UpdateTypusSchemaTo02 < ActiveRecord::Migration 2 | 3 | def self.up 4 | add_column :typus_users, :preferences, :string 5 | end 6 | 7 | def self.down 8 | remove_column :typus_users, :preferences 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /app/views/notifier/activation_notification.haml: -------------------------------------------------------------------------------- 1 | Здравствуйте, 2 | = @account.name 3 | Вы проходите регистрацию на сайте soulup.net, для продолжения регистрации, активируйте свой email пройдя по следующей ссылке 4 | = link_to activate_user_url(:code => @account.activation_code), activate_user_url(:code => @account.activation_code) 5 | -------------------------------------------------------------------------------- /db/migrate/002_create_posts.rb: -------------------------------------------------------------------------------- 1 | class CreatePosts < ActiveRecord::Migration 2 | def self.up 3 | create_table :posts do |t| 4 | t.string :title 5 | t.text :content 6 | t.date :date 7 | t.timestamps 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :posts 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /db/migrate/008_create_subjects.rb: -------------------------------------------------------------------------------- 1 | class CreateSubjects < ActiveRecord::Migration 2 | def self.up 3 | create_table :subjects do |t| 4 | t.string :title 5 | t.integer :parent_id 6 | 7 | t.timestamps 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :subjects 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /config/typus/20100918090121_application.yml: -------------------------------------------------------------------------------- 1 | # Typus Models Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | Video: 6 | fields: 7 | list: code 8 | form: code 9 | order_by: 10 | relationships: material 11 | filters: 12 | search: 13 | application: sup 14 | 15 | -------------------------------------------------------------------------------- /db/migrate/010_create_event_types.rb: -------------------------------------------------------------------------------- 1 | class CreateEventTypes < ActiveRecord::Migration 2 | def self.up 3 | create_table :event_types do |t| 4 | t.string :title 5 | t.integer :position 6 | 7 | t.timestamps 8 | end 9 | end 10 | 11 | def self.down 12 | drop_table :event_types 13 | end 14 | end 15 | -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/ru.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('Пн Вт Ср Чт Пт Сб Вс'); 2 | Date.months = $w('Январь Февраль Март Апрель Май Июнь Июль Август Сентябрь Октябрь Ноябрь Декабрь'); 3 | 4 | Date.first_day_of_week = 1 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Сейчас", 9 | "Today": "Сегодня" 10 | } -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/templates/_selector.html.erb: -------------------------------------------------------------------------------- 1 | <% 2 | values = @resource[:class]::const_get("#{attribute.upcase}") 3 | values = values.invert if values.kind_of?(Hash) 4 | %> 5 | 6 |
  • 7 | <%= form.label attribute, label_text %> 8 | <%= form.select attribute, values, options, html_options %> 9 |
  • 10 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/locales/es.yml: -------------------------------------------------------------------------------- 1 | # Spanish translations for Rails 2 | # by Francisco Fernando García Nieto (ffgarcianieto@gmail.com) 3 | 4 | es: 5 | activerecord: 6 | models: 7 | # Overrides default messages 8 | comment: "Comentario" 9 | attributes: 10 | # Overrides model and default messages. -------------------------------------------------------------------------------- /test/functional/admin/books_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | # ControllerTest generated by Typus, use it to test the extended admin functionality. 4 | class Admin::BooksControllerTest < ActionController::TestCase 5 | 6 | # Replace this with your real tests. 7 | test "the truth" do 8 | assert true 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /test/functional/admin/events_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | # ControllerTest generated by Typus, use it to test the extended admin functionality. 4 | class Admin::EventsControllerTest < ActionController::TestCase 5 | 6 | # Replace this with your real tests. 7 | test "the truth" do 8 | assert true 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /test/functional/admin/places_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | # ControllerTest generated by Typus, use it to test the extended admin functionality. 4 | class Admin::PlacesControllerTest < ActionController::TestCase 5 | 6 | # Replace this with your real tests. 7 | test "the truth" do 8 | assert true 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /test/functional/admin/posts_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | # ControllerTest generated by Typus, use it to test the extended admin functionality. 4 | class Admin::PostsControllerTest < ActionController::TestCase 5 | 6 | # Replace this with your real tests. 7 | test "the truth" do 8 | assert true 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /test/functional/admin/videos_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | # ControllerTest generated by Typus, use it to test the extended admin functionality. 4 | class Admin::VideosControllerTest < ActionController::TestCase 5 | 6 | # Replace this with your real tests. 7 | test "the truth" do 8 | assert true 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /test/functional/admin/subjects_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | # ControllerTest generated by Typus, use it to test the extended admin functionality. 4 | class Admin::SubjectsControllerTest < ActionController::TestCase 5 | 6 | # Replace this with your real tests. 7 | test "the truth" do 8 | assert true 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /Rakefile: -------------------------------------------------------------------------------- 1 | # Add your own tasks in files placed in lib/tasks ending in .rake, 2 | # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. 3 | 4 | require(File.join(File.dirname(__FILE__), 'config', 'boot')) 5 | 6 | require 'rake' 7 | require 'rake/testtask' 8 | require 'rake/rdoctask' 9 | 10 | require 'tasks/rails' 11 | -------------------------------------------------------------------------------- /app/models/forgot_password.rb: -------------------------------------------------------------------------------- 1 | class ForgotPassword < ActionMailer::Base 2 | 3 | def index_notification(recipient) 4 | from "i@soulup.net" 5 | recipients recipient.email_address_with_name 6 | subject "Восстановление пароля" 7 | part :content_type => "text/html", :body => render_message('index', :user => recipient) 8 | end 9 | end 10 | -------------------------------------------------------------------------------- /test/functional/admin/event_types_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | # ControllerTest generated by Typus, use it to test the extended admin functionality. 4 | class Admin::EventTypesControllerTest < ActionController::TestCase 5 | 6 | # Replace this with your real tests. 7 | test "the truth" do 8 | assert true 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /test/functional/admin/materials_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | # ControllerTest generated by Typus, use it to test the extended admin functionality. 4 | class Admin::MaterialsControllerTest < ActionController::TestCase 5 | 6 | # Replace this with your real tests. 7 | test "the truth" do 8 | assert true 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /test/functional/admin/typus_users_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | # ControllerTest generated by Typus, use it to test the extended admin functionality. 4 | class Admin::TypusUsersControllerTest < ActionController::TestCase 5 | 6 | # Replace this with your real tests. 7 | test "the truth" do 8 | assert true 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/dashboard/_sidebar.html.erb: -------------------------------------------------------------------------------- 1 |

    Welcome!

    2 | 3 |

    If you need help don't hesitate in joining the <%= link_to 'mailing list', 'http://groups.google.com/group/typus' %>.

    4 | 5 |

    Replace this sidebar dropping a file named _sidebar.html.erb on the app/views/admin/dashboard folder.

    6 | -------------------------------------------------------------------------------- /vendor/plugins/typus/lib/typus/reloader.rb: -------------------------------------------------------------------------------- 1 | module Typus 2 | 3 | module Reloader 4 | 5 | # Reload config and roles when app is running in development. 6 | def reload_config_and_roles 7 | return if Rails.env.production? 8 | Typus::Configuration.roles! 9 | Typus::Configuration.config! 10 | end 11 | 12 | end 13 | 14 | end -------------------------------------------------------------------------------- /vendor/plugins/typus/test/extensions/hash_test.rb: -------------------------------------------------------------------------------- 1 | require 'test/helper' 2 | 3 | class HashTest < ActiveSupport::TestCase 4 | 5 | def test_should_verify_compact 6 | hash = { 'a' => '', 'b'=> nil, 'c' => 'hello', 'd' => 1 } 7 | hash_compacted = { 'c' => 'hello', 'd' => 1 } 8 | assert_equal hash_compacted, hash.compact 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /app/models/post.rb: -------------------------------------------------------------------------------- 1 | class Post < ActiveRecord::Base 2 | has_attached_file :image, :default_url => '/images/no_image.jpg', :styles => { 3 | :list => "330x190#" 4 | } 5 | validates_presence_of :title, :content, :image, :date 6 | 7 | def self.list(page = 1) 8 | paginate :page => page || 1, :per_page => 5, :order => 'date DESC' 9 | end 10 | end 11 | -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/da.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('Ma Ti On To Fr Lø Sø'); 2 | Date.months = $w('Januar Februar Marts April Maj Juni Juli August September Oktober November December'); 3 | 4 | Date.first_day_of_week = 1; 5 | 6 | _translations = { 7 | "OK": "Vælg", 8 | "Now": "Nu", 9 | "Today": "I dag", 10 | "Clear": "Slet" 11 | } 12 | -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/es.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w("L M X J V S D"); 2 | Date.months = $w("Enero Febrero Marzo Abril Mayo Junio Julio Agosto Septiembre Octubre Noviembre Diciembre" ); 3 | 4 | Date.first_day_of_week = 1; 5 | 6 | _translations = { 7 | "OK": "Cancelar", 8 | "Now": "Ahora", 9 | "Clear": "Limpiar", 10 | "Today": "Hoy" 11 | } -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/it.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('Lu Ma Me Gi Ve Sa Do'); 2 | Date.months = $w('Gennaio Febbraio Marzo Aprile Maggio Giugno Luglio Agosto Settembre Ottobre Novembre Dicembre'); 3 | Date.first_day_of_week = 1; 4 | _translations = { 5 | "OK": "OK", 6 | "Now": "Ora", 7 | "Today": "Oggi", 8 | "Clear": "Cancella" 9 | } 10 | -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/pt.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('D S T Q Q S S'); 2 | Date.months = $w('Janeiro Fevereiro Março Abril Maio Junho Julho Agosto Setembro Outubro Novembro Dezembro'); 3 | 4 | Date.first_day_of_week = 0 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Agora", 9 | "Today": "Hoje", 10 | "Clear": "Limpar" 11 | } 12 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus_update_schema_to_02/typus_update_schema_to_02_generator.rb: -------------------------------------------------------------------------------- 1 | class TypusUpdateSchemaTo02Generator < Rails::Generator::Base 2 | 3 | def manifest 4 | 5 | record do |m| 6 | m.migration_template 'migration.rb', 'db/migrate', { :migration_file_name => 'update_typus_schema_to_02' } 7 | end 8 | 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /config/typus/20100918084548_application.yml: -------------------------------------------------------------------------------- 1 | # Typus Models Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | Material: 6 | fields: 7 | list: title, original_title 8 | form: title, original_title, info 9 | order_by: 10 | relationships: 11 | filters: 12 | search: title 13 | application: sup 14 | 15 | -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/de.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('Mo Di Mi Do Fr Sa So'); 2 | Date.months = $w('Januar Februar März April Mai Juni Juli August September Oktober November Dezember'); 3 | 4 | Date.first_day_of_week = 1; 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Jetzt", 9 | "Today": "Heute", 10 | "Clear": "Löschen" 11 | } 12 | -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/nl.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('Ma Di Wo Do Vr Za Zo'); 2 | Date.months = $w('januari februari maart april mei juni juli augustus september oktober november december'); 3 | 4 | Date.first_day_of_week = 1; 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Nu", 9 | "Today": "Vandaag", 10 | "Clear": "Wissen" 11 | } 12 | -------------------------------------------------------------------------------- /vendor/plugins/simple_captcha/init.rb: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2008 [Sur http://expressica.com] 2 | 3 | require 'simple_captcha_setup' 4 | require 'simple_captcha_config' 5 | require 'simple_captcha_image' 6 | require 'simple_captcha_action_view' 7 | require 'simple_captcha_action_controller' 8 | require 'simple_captcha_active_record' 9 | require 'simple_captcha_controller' 10 | -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/fr.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('L Ma Me J V S D'); 2 | Date.months = $w('Janvier Février Mars Avril Mai Juin Juillet Août Septembre Octobre Novembre Décembre'); 3 | 4 | Date.first_day_of_week = 1; 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Maintenant", 9 | "Today": "Aujourd'hui", 10 | "Clear": "Effacer", 11 | } 12 | -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/pl.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('P W Ś C P S N'); 2 | Date.months = $w('Styczeń Luty Marzec Kwiecień Maj Czerwiec Lipiec Sierpień Wrzesień Październik Listopad Grudzień'); 3 | 4 | Date.first_day_of_week = 1 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Teraz", 9 | "Clear": "Wyczyść", 10 | "Today": "Dziś" 11 | } 12 | -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/sl.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = $w('Po To Sr Če Pe So Ne'); 2 | Date.months = $w('Januar Februar Marec April Maj Junij Julij Avgust September Oktober November December'); 3 | 4 | Date.first_day_of_week = 1; 5 | 6 | _translations = { 7 | "OK": "OK", 8 | "Now": "Trenutno", 9 | "Today": "Danes", 10 | "Clear": "Pobriši" 11 | } 12 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/functional_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | # ControllerTest generated by Typus, use it to test the extended admin functionality. 4 | class Admin::<%= resource %>ControllerTest < ActionController::TestCase 5 | 6 | # Replace this with your real tests. 7 | test "the truth" do 8 | assert true 9 | end 10 | 11 | end -------------------------------------------------------------------------------- /db/seeds.rb: -------------------------------------------------------------------------------- 1 | # This file should contain all the record creation needed to seed the database with its default values. 2 | # The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). 3 | # 4 | # Examples: 5 | # 6 | # cities = City.create([{ :name => 'Chicago' }, { :name => 'Copenhagen' }]) 7 | # Major.create(:name => 'Daley', :city => cities.first) 8 | -------------------------------------------------------------------------------- /db/migrate/017_create_materials.rb: -------------------------------------------------------------------------------- 1 | class CreateMaterials < ActiveRecord::Migration 2 | def self.up 3 | create_table :materials do |t| 4 | t.string :title 5 | t.string :original_title 6 | t.string :item_type 7 | t.integer :item_id 8 | 9 | t.timestamps 10 | end 11 | end 12 | 13 | def self.down 14 | drop_table :materials 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/format_euro_24hr.js: -------------------------------------------------------------------------------- 1 | // Formats date and time as "01 January 2000 17:00" 2 | Date.prototype.toFormattedString = function(include_time) 3 | { 4 | str = Date.padded2(this.getDate()) + " " + Date.months[this.getMonth()] + " " + this.getFullYear(); 5 | if (include_time) { str += " " + this.getHours() + ":" + this.getPaddedMinutes() } 6 | return str; 7 | } -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/format_euro_24hr_ymd.js: -------------------------------------------------------------------------------- 1 | // Formats date and time as "2000.01.20 17:00" 2 | Date.prototype.toFormattedString = function(include_time) 3 | { 4 | str = this.getFullYear() + "." + Date.padded2(this.getMonth()+1) + "." + Date.padded2(this.getDate()); 5 | if (include_time) { str += " " + this.getHours() + ":" + this.getPaddedMinutes() } 6 | return str; 7 | } -------------------------------------------------------------------------------- /vendor/plugins/typus/lib/extensions/array.rb: -------------------------------------------------------------------------------- 1 | class Array 2 | 3 | ## 4 | # Taken from http://snippets.dzone.com/posts/show/302 5 | # 6 | # >> %W{ a b c }.to_hash_with( %W{ 1 2 3 } ) 7 | # => {"a"=>"1", "b"=>"2", "c"=>"3"} 8 | # 9 | def to_hash_with(other) 10 | Hash[ *(0...self.size()).inject([]) { |arr, ix| arr.push(self[ix], other[ix]) } ] 11 | end 12 | 13 | end 14 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/helpers/_search.html.erb: -------------------------------------------------------------------------------- 1 |

    <%= _("Search") %>

    2 | 3 | <% form_tag url_for(:controller => params[:controller]), :method => :get do %> 4 |

    5 | <%= hidden_params.sort.join("\n") %> 6 | <% end %> 7 | 8 |

    <%= _("Search by") %> <%= search_by.downcase %>.

    9 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/view.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | <% content_for :sidebar do %> 4 | <%= typus_block :location => 'dashboard', :partial => 'sidebar' %> 5 | <% end %> 6 | 7 | 8 | 9 |

    <%= params[:controller].split('/').last.titleize.capitalize %>

    10 | 11 |

    Find me in app/views/<%= params[:controller] %>/index.html.erb

    12 | -------------------------------------------------------------------------------- /vendor/plugins/typus/config/locales/models/de_models.yml: -------------------------------------------------------------------------------- 1 | de: 2 | activerecord: 3 | models: 4 | typus_user: "Typus Benutzer" 5 | attributes: 6 | typus_user: 7 | email: 8 | first_name: "Vorname" 9 | last_name: "Nachname" 10 | password: "Passwort" 11 | password_confirmation: "Passwort Bestätigung" 12 | status: 13 | role: 14 | -------------------------------------------------------------------------------- /vendor/plugins/typus/config/locales/models/pt-BR_models.yml: -------------------------------------------------------------------------------- 1 | pt-BR: 2 | activerecord: 3 | models: 4 | typus_user: "Usuário do sistema" 5 | attributes: 6 | typus_user: 7 | email: 8 | first_name: "Primeiro nome" 9 | last_name: "Sobrenome" 10 | password: "Senha" 11 | password_confirmation: "Senha confirmação" 12 | status: 13 | role: 14 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "vendor/plugins/typus"] 2 | path = vendor/plugins/typus 3 | url = git://github.com/fesplugas/typus.git 4 | [submodule "vendor/plugins/calendar_date_select"] 5 | path = vendor/plugins/calendar_date_select 6 | url = git://github.com/timcharper/calendar_date_select.git 7 | [submodule "vendor/plugins/zodiac"] 8 | path = vendor/plugins/zodiac 9 | url = git://github.com/febuiles/zodiac.git 10 | -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/locale/ar.js: -------------------------------------------------------------------------------- 1 | Date.weekdays = ['سبت', 'أحد', 'إثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة']; 2 | Date.months = ['كانون ثاني', 'شباط', 'آذار', 'نيسان', 'أيار', 'حزيران', 'تموز', 'آب', 'أيلول', 'تشرين أول', 'تشرين ثاني', 'كانون أول']; 3 | Date.first_day_of_week = 6; 4 | 5 | _translations = { 6 | "OK": "نفذ", 7 | "Now": "الآن", 8 | "Today": "اليوم", 9 | "Clear": "إلغاء" 10 | } 11 | -------------------------------------------------------------------------------- /vendor/plugins/typus/config/locales/models/es_models.yml: -------------------------------------------------------------------------------- 1 | es: 2 | activerecord: 3 | models: 4 | typus_user: Usuario 5 | attributes: 6 | typus_user: 7 | email: "Correo electronico" 8 | first_name: "Nombre" 9 | last_name: "Apellidos" 10 | password: "Contraseña" 11 | password_confirmation: "Confirmar contraseña" 12 | status: "Estado" 13 | role: "Rol" 14 | -------------------------------------------------------------------------------- /vendor/plugins/typus/config/locales/models/fr_models.yml: -------------------------------------------------------------------------------- 1 | fr: 2 | activerecord: 3 | models: 4 | typus_user: "Utilisateur admin" 5 | attributes: 6 | typus_user: 7 | email: 8 | first_name: "Prénom" 9 | last_name: "Nom de famille" 10 | password: "Mot de passe" 11 | password_confirmation: "Confirmation du mot de passe" 12 | status: "État" 13 | role: 14 | -------------------------------------------------------------------------------- /db/migrate/004_create_events.rb: -------------------------------------------------------------------------------- 1 | class CreateEvents < ActiveRecord::Migration 2 | def self.up 3 | create_table :events do |t| 4 | t.string :title 5 | t.integer :category_id 6 | t.datetime :start_time 7 | t.datetime :end_time 8 | t.text :content 9 | t.integer :cost 10 | 11 | t.timestamps 12 | end 13 | end 14 | 15 | def self.down 16 | drop_table :events 17 | end 18 | end 19 | -------------------------------------------------------------------------------- /public/javascripts/events-search.js: -------------------------------------------------------------------------------- 1 | $(function(){ 2 | var root_el = $('#events_root_place'), child_el = $('#event_place_id'), url = '/events/cities'; 3 | applySelectChain(root_el, child_el, url, true); 4 | var root_el = $('#events_root_subject'), child_el = $('#event_subject_id'), url = '/events/subjects'; 5 | applySelectChain(root_el, child_el, url, true); 6 | 7 | $('#event_start_time, #event_end_time').datepicker(); 8 | }); 9 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/helpers/_preview.html.erb: -------------------------------------------------------------------------------- 1 | <% 2 | dom = item.to_dom(:suffix => "#{attribute}_preview" ) 3 | %> 4 | 5 | <% if has_file_preview %> 6 | 11 | <% end %> 12 | 13 | <%= content %> 14 | -------------------------------------------------------------------------------- /vendor/plugins/typus/config/locales/models/hu_models.yml: -------------------------------------------------------------------------------- 1 | hu: 2 | activerecord: 3 | models: 4 | typus_user: "Typus felhasználó" 5 | attributes: 6 | typus_user: 7 | email: 8 | first_name: "Vezetéknév" 9 | last_name: "Keresznév" 10 | password: "Jelszó" 11 | password_confirmation: "Jelszó megerősítés" 12 | status: "Státusz" 13 | role: "Jogosultsági szint" 14 | -------------------------------------------------------------------------------- /db/migrate/024_create_simple_captcha_data.rb: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2008 [Sur http://expressica.com] 2 | 3 | class CreateSimpleCaptchaData < ActiveRecord::Migration 4 | def self.up 5 | create_table :simple_captcha_data do |t| 6 | t.string :key, :limit => 40 7 | t.string :value, :limit => 6 8 | t.timestamps 9 | end 10 | end 11 | 12 | def self.down 13 | drop_table :simple_captcha_data 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/default/typus.yml: -------------------------------------------------------------------------------- 1 | TypusUser: 2 | fields: 3 | list: email, role, status 4 | form: first_name, last_name, role, email, password, password_confirmation 5 | options: 6 | selectors: role 7 | booleans: 8 | status: Active, Inactive 9 | filters: status, role 10 | search: first_name, last_name, email, role 11 | application: Typus 12 | description: System Users Administration -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/working/typus.yml: -------------------------------------------------------------------------------- 1 | TypusUser: 2 | fields: 3 | list: email, role, status 4 | form: first_name, last_name, role, email, password, password_confirmation 5 | options: 6 | selectors: role 7 | booleans: 8 | status: Active, Inactive 9 | filters: status, role 10 | search: first_name, last_name, email, role 11 | application: Typus 12 | description: System Users Administration -------------------------------------------------------------------------------- /config/typus/20100918104646_application.yml: -------------------------------------------------------------------------------- 1 | # Typus Models Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | Book: 6 | fields: 7 | default: file_file_name, file_content_type, file_file_size, file_updated_at 8 | list: file_file_name, file_file_size 9 | form: file, url 10 | order_by: 11 | relationships: material 12 | filters: 13 | search: 14 | application: sup 15 | 16 | -------------------------------------------------------------------------------- /config/initializers/inflections.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Add new inflection rules using the following format 4 | # (all these examples are active by default): 5 | # ActiveSupport::Inflector.inflections do |inflect| 6 | # inflect.plural /^(ox)$/i, '\1en' 7 | # inflect.singular /^(ox)en/i, '\1' 8 | # inflect.irregular 'person', 'people' 9 | # inflect.uncountable %w( fish sheep ) 10 | # end 11 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/models/typus_mailer.rb: -------------------------------------------------------------------------------- 1 | class TypusMailer < ActionMailer::Base 2 | 3 | self.template_root = "#{File.dirname(__FILE__)}/../views" 4 | 5 | def reset_password_link(user, url) 6 | subject "[#{Typus::Configuration.options[:app_name]}] #{_("Reset password")}" 7 | body :user => user, :url => url 8 | recipients user.email 9 | from Typus::Configuration.options[:email] 10 | end 11 | 12 | end 13 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/helpers/_header.html.erb: -------------------------------------------------------------------------------- 1 |

    2 | <% if ActionController::Routing::Routes.named_routes.routes.has_key?(:root) %> 3 | <%= link_to Typus::Configuration.options[:app_name], root_path, :title => _("View site") %> 4 | <% else %> 5 | <%= Typus::Configuration.options[:app_name] %> 6 | <% end %> 7 |

    8 | 9 | 14 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/typus/sign_up.html.erb: -------------------------------------------------------------------------------- 1 | <% form_for :typus_user, :url => { :action => :sign_up } do |form| %> 2 | 3 | 15 | 16 | <% end %> -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/USAGE: -------------------------------------------------------------------------------- 1 | Description: 2 | 3 | This generator will create an easy-to-use interface to allow trusted 4 | users edit structured content. (Admin scaffold generator) 5 | 6 | Examples: 7 | `./script/generate typus` 8 | 9 | creates needed files with `TypusUser` as the Typus user. 10 | 11 | `./script/generate typus -u User 12 | 13 | creates needed files with `User` as the Typus user. 14 | -------------------------------------------------------------------------------- /config/initializers/backtrace_silencers.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. 4 | # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } 5 | 6 | # You can also remove all the silencers if you're trying do debug a problem that might steem from framework code. 7 | # Rails.backtrace_cleaner.remove_silencers! -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/resources/_form.html.erb: -------------------------------------------------------------------------------- 1 | <% form_for @item, :url => options, :builder => ActionView::Helpers::FormBuilder, :html => { :multipart => true } do |form| %> 2 |
    3 |
      4 | <%= build_form(@fields, form) %> 5 |
    6 |
    7 |
    8 |
      9 |
    1. <%= submit_tag button , :class => 'commit' %>
    2. 10 |
    11 |
    12 | <% end %> -------------------------------------------------------------------------------- /config/typus/application.yml: -------------------------------------------------------------------------------- 1 | # Typus Models Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | Post: 6 | fields: 7 | list: title, date 8 | form: title, content, image_file_name, date 9 | options: 10 | tiny_mce: 11 | fields: content 12 | options: 13 | theme: simple 14 | order_by: 15 | relationships: 16 | filters: 17 | search: title 18 | application: sup 19 | 20 | -------------------------------------------------------------------------------- /vendor/plugins/simple_captcha/assets/migrate/create_simple_captcha_data.rb: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2008 [Sur http://expressica.com] 2 | 3 | class CreateSimpleCaptchaData < ActiveRecord::Migration 4 | def self.up 5 | create_table :simple_captcha_data do |t| 6 | t.string :key, :limit => 40 7 | t.string :value, :limit => 6 8 | t.timestamps 9 | end 10 | end 11 | 12 | def self.down 13 | drop_table :simple_captcha_data 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /config/locales/en.yml: -------------------------------------------------------------------------------- 1 | # Sample localization file for English. Add more files in this directory for other locales. 2 | # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. 3 | 4 | en: 5 | activerecord: 6 | models: 7 | post: Новости 8 | attributes: 9 | post: 10 | title: Заголовок 11 | content: Содержимое 12 | date: Дата 13 | image_file_name: Картинка 14 | hello: "Hello world" 15 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus_update_schema_to_01/templates/config/typus.yml: -------------------------------------------------------------------------------- 1 | TypusUser: 2 | fields: 3 | list: email, role, status 4 | form: first_name, last_name, role, email, password, password_confirmation 5 | options: 6 | selectors: role 7 | booleans: 8 | status: Active, Inactive 9 | filters: status, role 10 | search: first_name, last_name, email, role 11 | application: Typus 12 | description: System Users Administration -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/pictures.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 3 | title: Some picture 4 | picture_file_name: dog.jpg 5 | picture_content_type: image/jpeg 6 | picture_file_size: 175938 7 | picture_updated_at: <%= 3.days.ago.to_s(:db) %> 8 | 9 | second: 10 | id: 2 11 | title: Another picture 12 | picture_file_name: cat.jpg 13 | picture_content_type: image/jpeg 14 | picture_file_size: 198475 15 | picture_updated_at: <%= 2.days.ago.to_s(:db) %> 16 | -------------------------------------------------------------------------------- /public/stylesheets/jquery.tooltip.css: -------------------------------------------------------------------------------- 1 | #tooltip { 2 | position: absolute; 3 | z-index: 3000; 4 | border: 1px solid #111; 5 | background-color: #eee; 6 | padding: 5px; 7 | opacity: 0.85; 8 | } 9 | #tooltip h3, #tooltip div { margin: 0; } 10 | 11 | #tooltip.pretty { 12 | font-size: 11px; 13 | font-family: Arial; 14 | border: none; 15 | width: 210px; 16 | padding:20px; 17 | height: 135px; 18 | opacity: 0.8; 19 | background: url('/images/shadow.png'); 20 | } 21 | 22 | -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/generators/partial_renderer/templates/pagination.haml: -------------------------------------------------------------------------------- 1 | - if previous_page 2 | = link_to options[:previous_label], url_for_page(previous_page) 3 | - else 4 | = options[:previous_label] 5 | 6 | - for i in first_page.upto(last_page) 7 | - if i == current_page 8 | = i 9 | - else 10 | = link_to i, url_for_page(i) 11 | 12 | - if next_page 13 | = link_to options[:next_label], url_for_page(next_page) 14 | - else 15 | = options[:next_label] 16 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/helpers/_resources.html.erb: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | <% resources.each do |resource| %> 8 | 9 | 10 | 11 | 12 | <% end %> 13 | 14 |
    <%= _("Resources") %>
    <%= link_to _(resource.titleize.capitalize), :controller => "admin/#{resource.underscore}" %>
    15 | -------------------------------------------------------------------------------- /vendor/plugins/simple_captcha/tasks/simple_captcha_tasks.rake: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2008 [Sur http://expressica.com] 2 | 3 | require 'fileutils' 4 | 5 | namespace :simple_captcha do 6 | desc "Set up the plugin SimpleCaptcha for rails < 2.0" 7 | task :setup_old => :environment do 8 | SimpleCaptcha::SetupTasks.do_setup(:old) 9 | end 10 | 11 | desc "Set up the plugin SimpleCaptcha for rails >= 2.0" 12 | task :setup => :environment do 13 | SimpleCaptcha::SetupTasks.do_setup 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/app/models/post.rb: -------------------------------------------------------------------------------- 1 | class Post < ActiveRecord::Base 2 | 3 | validates_presence_of :title, :body 4 | has_and_belongs_to_many :categories 5 | has_many :assets, :as => :resource, :dependent => :destroy 6 | has_many :comments 7 | has_many :views 8 | belongs_to :favorite_comment, :class_name => 'Comment' 9 | 10 | STATUS = %w( pending published unpublished ) 11 | 12 | def self.typus 13 | 'plugin' 14 | end 15 | 16 | def asset_file_name 17 | end 18 | 19 | end -------------------------------------------------------------------------------- /vendor/plugins/typus/config/locales/models/ca_models.yml: -------------------------------------------------------------------------------- 1 | # Catalan translations for Typus 2 | # by Lleïr Borràs 3 | 4 | ca: 5 | activerecord: 6 | models: 7 | typus_user: Usuari 8 | attributes: 9 | typus_user: 10 | email: "Correu electrònic" 11 | first_name: "Nom" 12 | last_name: "Cognoms" 13 | password: "Contrasenya" 14 | password_confirmation: "Confirmar contrasenya" 15 | status: "Estat" 16 | role: "Rol" 17 | -------------------------------------------------------------------------------- /app/views/users/change_password.haml: -------------------------------------------------------------------------------- 1 | - form_for @current_user, :url => url_for, :html => { :method => :post } do |f| 2 | = f.error_messages :header_message => "Изменить пароль не удалось" 3 | - if @recover 4 | %input{ :type => :hidden, :value => @recover, :name => 'recover' } 5 | %dl 6 | %dt 7 | Пароль 8 | %dd 9 | = f.password_field :password 10 | %dl 11 | %dt 12 | Повторить пароль 13 | %dd 14 | = f.password_field :password_confirmation 15 | = f.submit "Изменить пароль" 16 | -------------------------------------------------------------------------------- /public/javascripts/admin/application.js: -------------------------------------------------------------------------------- 1 | // Place your application-specific JavaScript functions and classes for 2 | // Typus here. 3 | 4 | function externalLinks() { 5 | if (!document.getElementsByTagName) return; 6 | var anchors = document.getElementsByTagName("a"); 7 | for (var i=0; i { :action => :recover_password } do |form| %> 2 | 3 | 15 | 16 | <% end %> -------------------------------------------------------------------------------- /config/typus/typus.yml: -------------------------------------------------------------------------------- 1 | # Typus Models Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | TypusUser: 6 | fields: 7 | list: email, role, status 8 | form: first_name, last_name, role, email, password, password_confirmation, language 9 | options: 10 | selectors: role, language 11 | booleans: 12 | status: Active, Inactive 13 | filters: status, role 14 | search: first_name, last_name, email, role 15 | application: Typus 16 | description: System Users Administration 17 | -------------------------------------------------------------------------------- /vendor/plugins/typus/config/locales/models/ru_models.yml: -------------------------------------------------------------------------------- 1 | ru: 2 | activerecord: 3 | models: 4 | typus_user: 5 | one: "Системный пользователь" 6 | few: "Системных пользователей" 7 | many: "Системные пользователи" 8 | attributes: 9 | typus_user: 10 | email: 11 | first_name: "Имя" 12 | last_name: "Фамлия" 13 | password: "Пароль" 14 | password_confirmation: "Подтверждение пароля" 15 | status: "Статус" 16 | role: "Роль" 17 | language: "Язык" 18 | -------------------------------------------------------------------------------- /config/typus/20100428133850_application.yml: -------------------------------------------------------------------------------- 1 | # Typus Models Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | EventType: 6 | fields: 7 | list: title, position 8 | form: title 9 | order_by: position 10 | relationships: 11 | filters: 12 | search: title 13 | application: sup 14 | 15 | Subject: 16 | fields: 17 | list: title, parent 18 | form: title, parent 19 | order_by: 20 | relationships: children, parent 21 | filters: 22 | search: title 23 | application: sup 24 | 25 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/comments.yml: -------------------------------------------------------------------------------- 1 | first: 2 | id: 1 3 | name: John 4 | email: john@example.com 5 | body: Body of the comment 6 | post_id: 1 7 | 8 | second: 9 | id: 2 10 | name: Me 11 | email: me@example.com 12 | body: Body of the comment 13 | post_id: 1 14 | 15 | without_post_id: 16 | id: 3 17 | name: John 18 | email: john@example.com 19 | body: Body of the comment 20 | post_id: 21 | 22 | with_post_id: 23 | id: 4 24 | name: Me 25 | email: me@example.com 26 | body: Body of the comment 27 | post_id: 1 -------------------------------------------------------------------------------- /vendor/plugins/simple_captcha/assets/migrate/create_simple_captcha_data_less_than_2.0.rb: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2008 [Sur http://expressica.com] 2 | 3 | class CreateSimpleCaptchaData < ActiveRecord::Migration 4 | def self.up 5 | create_table :simple_captcha_data do |t| 6 | t.column :key, :string, :limit => 40 7 | t.column :value, :string, :limit => 6 8 | t.column :created_at, :datetime 9 | t.column :updated_at, :datetime 10 | end 11 | end 12 | 13 | def self.down 14 | drop_table :simple_captcha_data 15 | end 16 | end 17 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/helpers/admin/public_helper.rb: -------------------------------------------------------------------------------- 1 | module Admin 2 | 3 | module PublicHelper 4 | 5 | ## 6 | # Quick edit usage: 7 | # 8 | # <%= quick_edit(:message => "Edit this article", :path => "articles/edit/#{@article.id}") %> 9 | # 10 | # If user is logged in Typus, a link will appear on the top/right of 11 | # the pages where you insert this helper. 12 | # 13 | def quick_edit(*args) 14 | render "admin/helpers/quick_edit", :options => args.extract_options! 15 | end 16 | 17 | end 18 | 19 | end -------------------------------------------------------------------------------- /app/views/_pagination.haml: -------------------------------------------------------------------------------- 1 | #pager.text_66 2 | - if previous_page 3 | - link_to url_for_page(1), :title => "В начало" do 4 | << 5 | - link_to url_for_page(previous_page), :title => "Назад" do 6 | < 7 | 8 | - first_page.upto(last_page) do |i| 9 | - if i == current_page 10 | = i 11 | - else 12 | = link_to i, url_for_page(i) 13 | 14 | 15 | - if next_page 16 | - link_to url_for_page(next_page), :title => "Вперед" do 17 | > 18 | - link_to url_for_page(last_page), :title => "В конец" do 19 | >> 20 | -------------------------------------------------------------------------------- /db/migrate/020_add_attachments_file_to_book.rb: -------------------------------------------------------------------------------- 1 | class AddAttachmentsFileToBook < ActiveRecord::Migration 2 | def self.up 3 | add_column :books, :file_file_name, :string 4 | add_column :books, :file_content_type, :string 5 | add_column :books, :file_file_size, :integer 6 | add_column :books, :file_updated_at, :datetime 7 | end 8 | 9 | def self.down 10 | remove_column :books, :file_file_name 11 | remove_column :books, :file_content_type 12 | remove_column :books, :file_file_size 13 | remove_column :books, :file_updated_at 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /db/migrate/003_add_attachments_image_to_post.rb: -------------------------------------------------------------------------------- 1 | class AddAttachmentsImageToPost < ActiveRecord::Migration 2 | def self.up 3 | add_column :posts, :image_file_name, :string 4 | add_column :posts, :image_content_type, :string 5 | add_column :posts, :image_file_size, :integer 6 | add_column :posts, :image_updated_at, :datetime 7 | end 8 | 9 | def self.down 10 | remove_column :posts, :image_file_name 11 | remove_column :posts, :image_content_type 12 | remove_column :posts, :image_file_size 13 | remove_column :posts, :image_updated_at 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /vendor/plugins/typus/lib/extensions/object.rb: -------------------------------------------------------------------------------- 1 | class Object 2 | 3 | # Instead of having to translate strings and defining a default value: 4 | # 5 | # t("Hello World!", :default => 'Hello World!') 6 | # 7 | # We define this method to define the value only once: 8 | # 9 | # _("Hello World!") 10 | # 11 | # Note that interpolation still works ... 12 | # 13 | # _("Hello {{world}}!", :world => @world) 14 | # 15 | def _(msg, *args) 16 | options = args.extract_options! 17 | options[:default] = msg 18 | I18n.t(msg, options) 19 | end 20 | 21 | end -------------------------------------------------------------------------------- /db/migrate/005_add_attachments_image_to_event.rb: -------------------------------------------------------------------------------- 1 | class AddAttachmentsImageToEvent < ActiveRecord::Migration 2 | def self.up 3 | add_column :events, :image_file_name, :string 4 | add_column :events, :image_content_type, :string 5 | add_column :events, :image_file_size, :integer 6 | add_column :events, :image_updated_at, :datetime 7 | end 8 | 9 | def self.down 10 | remove_column :events, :image_file_name 11 | remove_column :events, :image_content_type 12 | remove_column :events, :image_file_size 13 | remove_column :events, :image_updated_at 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /db/migrate/012_add_patronymic_and_birth_date_to_typus_users.rb: -------------------------------------------------------------------------------- 1 | class AddPatronymicAndBirthDateToTypusUsers < ActiveRecord::Migration 2 | def self.up 3 | add_column :typus_users, :patronymic, :string 4 | add_column :typus_users, :birth_date, :date 5 | add_column :typus_users, :login, :string 6 | add_column :typus_users, :city_id, :integer 7 | end 8 | 9 | def self.down 10 | remove_column :typus_users, :birth_date 11 | remove_column :typus_users, :patronymic 12 | remove_column :typus_users, :login 13 | remove_column :typus_users, :city_id 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/generators/partial_renderer/templates/pagination.erb: -------------------------------------------------------------------------------- 1 | <% if previous_page %> 2 | <%= link_to options[:previous_label], url_for_page(previous_page) %> 3 | <% else %> 4 | <% = options[:previous_label] %> 5 | <% end %> 6 | 7 | <% for i in first_page.upto(last_page) %> 8 | <% if i == current_page %> 9 | <%= i %> 10 | <% else %> 11 | <%= link_to i, url_for_page(i) %> 12 | <% end %> 13 | <% end %> 14 | 15 | <% if next_page %> 16 | <%= link_to options[:next_label], url_for_page(next_page) %> 17 | <% else %> 18 | <%= options[:next_label] %> 19 | <% end %> 20 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/broken/application_roles.yml: -------------------------------------------------------------------------------- 1 | admin: 2 | Asset: create, read, update, delete 3 | Category: create, read, update, delete 4 | Comment: create, read, update, delete 5 | TypusUser: create, read, update, delete 6 | Page: create, read, update, delete 7 | Post: create, read, update, delete 8 | Status: index 9 | Order: 10 | 11 | editor: 12 | Category: create, read, update 13 | Comment: read, update, delete 14 | Post: create, read, update 15 | TypusUser: read, update 16 | 17 | designer: 18 | Category: read, update 19 | Comment: read 20 | Post: read 21 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/functional/admin/master_controller_posts_toggle_test.rb: -------------------------------------------------------------------------------- 1 | require 'test/helper' 2 | 3 | class Admin::PostsControllerTest < ActionController::TestCase 4 | 5 | def test_should_toggle_an_item 6 | 7 | @request.env['HTTP_REFERER'] = '/admin/posts' 8 | 9 | post = posts(:unpublished) 10 | get :toggle, { :id => post.id, :field => 'status' } 11 | 12 | assert_response :redirect 13 | assert_redirected_to @request.env['HTTP_REFERER'] 14 | assert_equal "Post status changed.", flash[:success] 15 | assert Post.find(post.id).status 16 | 17 | end 18 | 19 | end -------------------------------------------------------------------------------- /app/models/notifier.rb: -------------------------------------------------------------------------------- 1 | class Notifier < ActionMailer::Base 2 | def register_notification(recipient) 3 | recipients recipient.email_address_with_name 4 | from "i@soulup.net" 5 | subject "Вы успешно зарегистрировались на сайте soulup.net" 6 | body :account => recipient 7 | content_type "text/html" 8 | end 9 | 10 | def activation_notification(recipient) 11 | recipients recipient.email_address_with_name 12 | from "i@soulup.net" 13 | subject "Активация аккаунта на сайте soulup.net" 14 | body :account => recipient 15 | content_type "text/html" 16 | end 17 | end 18 | -------------------------------------------------------------------------------- /config/typus/20100428093006_application.yml: -------------------------------------------------------------------------------- 1 | # Typus Models Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | Event: 6 | fields: 7 | list: title, start_time, end_time, cost 8 | form: title, category_id, start_time, end_time, content, cost, image_file_name 9 | order_by: 10 | relationships: place 11 | filters: 12 | search: title 13 | application: sup 14 | 15 | Place: 16 | fields: 17 | list: xxx, title, parent 18 | form: title, parent 19 | order_by: 20 | relationships: 21 | filters: 22 | search: 23 | application: sup 24 | 25 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/helpers/_pagination.html.erb: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /vendor/plugins/simple_captcha/lib/simple_captcha_controller.rb: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2008 [Sur http://expressica.com] 2 | 3 | class SimpleCaptchaController < ActionController::Base 4 | 5 | include SimpleCaptcha::ImageHelpers 6 | 7 | def simple_captcha #:nodoc 8 | send_data( 9 | generate_simple_captcha_image( 10 | :image_style => params[:image_style], 11 | :distortion => params[:distortion], 12 | :simple_captcha_key => params[:simple_captcha_key]), 13 | :type => 'image/jpeg', 14 | :disposition => 'inline', 15 | :filename => 'simple_captcha.jpg') 16 | end 17 | 18 | end 19 | -------------------------------------------------------------------------------- /config/database.yml: -------------------------------------------------------------------------------- 1 | # SQLite version 3.x 2 | # gem install sqlite3-ruby (not necessary on OS X Leopard) 3 | development: 4 | adapter: sqlite3 5 | database: db/development.sqlite3 6 | pool: 5 7 | timeout: 5000 8 | 9 | # Warning: The database defined as "test" will be erased and 10 | # re-generated from your development database when you run "rake". 11 | # Do not set this db to the same as development or production. 12 | test: 13 | adapter: sqlite3 14 | database: db/test.sqlite3 15 | pool: 5 16 | timeout: 5000 17 | 18 | production: 19 | adapter: sqlite3 20 | database: db/production.sqlite3 21 | pool: 5 22 | timeout: 5000 23 | -------------------------------------------------------------------------------- /db/migrate/016_add_attachments_avatar_to_typus_user.rb: -------------------------------------------------------------------------------- 1 | class AddAttachmentsAvatarToTypusUser < ActiveRecord::Migration 2 | def self.up 3 | add_column :typus_users, :avatar_file_name, :string 4 | add_column :typus_users, :avatar_content_type, :string 5 | add_column :typus_users, :avatar_file_size, :integer 6 | add_column :typus_users, :avatar_updated_at, :datetime 7 | end 8 | 9 | def self.down 10 | remove_column :typus_users, :avatar_file_name 11 | remove_column :typus_users, :avatar_content_type 12 | remove_column :typus_users, :avatar_file_size 13 | remove_column :typus_users, :avatar_updated_at 14 | end 15 | end 16 | -------------------------------------------------------------------------------- /vendor/plugins/simple_captcha/lib/simple_captcha_data.rb: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2008 [Sur http://expressica.com] 2 | 3 | class SimpleCaptchaData < ActiveRecord::Base 4 | set_table_name "simple_captcha_data" 5 | 6 | class << self 7 | def get_data(key) 8 | data = find_by_key(key) || new(:key => key) 9 | end 10 | 11 | def remove_data(key) 12 | clear_old_data 13 | data = find_by_key(key) 14 | data.destroy if data 15 | end 16 | 17 | def clear_old_data(time = 1.hour.ago) 18 | return unless Time === time 19 | destroy_all("updated_at < '#{time.to_s(:db)}'") 20 | end 21 | end 22 | 23 | end 24 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus_update_schema_to_01/typus_update_schema_to_01_generator.rb: -------------------------------------------------------------------------------- 1 | class TypusUpdateSchemaTo01Generator < Rails::Generator::Base 2 | 3 | def manifest 4 | 5 | record do |m| 6 | 7 | config_folder = Typus::Configuration.options[:config_folder] 8 | Dir["#{Typus.root}/generators/typus_update_schema_to_01/templates/config/*"].each do |f| 9 | base = File.basename(f) 10 | m.template "config/#{base}", "#{config_folder}/#{base}" 11 | end 12 | 13 | m.migration_template 'migration.rb', 'db/migrate', { :migration_file_name => 'update_typus_schema_to_01' } 14 | 15 | end 16 | 17 | end 18 | 19 | end -------------------------------------------------------------------------------- /vendor/plugins/acts_as_tree/Rakefile: -------------------------------------------------------------------------------- 1 | require 'rake' 2 | require 'rake/testtask' 3 | require 'rake/rdoctask' 4 | 5 | desc 'Default: run unit tests.' 6 | task :default => :test 7 | 8 | desc 'Test acts_as_tree plugin.' 9 | Rake::TestTask.new(:test) do |t| 10 | t.libs << 'lib' 11 | t.pattern = 'test/**/*_test.rb' 12 | t.verbose = true 13 | end 14 | 15 | desc 'Generate documentation for acts_as_tree plugin.' 16 | Rake::RDocTask.new(:rdoc) do |rdoc| 17 | rdoc.rdoc_dir = 'rdoc' 18 | rdoc.title = 'acts_as_tree' 19 | rdoc.options << '--line-numbers' << '--inline-source' 20 | rdoc.rdoc_files.include('README') 21 | rdoc.rdoc_files.include('lib/**/*.rb') 22 | end 23 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/templates/_file.html.erb: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | if @item.send(attribute).exists? 4 | message = _("Remove {{attribute}}", :attribute => @item.class.human_attribute_name(attribute).downcase) 5 | label_text << <<-HTML 6 | #{link_to message, { :action => 'detach', 7 | :id => @item, 8 | :attachment => attribute }, 9 | :confirm => _("Are you sure?")} 10 | HTML 11 | end 12 | 13 | %> 14 | 15 |
  • 16 | <%= form.label attribute, label_text %> 17 | <%= form.file_field attribute, options %> 18 | <%= typus_preview(@item, attribute) %> 19 |
  • 20 | -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/config/typus/typus.yml: -------------------------------------------------------------------------------- 1 | # Typus Models Configuration File 2 | # 3 | # Use the README file as a reference to customize settings. 4 | 5 | <%= options[:user_class_name] %>: 6 | fields: 7 | default: first_name, last_name, email, role, status 8 | list: email, role, status 9 | form: first_name, last_name, role, email, password, password_confirmation, language 10 | options: 11 | selectors: role, language 12 | booleans: 13 | status: Active, Inactive 14 | filters: status, role 15 | search: first_name, last_name, email, role 16 | application: Admin Panel 17 | description: Admin Panel Users Administration 18 | -------------------------------------------------------------------------------- /db/migrate/001_create_typus_users.rb: -------------------------------------------------------------------------------- 1 | class CreateTypusUsers < ActiveRecord::Migration 2 | 3 | def self.up 4 | create_table :typus_users do |t| 5 | t.string :first_name, :default => "", :null => false 6 | t.string :last_name, :default => "", :null => false 7 | t.string :role, :null => false 8 | t.string :email, :null => false 9 | t.boolean :status, :default => false 10 | t.string :token, :null => false 11 | t.string :salt, :null => false 12 | t.string :crypted_password, :null => false 13 | t.string :preferences 14 | t.timestamps 15 | end 16 | end 17 | 18 | def self.down 19 | drop_table :typus_users 20 | end 21 | 22 | end 23 | -------------------------------------------------------------------------------- /test/unit/post_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class PostTest < ActiveSupport::TestCase 4 | context "Post::list" do 5 | should "return 5 items" do 6 | 20.times do 7 | Post.make 8 | end 9 | 10 | assert_equal Post.list.size, 5 11 | end 12 | 13 | should "order by id DESC" do 14 | 3.times do |i| 15 | Post.make :date => Date.today + (3 - i).hours 16 | end 17 | 18 | assert_equal Post.list.first, Post.last(:order => 'date') 19 | end 20 | 21 | should "return correct data for pages" do 22 | 20.times do 23 | Post.make 24 | end 25 | 26 | assert_not_equal Post.list(1), Post.list(2) 27 | end 28 | end 29 | end 30 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/templates/_string.html.erb: -------------------------------------------------------------------------------- 1 | <% 2 | 3 | # Read only fields. 4 | if @resource[:class].typus_field_options_for(:read_only).to_s.include?(attribute) 5 | custom = { :readonly => 'readonly' } 6 | label_text << " #{_("Read only")}" 7 | end 8 | 9 | # Auto generated fields. 10 | if @resource[:class].typus_field_options_for(:auto_generated).include?(attribute) 11 | custom = { :auto_generated => true } 12 | label_text << " #{_("Auto generated")}" 13 | end 14 | 15 | options.merge!(custom) if custom 16 | 17 | %> 18 | 19 |
  • 20 | <%= form.label attribute, label_text %> 21 | <%= form.text_field attribute, options %> 22 |
  • -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/Rakefile: -------------------------------------------------------------------------------- 1 | require 'rake' 2 | require 'rake/testtask' 3 | require 'rake/rdoctask' 4 | 5 | desc 'Default: run unit tests.' 6 | task :default => :test 7 | 8 | desc 'Test the partial_renderer plugin.' 9 | Rake::TestTask.new(:test) do |t| 10 | t.libs << 'lib' 11 | t.libs << 'test' 12 | t.pattern = 'test/**/*_test.rb' 13 | t.verbose = true 14 | end 15 | 16 | desc 'Generate documentation for the partial_renderer plugin.' 17 | Rake::RDocTask.new(:rdoc) do |rdoc| 18 | rdoc.rdoc_dir = 'rdoc' 19 | rdoc.title = 'PartialRenderer' 20 | rdoc.options << '--line-numbers' << '--inline-source' 21 | rdoc.rdoc_files.include('README') 22 | rdoc.rdoc_files.include('lib/**/*.rb') 23 | end 24 | -------------------------------------------------------------------------------- /vendor/plugins/acts_as_list/README: -------------------------------------------------------------------------------- 1 | ActsAsList 2 | ========== 3 | 4 | This acts_as extension provides the capabilities for sorting and reordering a number of objects in a list. The class that has this specified needs to have a +position+ column defined as an integer on the mapped database table. 5 | 6 | 7 | Example 8 | ======= 9 | 10 | class TodoList < ActiveRecord::Base 11 | has_many :todo_items, :order => "position" 12 | end 13 | 14 | class TodoItem < ActiveRecord::Base 15 | belongs_to :todo_list 16 | acts_as_list :scope => :todo_list 17 | end 18 | 19 | todo_list.first.move_to_bottom 20 | todo_list.last.move_higher 21 | 22 | 23 | Copyright (c) 2007 David Heinemeier Hansson, released under the MIT license -------------------------------------------------------------------------------- /app/views/events/show.haml: -------------------------------------------------------------------------------- 1 | %table.section{ :cellspacing => "0", :width => "100%", :cellpadding => "0" } 2 | %tbody 3 | %tr 4 | %td.tl 5 | %td.t 6 | %td.tr 7 | %tr 8 | %td.l 9 | %td 10 | %p.niki 11 | %h1.zagolov= @item.title 12 | %td.r 13 | %tr 14 | %td.bl 15 | %td.b 16 | %td.br 17 | %br 18 | %table.section{ :cellspacing => "0", :width => "100%", :cellpadding => "0" } 19 | %tbody 20 | %tr 21 | %td.tl 22 | %td.t 23 | %td.tr 24 | %tr 25 | %td.l 26 | %td 27 | %p.niki 28 | .text_3 29 | = simple_format @item.content 30 | %td.r 31 | %tr 32 | %td.bl 33 | %td.b 34 | %td.br 35 | -------------------------------------------------------------------------------- /app/views/news/show.haml: -------------------------------------------------------------------------------- 1 | %table.section{ :cellspacing => "0", :width => "100%", :cellpadding => "0" } 2 | %tbody 3 | %tr 4 | %td.tl 5 | %td.t 6 | %td.tr 7 | %tr 8 | %td.l 9 | %td 10 | %p.niki 11 | %h1.zagolov= @item.title 12 | %td.r 13 | %tr 14 | %td.bl 15 | %td.b 16 | %td.br 17 | %br 18 | %table.section{ :cellspacing => "0", :width => "100%", :cellpadding => "0" } 19 | %tbody 20 | %tr 21 | %td.tl 22 | %td.t 23 | %td.tr 24 | %tr 25 | %td.l 26 | %td 27 | %p.niki 28 | .text_3 29 | = simple_format @item.content 30 | %td.r 31 | %tr 32 | %td.bl 33 | %td.b 34 | %td.br 35 | -------------------------------------------------------------------------------- /vendor/plugins/simple_captcha/Rakefile: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2008 [Sur http://expressica.com] 2 | 3 | require 'rake' 4 | require 'rake/testtask' 5 | require 'rake/rdoctask' 6 | 7 | desc 'Default: run unit tests.' 8 | task :default => :test 9 | 10 | desc 'Test the simple_captcha plugin.' 11 | Rake::TestTask.new(:test) do |t| 12 | t.libs << 'lib' 13 | t.pattern = 'test/**/*_test.rb' 14 | t.verbose = true 15 | end 16 | 17 | desc 'Generate documentation for the simple_captcha plugin.' 18 | Rake::RDocTask.new(:rdoc) do |rdoc| 19 | rdoc.rdoc_dir = 'rdoc' 20 | rdoc.title = 'SimpleCaptcha' 21 | rdoc.options << '--line-numbers' << '--inline-source' 22 | rdoc.rdoc_files.include('README') 23 | rdoc.rdoc_files.include('lib/**/*.rb') 24 | end 25 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/typus/sign_in.html.erb: -------------------------------------------------------------------------------- 1 | <% form_for :typus_user, :url => { :action => 'sign_in' } do |form| %> 2 | 3 | 20 | 21 | <% end %> -------------------------------------------------------------------------------- /vendor/plugins/typus/lib/extensions/string.rb: -------------------------------------------------------------------------------- 1 | class String 2 | 3 | def extract_controller(admin = 'admin') 4 | split('/').delete_if { |i| i.eql?(admin) } 5 | end 6 | 7 | def extract_resource 8 | extract_controller.join('/') 9 | end 10 | 11 | def extract_class 12 | extract_controller.map { |i| i.capitalize }.join('::').classify.constantize 13 | end 14 | 15 | def extract_human_name 16 | extract_class.typus_human_name.gsub('/', ' ') 17 | end 18 | 19 | def typus_actions_on(filter) 20 | Typus::Configuration.config[self]['actions'][filter.to_s].split(', ') rescue [] 21 | end 22 | 23 | def typus_defaults_for(filter) 24 | Typus::Configuration.config[self][filter.to_s].split(', ') rescue [] 25 | end 26 | 27 | end -------------------------------------------------------------------------------- /vendor/plugins/typus/test/config/working/application_roles.yml: -------------------------------------------------------------------------------- 1 | admin: 2 | Asset: create, read, update, delete 3 | Category: create, read, update, delete 4 | Comment: create, read, update, delete 5 | Delayed::Task: all 6 | Git: index, commit 7 | Order: 8 | Page: create, read, update, delete, rebuild, rebuild_all 9 | Post: create, read, update, delete 10 | Status: index 11 | WatchDog: index, cleanup 12 | View: create, read, update, delete 13 | 14 | editor: 15 | Category: create, read, update 16 | Comment: read, update, delete 17 | Git: index 18 | Post: create, read, update 19 | TypusUser: read, update 20 | View: create, read, update, delete 21 | 22 | designer: 23 | Category: read, update 24 | Comment: read 25 | Post: read, update -------------------------------------------------------------------------------- /vendor/plugins/typus/generators/typus/templates/migration.rb: -------------------------------------------------------------------------------- 1 | class <%= migration_name %> < ActiveRecord::Migration 2 | 3 | def self.up 4 | create_table :<%= typus_users_table_name %> do |t| 5 | t.string :first_name, :default => "", :null => false 6 | t.string :last_name, :default => "", :null => false 7 | t.string :role, :null => false 8 | t.string :email, :null => false 9 | t.boolean :status, :default => false 10 | t.string :token, :null => false 11 | t.string :salt, :null => false 12 | t.string :crypted_password, :null => false 13 | t.string :preferences 14 | t.timestamps 15 | end 16 | end 17 | 18 | def self.down 19 | drop_table :<%= typus_users_table_name %> 20 | end 21 | 22 | end 23 | -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/generators/partial_renderer/USAGE: -------------------------------------------------------------------------------- 1 | Description: 2 | Partial renderer generates view partial for use with WillPaginate::PartialRenderer class. 3 | Partial can be in haml(default) or erb format. 4 | You can specify the name of partial, default is 'pagination' ('app/views/_pagination.haml') 5 | 6 | Example: 7 | ./script/generate partial_renderer go 8 | 9 | This will create: 10 | app/views/_partial.haml 11 | 12 | With partial name arg 13 | ./script/generate partial_renderer pages 14 | 15 | This will create: 16 | app/views/_pages.haml 17 | 18 | With partial name and format args 19 | ./script/generate partial_renderer pages --format=erb 20 | 21 | This will create: 22 | app/views/_pages.erb 23 | -------------------------------------------------------------------------------- /db/migrate/015_add_additional_columns_to_typus_users.rb: -------------------------------------------------------------------------------- 1 | class AddAdditionalColumnsToTypusUsers < ActiveRecord::Migration 2 | def self.up 3 | add_column :typus_users, :sex, :boolean 4 | add_column :typus_users, :ways, :string 5 | add_column :typus_users, :phone_number, :string 6 | add_column :typus_users, :place_id, :integer 7 | add_column :typus_users, :icq, :string 8 | add_column :typus_users, :site, :string 9 | add_column :typus_users, :about, :text 10 | end 11 | 12 | def self.down 13 | remove_column :typus_users, :sex 14 | remove_column :typus_users, :ways 15 | remove_column :typus_users, :phone_number 16 | remove_column :typus_users, :place_id 17 | remove_column :typus_users, :site 18 | remove_column :typus_users, :about 19 | end 20 | end 21 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-zh-TW.js: -------------------------------------------------------------------------------- 1 | /* Chinese initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Ressol (ressol@gmail.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['zh-TW'] = { 5 | closeText: '關閉', 6 | prevText: '<上月', 7 | nextText: '下月>', 8 | currentText: '今天', 9 | monthNames: ['一月','二月','三月','四月','五月','六月', 10 | '七月','八月','九月','十月','十一月','十二月'], 11 | monthNamesShort: ['一','二','三','四','五','六', 12 | '七','八','九','十','十一','十二'], 13 | dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], 14 | dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], 15 | dayNamesMin: ['日','一','二','三','四','五','六'], 16 | dateFormat: 'yy/mm/dd', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['zh-TW']); 19 | }); 20 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-zh-CN.js: -------------------------------------------------------------------------------- 1 | /* Chinese initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Cloudream (cloudream@gmail.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['zh-CN'] = { 5 | closeText: '关闭', 6 | prevText: '<上月', 7 | nextText: '下月>', 8 | currentText: '今天', 9 | monthNames: ['一月','二月','三月','四月','五月','六月', 10 | '七月','八月','九月','十月','十一月','十二月'], 11 | monthNamesShort: ['一','二','三','四','五','六', 12 | '七','八','九','十','十一','十二'], 13 | dayNames: ['星期日','星期一','星期二','星期三','星期四','星期五','星期六'], 14 | dayNamesShort: ['周日','周一','周二','周三','周四','周五','周六'], 15 | dayNamesMin: ['日','一','二','三','四','五','六'], 16 | dateFormat: 'yy-mm-dd', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['zh-CN']); 19 | }); 20 | -------------------------------------------------------------------------------- /config/environments/development.rb: -------------------------------------------------------------------------------- 1 | # Settings specified here will take precedence over those in config/environment.rb 2 | 3 | # In the development environment your application's code is reloaded on 4 | # every request. This slows down response time but is perfect for development 5 | # since you don't have to restart the webserver when you make code changes. 6 | config.cache_classes = false 7 | 8 | # Log error messages when you accidentally call methods on nil. 9 | config.whiny_nils = true 10 | 11 | # Show full error reports and disable caching 12 | config.action_controller.consider_all_requests_local = true 13 | config.action_view.debug_rjs = true 14 | config.action_controller.perform_caching = false 15 | 16 | # Don't care if the mailer can't send 17 | config.action_mailer.raise_delivery_errors = false -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-ja.js: -------------------------------------------------------------------------------- 1 | /* Japanese initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Kentaro SATO (kentaro@ranvis.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['ja'] = { 5 | closeText: '閉じる', 6 | prevText: '<前', 7 | nextText: '次>', 8 | currentText: '今日', 9 | monthNames: ['1月','2月','3月','4月','5月','6月', 10 | '7月','8月','9月','10月','11月','12月'], 11 | monthNamesShort: ['1月','2月','3月','4月','5月','6月', 12 | '7月','8月','9月','10月','11月','12月'], 13 | dayNames: ['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'], 14 | dayNamesShort: ['日','月','火','水','木','金','土'], 15 | dayNamesMin: ['日','月','火','水','木','金','土'], 16 | dateFormat: 'yy/mm/dd', firstDay: 0, 17 | isRTL: false, 18 | showMonthAfterYear: true}; 19 | $.datepicker.setDefaults($.datepicker.regional['ja']); 20 | }); -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/resources/index.html.erb: -------------------------------------------------------------------------------- 1 | <% content_for :sidebar do %> 2 | <%= typus_block :location => @resource[:self], :partial => 'sidebar' %> 3 | <%= actions %> 4 | <%= export %> 5 | <%= search %> 6 | <%= filters %> 7 | <% end %> 8 | 9 |

    <%= @resource[:pluralized] %> <%= remove_filter_link %>

    10 | 11 | <%= typus_block :location => @resource[:self], :partial => 'index' %> 12 | 13 | <% unless @items.count.zero? -%> 14 | <%= build_list(@resource[:class], @fields, @items) %> 15 | <%= pagination %> 16 | <% else %> 17 |
    18 | <% message = @resource[:class].count.zero? ? "There are no {{records}}." : "There are no {{records}} under this filter." %> 19 |

    <%= _(message, :records => @resource[:human_name].pluralize.downcase) %>

    20 |
    21 | <% end %> 22 | -------------------------------------------------------------------------------- /vendor/plugins/typus/lib/tasks/defaults.rake: -------------------------------------------------------------------------------- 1 | namespace :typus do 2 | 3 | desc "Install acts_as_list, acts_as_tree and paperclip." 4 | task :misc do 5 | 6 | plugins = [ "git://github.com/thoughtbot/paperclip.git", 7 | "git://github.com/rails/acts_as_list.git", 8 | "git://github.com/rails/acts_as_tree.git" ] 9 | 10 | # plugins << "git://github.com/NZKoz/rails_xss.git" if Rails.version.eql?("2.3.6") 11 | 12 | system "script/plugin install #{plugins.join(" ")} --force" 13 | 14 | end 15 | 16 | desc "List current roles." 17 | task :roles => :environment do 18 | Typus::Configuration.roles.each do |role| 19 | puts "\n#{role.first.capitalize} role has access to:" 20 | role.last.each { |key, value| puts "- #{key}: #{value}" } 21 | end 22 | puts "\n" 23 | end 24 | 25 | end -------------------------------------------------------------------------------- /vendor/plugins/typus/typus.gemspec: -------------------------------------------------------------------------------- 1 | # -*- encoding: utf-8 -*- 2 | lib = File.expand_path('../lib/', __FILE__) 3 | $:.unshift lib unless $:.include?(lib) 4 | 5 | require "typus/version" 6 | 7 | Gem::Specification.new do |s| 8 | 9 | s.name = "typus" 10 | s.version = Typus::VERSION 11 | s.platform = Gem::Platform::RUBY 12 | s.authors = ["Francesc Esplugas"] 13 | s.email = ["francesc@intraducibles.com"] 14 | s.homepage = "http://labs.intraducibles.com/projects/typus" 15 | s.summary = "Effortless backend interface for Ruby on Rails applications. (Admin scaffold generator.)" 16 | s.description = "Awesone admin scaffold generator for Ruby on Rails applications." 17 | 18 | s.required_rubygems_version = ">= 1.3.6" 19 | s.rubyforge_project = "typus" 20 | 21 | s.files = Dir.glob("**/*") 22 | s.require_path = "lib" 23 | 24 | end 25 | -------------------------------------------------------------------------------- /vendor/plugins/simple_captcha/lib/simple_captcha_config.rb: -------------------------------------------------------------------------------- 1 | # Copyright (c) 2008 [Sur http://expressica.com] 2 | 3 | require 'digest/sha1' 4 | 5 | module SimpleCaptcha #:nodoc 6 | module ConfigTasks #:nodoc 7 | 8 | private 9 | 10 | def simple_captcha_image_path #:nodoc 11 | "#{RAILS_ROOT}/vendor/plugins/simple_captcha/assets/images/simple_captcha/" 12 | end 13 | 14 | def simple_captcha_key #:nodoc 15 | session[:simple_captcha] ||= Digest::SHA1.hexdigest(Time.now.to_s + session.session_id.to_s) 16 | end 17 | 18 | def simple_captcha_value(key = simple_captcha_key) #:nodoc 19 | SimpleCaptchaData.get_data(key).value rescue nil 20 | end 21 | 22 | def simple_captcha_passed!(key = simple_captcha_key) #:nodoc 23 | SimpleCaptchaData.remove_data(key) 24 | end 25 | end 26 | end 27 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/resources/new.html.erb: -------------------------------------------------------------------------------- 1 | <% content_for :sidebar do %> 2 | <%= typus_block :location => @resource[:self], :partial => 'sidebar' %> 3 | <%= actions %> 4 | <% end %> 5 | 6 | <%= display_link_to_previous if params[:back_to] %> 7 | 8 |

    <%= link_to @resource[:pluralized], :action => 'index' %> › 9 | <%= _("New") %>

    10 | 11 | <%= typus_block :location => @resource[:self], :partial => 'new' %> 12 | 13 | <% 14 | options = { :action => 'create', 15 | :back_to => params[:back_to], 16 | :selected => params[:selected], 17 | :resource => params[:resource], 18 | :resource_id => params[:resource_id] } 19 | button = _("Create {{resource}}", :resource => @resource[:human_name]) 20 | %> 21 | 22 | <%= render "form", :options => options, :button => button %> 23 | -------------------------------------------------------------------------------- /test/functional/news_controller_test.rb: -------------------------------------------------------------------------------- 1 | require 'test_helper' 2 | 3 | class NewsControllerTest < ActionController::TestCase 4 | # Replace this with your real tests. 5 | context "index action" do 6 | should "display truncated and stripped from tags description text" do 7 | Post.delete_all 8 | @text = "#{Faker::Lorem::sentence}#{Faker::Lorem::sentence}" 9 | @post = Post.make :content => @text 10 | get :index 11 | 12 | @view = @response.template 13 | 14 | assert_select '.section td.text_3', 1 do |t| 15 | assert t.first.children.first.to_s.match @view.truncate @view.strip_tags(@text), :length => 200 16 | end 17 | end 18 | end 19 | 20 | context "x" do 21 | should "y" do 22 | get :index 23 | 24 | assert_equal @response.template.t("asdf"), "asdf" 25 | end 26 | end 27 | end 28 | -------------------------------------------------------------------------------- /config/initializers/session_store.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # Your secret key for verifying cookie session data integrity. 4 | # If you change this key, all old sessions will become invalid! 5 | # Make sure the secret is at least 30 characters and all random, 6 | # no regular words or you'll be exposed to dictionary attacks. 7 | ActionController::Base.session = { 8 | :key => '_sup_session', 9 | :secret => '76dc6b7c22b3f09efc13f6cdcb64f751c3dd41ab64fd549650fa2b3a90a242e0adab70acbd3313c7e9f19dc2f034dd4ce701db32f08bda772680a68ba6dd6d29' 10 | } 11 | 12 | # Use the database for sessions instead of the cookie-based default, 13 | # which shouldn't be used to store highly confidential information 14 | # (create the session table with "rake db:sessions:create") 15 | # ActionController::Base.session_store = :active_record_store 16 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-he.js: -------------------------------------------------------------------------------- 1 | /* Hebrew initialisation for the UI Datepicker extension. */ 2 | /* Written by Amir Hardon (ahardon at gmail dot com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['he'] = { 5 | closeText: 'סגור', 6 | prevText: '<הקודם', 7 | nextText: 'הבא>', 8 | currentText: 'היום', 9 | monthNames: ['ינואר','פברואר','מרץ','אפריל','מאי','יוני', 10 | 'יולי','אוגוסט','ספטמבר','אוקטובר','נובמבר','דצמבר'], 11 | monthNamesShort: ['1','2','3','4','5','6', 12 | '7','8','9','10','11','12'], 13 | dayNames: ['ראשון','שני','שלישי','רביעי','חמישי','שישי','שבת'], 14 | dayNamesShort: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], 15 | dayNamesMin: ['א\'','ב\'','ג\'','ד\'','ה\'','ו\'','שבת'], 16 | dateFormat: 'dd/mm/yy', firstDay: 0, 17 | isRTL: true}; 18 | $.datepicker.setDefaults($.datepicker.regional['he']); 19 | }); 20 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-sr.js: -------------------------------------------------------------------------------- 1 | /* Serbian i18n for the jQuery UI date picker plugin. */ 2 | /* Written by Dejan Dimić. */ 3 | jQuery(function($){ 4 | $.datepicker.regional['sr'] = { 5 | closeText: 'Затвори', 6 | prevText: '<', 7 | nextText: '>', 8 | currentText: 'Данас', 9 | monthNames: ['Јануар','Фебруар','Март','Април','Мај','Јун', 10 | 'Јул','Август','Септембар','Октобар','Новембар','Децембар'], 11 | monthNamesShort: ['Јан','Феб','Мар','Апр','Мај','Јун', 12 | 'Јул','Авг','Сеп','Окт','Нов','Дец'], 13 | dayNames: ['Недеља','Понедељак','Уторак','Среда','Четвртак','Петак','Субота'], 14 | dayNamesShort: ['Нед','Пон','Уто','Сре','Чет','Пет','Суб'], 15 | dayNamesMin: ['Не','По','Ут','Ср','Че','Пе','Су'], 16 | dateFormat: 'dd/mm/yy', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['sr']); 19 | }); 20 | -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/README: -------------------------------------------------------------------------------- 1 | PartialRenderer 2 | =============== 3 | 4 | PartialRenderer let's you to use view partials for displaying pagination. 5 | Default generated partial's look is similar to those LinkRenderer renders 6 | 7 | 8 | To install use command 9 | ./script/plugin install git://github.com/html/partial_renderer.git 10 | 11 | or 12 | 13 | git submodule add git://github.com/html/partial_renderer.git vendor/plugins/partial_renderer/ 14 | 15 | 16 | and generate simple view partial 17 | 18 | ./script/generate partial_renderer go 19 | 20 | Example 21 | ======= 22 | 23 | ./script/generate partial_renderer go 24 | 25 | create app/views/_pagination.haml 26 | 27 | Now you have pagination like with WillPaginate::LinkRenderer, but you can change it's look and feel in your view partial 28 | 29 | Copyright (c) 2009 Olexiy Zamkoviy, released under the MIT license 30 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-sr-SR.js: -------------------------------------------------------------------------------- 1 | /* Serbian i18n for the jQuery UI date picker plugin. */ 2 | /* Written by Dejan Dimić. */ 3 | jQuery(function($){ 4 | $.datepicker.regional['sr-SR'] = { 5 | closeText: 'Zatvori', 6 | prevText: '<', 7 | nextText: '>', 8 | currentText: 'Danas', 9 | monthNames: ['Januar','Februar','Mart','April','Maj','Jun', 10 | 'Jul','Avgust','Septembar','Oktobar','Novembar','Decembar'], 11 | monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', 12 | 'Jul','Avg','Sep','Okt','Nov','Dec'], 13 | dayNames: ['Nedelja','Ponedeljak','Utorak','Sreda','Četvrtak','Petak','Subota'], 14 | dayNamesShort: ['Ned','Pon','Uto','Sre','Čet','Pet','Sub'], 15 | dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'], 16 | dateFormat: 'dd/mm/yy', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['sr-SR']); 19 | }); 20 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-hr.js: -------------------------------------------------------------------------------- 1 | /* Croatian i18n for the jQuery UI date picker plugin. */ 2 | /* Written by Vjekoslav Nesek. */ 3 | jQuery(function($){ 4 | $.datepicker.regional['hr'] = { 5 | closeText: 'Zatvori', 6 | prevText: '<', 7 | nextText: '>', 8 | currentText: 'Danas', 9 | monthNames: ['Siječanj','Veljača','Ožujak','Travanj','Svibanj','Lipani', 10 | 'Srpanj','Kolovoz','Rujan','Listopad','Studeni','Prosinac'], 11 | monthNamesShort: ['Sij','Velj','Ožu','Tra','Svi','Lip', 12 | 'Srp','Kol','Ruj','Lis','Stu','Pro'], 13 | dayNames: ['Nedjalja','Ponedjeljak','Utorak','Srijeda','Četvrtak','Petak','Subota'], 14 | dayNamesShort: ['Ned','Pon','Uto','Sri','Čet','Pet','Sub'], 15 | dayNamesMin: ['Ne','Po','Ut','Sr','Če','Pe','Su'], 16 | dateFormat: 'dd.mm.yy.', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['hr']); 19 | }); -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-ko.js: -------------------------------------------------------------------------------- 1 | /* Korean initialisation for the jQuery calendar extension. */ 2 | /* Written by DaeKwon Kang (ncrash.dk@gmail.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['ko'] = { 5 | closeText: '닫기', 6 | prevText: '이전달', 7 | nextText: '다음달', 8 | currentText: '오늘', 9 | monthNames: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)', 10 | '7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'], 11 | monthNamesShort: ['1월(JAN)','2월(FEB)','3월(MAR)','4월(APR)','5월(MAY)','6월(JUN)', 12 | '7월(JUL)','8월(AUG)','9월(SEP)','10월(OCT)','11월(NOV)','12월(DEC)'], 13 | dayNames: ['일','월','화','수','목','금','토'], 14 | dayNamesShort: ['일','월','화','수','목','금','토'], 15 | dayNamesMin: ['일','월','화','수','목','금','토'], 16 | dateFormat: 'yy-mm-dd', firstDay: 0, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['ko']); 19 | }); -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/resources/edit.html.erb: -------------------------------------------------------------------------------- 1 | <% content_for :sidebar do %> 2 | <%= typus_block :location => @resource[:self], :partial => 'sidebar' %> 3 | <%= actions %> 4 | <%= search %> 5 | <% end %> 6 | 7 | <%= display_link_to_previous if params[:back_to] %> 8 | 9 |

    <%= link_to @resource[:pluralized], :action => 'index' %> › 10 | <%= _("Edit") %>

    11 | 12 | <%= typus_block :location => @resource[:self], :partial => 'edit' %> 13 | 14 | <% 15 | options = { :action => 'update', 16 | :id => @item.id , 17 | :back_to => params[:back_to], 18 | :resource => params[:resource], 19 | :resource_id => params[:resource_id]} 20 | button = _("Save {{resource}}", :resource => @resource[:human_name]) 21 | %> 22 | 23 | <%= render "form", :options => options, :button => button %> 24 | 25 | <%= typus_relationships %> 26 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/pages.yml: -------------------------------------------------------------------------------- 1 | published: 2 | id: 1 3 | title: Published Page 4 | body: Content of the published page. 5 | is_published: true 6 | parent_id: 7 | 8 | unpublished: 9 | id: 2 10 | title: Unpublished Page 11 | body: Content of the unpublished page. 12 | is_published: false 13 | parent_id: 1 14 | 15 | section: 16 | id: 3 17 | title: Section 18 | body: This is a section. 19 | is_published: true 20 | parent_id: 21 | 22 | subsection_1: 23 | id: 4 24 | title: Subsection 1 25 | body: This is a subsection. 26 | is_published: true 27 | parent_id: 3 28 | 29 | subsection_2: 30 | id: 5 31 | title: Subsection 2 32 | body: This is a subsection. 33 | is_published: true 34 | parent_id: 3 35 | 36 | subsubsection: 37 | id: 6 38 | title: Subsubsection 39 | body: This is a subsubsection. 40 | is_published: true 41 | parent_id: 5 42 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-tr.js: -------------------------------------------------------------------------------- 1 | /* Turkish initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Izzet Emre Erkan (kara@karalamalar.net). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['tr'] = { 5 | closeText: 'kapat', 6 | prevText: '<geri', 7 | nextText: 'ileri>', 8 | currentText: 'bugün', 9 | monthNames: ['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran', 10 | 'Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık'], 11 | monthNamesShort: ['Oca','Şub','Mar','Nis','May','Haz', 12 | 'Tem','Ağu','Eyl','Eki','Kas','Ara'], 13 | dayNames: ['Pazar','Pazartesi','Salı','Çarşamba','Perşembe','Cuma','Cumartesi'], 14 | dayNamesShort: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], 15 | dayNamesMin: ['Pz','Pt','Sa','Ça','Pe','Cu','Ct'], 16 | dateFormat: 'dd.mm.yy', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['tr']); 19 | }); -------------------------------------------------------------------------------- /vendor/plugins/acts_as_tree/README: -------------------------------------------------------------------------------- 1 | acts_as_tree 2 | ============ 3 | 4 | Specify this +acts_as+ extension if you want to model a tree structure by providing a parent association and a children 5 | association. This requires that you have a foreign key column, which by default is called +parent_id+. 6 | 7 | class Category < ActiveRecord::Base 8 | acts_as_tree :order => "name" 9 | end 10 | 11 | Example: 12 | root 13 | \_ child1 14 | \_ subchild1 15 | \_ subchild2 16 | 17 | root = Category.create("name" => "root") 18 | child1 = root.children.create("name" => "child1") 19 | subchild1 = child1.children.create("name" => "subchild1") 20 | 21 | root.parent # => nil 22 | child1.parent # => root 23 | root.children # => [child1] 24 | root.children.first.children.first # => subchild1 25 | 26 | Copyright (c) 2007 David Heinemeier Hansson, released under the MIT license -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-ca.js: -------------------------------------------------------------------------------- 1 | /* Inicialitzaci� en catal� per a l'extenci� 'calendar' per jQuery. */ 2 | /* Writers: (joan.leon@gmail.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['ca'] = { 5 | closeText: 'Tancar', 6 | prevText: '<Ant', 7 | nextText: 'Seg>', 8 | currentText: 'Avui', 9 | monthNames: ['Gener','Febrer','Març','Abril','Maig','Juny', 10 | 'Juliol','Agost','Setembre','Octubre','Novembre','Desembre'], 11 | monthNamesShort: ['Gen','Feb','Mar','Abr','Mai','Jun', 12 | 'Jul','Ago','Set','Oct','Nov','Des'], 13 | dayNames: ['Diumenge','Dilluns','Dimarts','Dimecres','Dijous','Divendres','Dissabte'], 14 | dayNamesShort: ['Dug','Dln','Dmt','Dmc','Djs','Dvn','Dsb'], 15 | dayNamesMin: ['Dg','Dl','Dt','Dc','Dj','Dv','Ds'], 16 | dateFormat: 'mm/dd/yy', firstDay: 0, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['ca']); 19 | }); -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-sq.js: -------------------------------------------------------------------------------- 1 | /* Albanian initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Flakron Bytyqi (flakron@gmail.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['sq'] = { 5 | closeText: 'mbylle', 6 | prevText: '<mbrapa', 7 | nextText: 'Përpara>', 8 | currentText: 'sot', 9 | monthNames: ['Janar','Shkurt','Mars','Prill','Maj','Qershor', 10 | 'Korrik','Gusht','Shtator','Tetor','Nëntor','Dhjetor'], 11 | monthNamesShort: ['Jan','Shk','Mar','Pri','Maj','Qer', 12 | 'Kor','Gus','Sht','Tet','Nën','Dhj'], 13 | dayNames: ['E Diel','E Hënë','E Martë','E Mërkurë','E Enjte','E Premte','E Shtune'], 14 | dayNamesShort: ['Di','Hë','Ma','Më','En','Pr','Sh'], 15 | dayNamesMin: ['Di','Hë','Ma','Më','En','Pr','Sh'], 16 | dateFormat: 'dd.mm.yy', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['sq']); 19 | }); 20 | -------------------------------------------------------------------------------- /config/locales/ru.yml: -------------------------------------------------------------------------------- 1 | # Sample localization file for English. Add more files in this directory for other locales. 2 | # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points. 3 | 4 | ru: 5 | activerecord: 6 | models: 7 | post: Новости 8 | event: Событие 9 | subject: Тематика событий 10 | place: Место события 11 | event_type: Тип события 12 | typus_user: Пользователь 13 | attributes: 14 | post: 15 | title: Заголовок 16 | content: Содержимое 17 | date: Дата 18 | image_file_name: Картинка 19 | event: 20 | title: Заголовок 21 | content: Описание события 22 | cost: Стоимость 23 | place_id: Место события 24 | start_time: Время начала события 25 | end_time: Время окончания события 26 | subject_id: Тематика события 27 | event_type: Тип события 28 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-de.js: -------------------------------------------------------------------------------- 1 | /* German initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Milian Wolff (mail@milianw.de). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['de'] = { 5 | closeText: 'schließen', 6 | prevText: '<zurück', 7 | nextText: 'Vor>', 8 | currentText: 'heute', 9 | monthNames: ['Januar','Februar','März','April','Mai','Juni', 10 | 'Juli','August','September','Oktober','November','Dezember'], 11 | monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun', 12 | 'Jul','Aug','Sep','Okt','Nov','Dez'], 13 | dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'], 14 | dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'], 15 | dayNamesMin: ['So','Mo','Di','Mi','Do','Fr','Sa'], 16 | dateFormat: 'dd.mm.yy', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['de']); 19 | }); 20 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-id.js: -------------------------------------------------------------------------------- 1 | /* Indonesian initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Deden Fathurahman (dedenf@gmail.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['id'] = { 5 | closeText: 'Tutup', 6 | prevText: '<mundur', 7 | nextText: 'maju>', 8 | currentText: 'hari ini', 9 | monthNames: ['Januari','Februari','Maret','April','Mei','Juni', 10 | 'Juli','Agustus','September','Oktober','Nopember','Desember'], 11 | monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun', 12 | 'Jul','Agus','Sep','Okt','Nop','Des'], 13 | dayNames: ['Minggu','Senin','Selasa','Rabu','Kamis','Jumat','Sabtu'], 14 | dayNamesShort: ['Min','Sen','Sel','Rab','kam','Jum','Sab'], 15 | dayNamesMin: ['Mg','Sn','Sl','Rb','Km','jm','Sb'], 16 | dateFormat: 'dd/mm/yy', firstDay: 0, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['id']); 19 | }); -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-eo.js: -------------------------------------------------------------------------------- 1 | /* Esperanto initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Olivier M. (olivierweb@ifrance.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['eo'] = { 5 | closeText: 'Fermi', 6 | prevText: '<Anta', 7 | nextText: 'Sekv>', 8 | currentText: 'Nuna', 9 | monthNames: ['Januaro','Februaro','Marto','Aprilo','Majo','Junio', 10 | 'Julio','Aŭgusto','Septembro','Oktobro','Novembro','Decembro'], 11 | monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', 12 | 'Jul','Aŭg','Sep','Okt','Nov','Dec'], 13 | dayNames: ['Dimanĉo','Lundo','Mardo','Merkredo','Ĵaŭdo','Vendredo','Sabato'], 14 | dayNamesShort: ['Dim','Lun','Mar','Mer','Ĵaŭ','Ven','Sab'], 15 | dayNamesMin: ['Di','Lu','Ma','Me','Ĵa','Ve','Sa'], 16 | dateFormat: 'dd/mm/yy', firstDay: 0, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['eo']); 19 | }); 20 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-ms.js: -------------------------------------------------------------------------------- 1 | /* Malaysian initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Mohd Nawawi Mohamad Jamili (nawawi@ronggeng.net). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['ms'] = { 5 | closeText: 'Tutup', 6 | prevText: '<Sebelum', 7 | nextText: 'Selepas>', 8 | currentText: 'hari ini', 9 | monthNames: ['Januari','Februari','Mac','April','Mei','Jun', 10 | 'Julai','Ogos','September','Oktober','November','Disember'], 11 | monthNamesShort: ['Jan','Feb','Mac','Apr','Mei','Jun', 12 | 'Jul','Ogo','Sep','Okt','Nov','Dis'], 13 | dayNames: ['Ahad','Isnin','Selasa','Rabu','Khamis','Jumaat','Sabtu'], 14 | dayNamesShort: ['Aha','Isn','Sel','Rab','kha','Jum','Sab'], 15 | dayNamesMin: ['Ah','Is','Se','Ra','Kh','Ju','Sa'], 16 | dateFormat: 'dd/mm/yy', firstDay: 0, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['ms']); 19 | }); -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-cs.js: -------------------------------------------------------------------------------- 1 | /* Czech initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Tomas Muller (tomas@tomas-muller.net). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['cs'] = { 5 | closeText: 'Zavřít', 6 | prevText: '<Dříve', 7 | nextText: 'Později>', 8 | currentText: 'Nyní', 9 | monthNames: ['leden','únor','březen','duben','květen','červen', 10 | 'červenec','srpen','září','říjen','listopad','prosinec'], 11 | monthNamesShort: ['led','úno','bře','dub','kvě','čer', 12 | 'čvc','srp','zář','říj','lis','pro'], 13 | dayNames: ['neděle', 'pondělí', 'úterý', 'středa', 'čtvrtek', 'pátek', 'sobota'], 14 | dayNamesShort: ['ne', 'po', 'út', 'st', 'čt', 'pá', 'so'], 15 | dayNamesMin: ['ne','po','út','st','čt','pá','so'], 16 | dateFormat: 'dd.mm.yy', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['cs']); 19 | }); 20 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-fa.js: -------------------------------------------------------------------------------- 1 | /* Persian (Farsi) Translation for the jQuery UI date picker plugin. */ 2 | /* Javad Mowlanezhad -- jmowla@gmail.com */ 3 | /* Jalali calendar should supported soon! (Its implemented but I have to test it) */ 4 | jQuery(function($) { 5 | $.datepicker.regional['fa'] = { 6 | closeText: 'بستن', 7 | prevText: '<قبلي', 8 | nextText: 'بعدي>', 9 | currentText: 'امروز', 10 | monthNames: ['فروردين','ارديبهشت','خرداد','تير','مرداد','شهريور', 11 | 'مهر','آبان','آذر','دي','بهمن','اسفند'], 12 | monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'], 13 | dayNames: ['يکشنبه','دوشنبه','سه‌شنبه','چهارشنبه','پنجشنبه','جمعه','شنبه'], 14 | dayNamesShort: ['ي','د','س','چ','پ','ج', 'ش'], 15 | dayNamesMin: ['ي','د','س','چ','پ','ج', 'ش'], 16 | dateFormat: 'yy/mm/dd', firstDay: 6, 17 | isRTL: true}; 18 | $.datepicker.setDefaults($.datepicker.regional['fa']); 19 | }); -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-sk.js: -------------------------------------------------------------------------------- 1 | /* Slovak initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Vojtech Rinik (vojto@hmm.sk). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['sk'] = { 5 | closeText: 'Zavrieť', 6 | prevText: '<Predchádzajúci', 7 | nextText: 'Nasledujúci>', 8 | currentText: 'Dnes', 9 | monthNames: ['Január','Február','Marec','Apríl','Máj','Jún', 10 | 'Júl','August','September','Október','November','December'], 11 | monthNamesShort: ['Jan','Feb','Mar','Apr','Máj','Jún', 12 | 'Júl','Aug','Sep','Okt','Nov','Dec'], 13 | dayNames: ['Nedel\'a','Pondelok','Utorok','Streda','Štvrtok','Piatok','Sobota'], 14 | dayNamesShort: ['Ned','Pon','Uto','Str','Štv','Pia','Sob'], 15 | dayNamesMin: ['Ne','Po','Ut','St','Št','Pia','So'], 16 | dateFormat: 'dd.mm.yy', firstDay: 0, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['sk']); 19 | }); 20 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/typus/reset_password.html.erb: -------------------------------------------------------------------------------- 1 | <% form_for :typus_user, :url => { :action => :reset_password } do |form| %> 2 | 3 | <%= hidden_field_tag :token, @typus_user.token %> 4 | 5 | <%= error_messages_for :typus_user, :header_message => nil, :message => nil %> 6 | 7 | 24 | 25 | <% end %> -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-ru.js: -------------------------------------------------------------------------------- 1 | /* Russian (UTF-8) initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Andrew Stromnov (stromnov@gmail.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['ru'] = { 5 | closeText: 'Закрыть', 6 | prevText: '<Пред', 7 | nextText: 'След>', 8 | currentText: 'Сегодня', 9 | monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь', 10 | 'Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'], 11 | monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн', 12 | 'Июл','Авг','Сен','Окт','Ноя','Дек'], 13 | dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'], 14 | dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'], 15 | dayNamesMin: ['Вс','Пн','Вт','Ср','Чт','Пт','Сб'], 16 | dateFormat: 'dd.mm.yy', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['ru']); 19 | }); -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-th.js: -------------------------------------------------------------------------------- 1 | /* Thai initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by pipo (pipo@sixhead.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['th'] = { 5 | closeText: 'ปิด', 6 | prevText: '« ย้อน', 7 | nextText: 'ถัดไป »', 8 | currentText: 'วันนี้', 9 | monthNames: ['มกราคม','กุมภาพันธ์','มีนาคม','เมษายน','พฤษภาคม','มิถุนายน', 10 | 'กรกฏาคม','สิงหาคม','กันยายน','ตุลาคม','พฤศจิกายน','ธันวาคม'], 11 | monthNamesShort: ['ม.ค.','ก.พ.','มี.ค.','เม.ย.','พ.ค.','มิ.ย.', 12 | 'ก.ค.','ส.ค.','ก.ย.','ต.ค.','พ.ย.','ธ.ค.'], 13 | dayNames: ['อาทิตย์','จันทร์','อังคาร','พุธ','พฤหัสบดี','ศุกร์','เสาร์'], 14 | dayNamesShort: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'], 15 | dayNamesMin: ['อา.','จ.','อ.','พ.','พฤ.','ศ.','ส.'], 16 | dateFormat: 'dd/mm/yy', firstDay: 0, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['th']); 19 | }); -------------------------------------------------------------------------------- /config/initializers/new_rails_defaults.rb: -------------------------------------------------------------------------------- 1 | # Be sure to restart your server when you modify this file. 2 | 3 | # These settings change the behavior of Rails 2 apps and will be defaults 4 | # for Rails 3. You can remove this initializer when Rails 3 is released. 5 | 6 | if defined?(ActiveRecord) 7 | # Include Active Record class name as root for JSON serialized output. 8 | ActiveRecord::Base.include_root_in_json = true 9 | 10 | # Store the full class name (including module namespace) in STI type column. 11 | ActiveRecord::Base.store_full_sti_class = true 12 | end 13 | 14 | ActionController::Routing.generate_best_match = false 15 | 16 | # Use ISO 8601 format for JSON serialized times and dates. 17 | ActiveSupport.use_standard_json_time_format = true 18 | 19 | # Don't escape HTML entities in JSON, leave that for the #json_escape helper. 20 | # if you're including raw json in an HTML page. 21 | ActiveSupport.escape_html_entities_in_json = false -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-pl.js: -------------------------------------------------------------------------------- 1 | /* Polish initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Jacek Wysocki (jacek.wysocki@gmail.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['pl'] = { 5 | closeText: 'Zamknij', 6 | prevText: '<Poprzedni', 7 | nextText: 'Następny>', 8 | currentText: 'Dziś', 9 | monthNames: ['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec', 10 | 'Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'], 11 | monthNamesShort: ['Sty','Lu','Mar','Kw','Maj','Cze', 12 | 'Lip','Sie','Wrz','Pa','Lis','Gru'], 13 | dayNames: ['Niedziela','Poniedzialek','Wtorek','Środa','Czwartek','Piątek','Sobota'], 14 | dayNamesShort: ['Nie','Pn','Wt','Śr','Czw','Pt','So'], 15 | dayNamesMin: ['N','Pn','Wt','Śr','Cz','Pt','So'], 16 | dateFormat: 'yy-mm-dd', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['pl']); 19 | }); 20 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-it.js: -------------------------------------------------------------------------------- 1 | /* Italian initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Apaella (apaella@gmail.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['it'] = { 5 | closeText: 'Chiudi', 6 | prevText: '<Prec', 7 | nextText: 'Succ>', 8 | currentText: 'Oggi', 9 | monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno', 10 | 'Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'], 11 | monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu', 12 | 'Lug','Ago','Set','Ott','Nov','Dic'], 13 | dayNames: ['Domenica','Lunedì','Martedì','Mercoledì','Giovedì','Venerdì','Sabato'], 14 | dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'], 15 | dayNamesMin: ['Do','Lu','Ma','Me','Gio','Ve','Sa'], 16 | dateFormat: 'dd/mm/yy', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['it']); 19 | }); 20 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/admin/helpers/_date.html.erb: -------------------------------------------------------------------------------- 1 | <% 2 | if params[filter.to_s].is_a?(Hash) 3 | date_from = params[filter.to_s]["from"] 4 | date_to = params[filter.to_s]["to"] 5 | else 6 | date_from = "" 7 | date_to = "" 8 | end 9 | 10 | date_format = Date::DATE_FORMATS[@resource[:class].typus_date_format(filter)] 11 | %> 12 | 13 |

    <%= @resource[:class].human_attribute_name(filter) %>

    14 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-nl.js: -------------------------------------------------------------------------------- 1 | /* Dutch (UTF-8) initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Mathias Bynens */ 3 | jQuery(function($){ 4 | $.datepicker.regional.nl = { 5 | closeText: 'Sluiten', 6 | prevText: '←', 7 | nextText: '→', 8 | currentText: 'Vandaag', 9 | monthNames: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 10 | 'juli', 'augustus', 'september', 'oktober', 'november', 'december'], 11 | monthNamesShort: ['jan', 'feb', 'maa', 'apr', 'mei', 'jun', 12 | 'jul', 'aug', 'sep', 'okt', 'nov', 'dec'], 13 | dayNames: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'], 14 | dayNamesShort: ['zon', 'maa', 'din', 'woe', 'don', 'vri', 'zat'], 15 | dayNamesMin: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'], 16 | dateFormat: 'dd/mm/yy', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional.nl); 19 | }); -------------------------------------------------------------------------------- /vendor/plugins/typus/test/helpers/admin/public_helper_test.rb: -------------------------------------------------------------------------------- 1 | require 'test/helper' 2 | 3 | class Admin::PublicHelperTest < ActiveSupport::TestCase 4 | 5 | include Admin::PublicHelper 6 | 7 | def render(*args); args; end 8 | 9 | def test_quick_edit 10 | 11 | options = { :path => 'articles/edit/1', :message => 'Edit this article' } 12 | output = quick_edit(options) 13 | 14 | =begin 15 | html = <<-HTML 16 | 19 | HTML 20 | 21 | =end 22 | partial = "admin/helpers/quick_edit" 23 | options = { :options => { :path => "articles/edit/1", 24 | :message => "Edit this article" } } 25 | 26 | assert_equal [ partial, options], output 27 | 28 | end 29 | 30 | def admin_quick_edit_path 31 | 'quick_edit' 32 | end 33 | 34 | end -------------------------------------------------------------------------------- /app/controllers/common_controller.rb: -------------------------------------------------------------------------------- 1 | class CommonController < ApplicationController 2 | def faq 3 | 4 | end 5 | 6 | def materials 7 | @materials = Material.all 8 | end 9 | 10 | def show_material 11 | @material = Material.find(params[:id]) 12 | end 13 | 14 | def book_materials 15 | @materials = Material.find_all_by_item_type("Book") 16 | @for = 'book' 17 | 18 | render :action => :materials 19 | end 20 | 21 | def video_materials 22 | @materials = Material.find_all_by_item_type("Video") 23 | @for = 'video' 24 | 25 | render :action => :materials 26 | end 27 | 28 | def materials_by_letter 29 | @letter = params[:letter] 30 | if params[:for] == 'all' 31 | @materials = Material.title_begins_with(params[:letter]) 32 | else 33 | @materials = Material.item_type_equals_and_title_begins_with(params[:letter]) 34 | end 35 | 36 | render :action => :materials 37 | end 38 | end 39 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-es.js: -------------------------------------------------------------------------------- 1 | /* Inicializaci�n en espa�ol para la extensi�n 'UI date picker' para jQuery. */ 2 | /* Traducido por Vester (xvester@gmail.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['es'] = { 5 | closeText: 'Cerrar', 6 | prevText: '<Ant', 7 | nextText: 'Sig>', 8 | currentText: 'Hoy', 9 | monthNames: ['Enero','Febrero','Marzo','Abril','Mayo','Junio', 10 | 'Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre'], 11 | monthNamesShort: ['Ene','Feb','Mar','Abr','May','Jun', 12 | 'Jul','Ago','Sep','Oct','Nov','Dic'], 13 | dayNames: ['Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado'], 14 | dayNamesShort: ['Dom','Lun','Mar','Mié','Juv','Vie','Sáb'], 15 | dayNamesMin: ['Do','Lu','Ma','Mi','Ju','Vi','Sá'], 16 | dateFormat: 'dd/mm/yy', firstDay: 0, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['es']); 19 | }); -------------------------------------------------------------------------------- /vendor/plugins/partial_renderer/generators/partial_renderer/partial_renderer_generator.rb: -------------------------------------------------------------------------------- 1 | class PartialRendererGenerator < Rails::Generator::NamedBase 2 | 3 | def initialize(runtime_args, runtime_options = {}) 4 | super 5 | 6 | if runtime_args[0] == 'go' 7 | options[:file_name] = 'pagination' 8 | else 9 | options[:file_name] = runtime_args[0] 10 | end 11 | 12 | if options[:format].nil? 13 | options[:format] = 'haml' 14 | end 15 | 16 | end 17 | 18 | def manifest 19 | 20 | record do |m| 21 | m.file "pagination.#{options[:format]}", "app/views/_#{options[:file_name]}.#{options[:format]}" 22 | end 23 | end 24 | 25 | def add_options!(opt) 26 | opt.separator '' 27 | opt.separator 'Options:' 28 | opt.on("--haml", "Generate haml template") { |v| options[:format] = "haml"; } 29 | opt.on("--erb", "Generate erb template") { |v| options[:format] = "erb"; } 30 | 31 | end 32 | end 33 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-da.js: -------------------------------------------------------------------------------- 1 | /* Danish initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Jan Christensen ( deletestuff@gmail.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['da'] = { 5 | closeText: 'Luk', 6 | prevText: '<Forrige', 7 | nextText: 'Næste>', 8 | currentText: 'Idag', 9 | monthNames: ['Januar','Februar','Marts','April','Maj','Juni', 10 | 'Juli','August','September','Oktober','November','December'], 11 | monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', 12 | 'Jul','Aug','Sep','Okt','Nov','Dec'], 13 | dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'], 14 | dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'], 15 | dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'], 16 | dateFormat: 'dd-mm-yy', firstDay: 0, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['da']); 19 | }); 20 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-fr.js: -------------------------------------------------------------------------------- 1 | /* French initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Keith Wood (kbwood@virginbroadband.com.au) and Stéphane Nahmani (sholby@sholby.net). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['fr'] = { 5 | closeText: 'Fermer', 6 | prevText: '<Préc', 7 | nextText: 'Suiv>', 8 | currentText: 'Courant', 9 | monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin', 10 | 'Juillet','Août','Septembre','Octobre','Novembre','Décembre'], 11 | monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun', 12 | 'Jul','Aoû','Sep','Oct','Nov','Déc'], 13 | dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'], 14 | dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'], 15 | dayNamesMin: ['Di','Lu','Ma','Me','Je','Ve','Sa'], 16 | dateFormat: 'dd/mm/yy', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['fr']); 19 | }); -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-hy.js: -------------------------------------------------------------------------------- 1 | /* Armenian(UTF-8) initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Levon Zakaryan (levon.zakaryan@gmail.com)*/ 3 | jQuery(function($){ 4 | $.datepicker.regional['hy'] = { 5 | closeText: 'Փակել', 6 | prevText: '<Նախ.', 7 | nextText: 'Հաջ.>', 8 | currentText: 'Այսօր', 9 | monthNames: ['Հունվար','Փետրվար','Մարտ','Ապրիլ','Մայիս','Հունիս', 10 | 'Հուլիս','Օգոստոս','Սեպտեմբեր','Հոկտեմբեր','Նոյեմբեր','Դեկտեմբեր'], 11 | monthNamesShort: ['Հունվ','Փետր','Մարտ','Ապր','Մայիս','Հունիս', 12 | 'Հուլ','Օգս','Սեպ','Հոկ','Նոյ','Դեկ'], 13 | dayNames: ['կիրակի','եկուշաբթի','երեքշաբթի','չորեքշաբթի','հինգշաբթի','ուրբաթ','շաբաթ'], 14 | dayNamesShort: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'], 15 | dayNamesMin: ['կիր','երկ','երք','չրք','հնգ','ուրբ','շբթ'], 16 | dateFormat: 'dd.mm.yy', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['hy']); 19 | }); -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-lv.js: -------------------------------------------------------------------------------- 1 | /* Latvian (UTF-8) initialisation for the jQuery UI date picker plugin. */ 2 | /* @author Arturas Paleicikas */ 3 | jQuery(function($){ 4 | $.datepicker.regional['lv'] = { 5 | closeText: 'Aizvērt', 6 | prevText: 'Iepr', 7 | nextText: 'Nāka', 8 | currentText: 'Šodien', 9 | monthNames: ['Janvāris','Februāris','Marts','Aprīlis','Maijs','Jūnijs', 10 | 'Jūlijs','Augusts','Septembris','Oktobris','Novembris','Decembris'], 11 | monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jūn', 12 | 'Jūl','Aug','Sep','Okt','Nov','Dec'], 13 | dayNames: ['svētdiena','pirmdiena','otrdiena','trešdiena','ceturtdiena','piektdiena','sestdiena'], 14 | dayNamesShort: ['svt','prm','otr','tre','ctr','pkt','sst'], 15 | dayNamesMin: ['Sv','Pr','Ot','Tr','Ct','Pk','Ss'], 16 | dateFormat: 'dd-mm-yy', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['lv']); 19 | }); -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-sv.js: -------------------------------------------------------------------------------- 1 | /* Swedish initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Anders Ekdahl ( anders@nomadiz.se). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['sv'] = { 5 | closeText: 'Stäng', 6 | prevText: '«Förra', 7 | nextText: 'Nästa»', 8 | currentText: 'Idag', 9 | monthNames: ['Januari','Februari','Mars','April','Maj','Juni', 10 | 'Juli','Augusti','September','Oktober','November','December'], 11 | monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', 12 | 'Jul','Aug','Sep','Okt','Nov','Dec'], 13 | dayNamesShort: ['Sön','Mån','Tis','Ons','Tor','Fre','Lör'], 14 | dayNames: ['Söndag','Måndag','Tisdag','Onsdag','Torsdag','Fredag','Lördag'], 15 | dayNamesMin: ['Sö','Må','Ti','On','To','Fr','Lö'], 16 | dateFormat: 'yy-mm-dd', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['sv']); 19 | }); 20 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-el.js: -------------------------------------------------------------------------------- 1 | /* Greek (el) initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Alex Cicovic (http://www.alexcicovic.com) */ 3 | jQuery(function($){ 4 | $.datepicker.regional['el'] = { 5 | closeText: 'Κλείσιμο', 6 | prevText: 'Προηγούμενος', 7 | nextText: 'Επόμενος', 8 | currentText: 'Τρέχων Μήνας', 9 | monthNames: ['Ιανουάριος','Φεβρουάριος','Μάρτιος','Απρίλιος','Μάιος','Ιούνιος', 10 | 'Ιούλιος','Αύγουστος','Σεπτέμβριος','Οκτώβριος','Νοέμβριος','Δεκέμβριος'], 11 | monthNamesShort: ['Ιαν','Φεβ','Μαρ','Απρ','Μαι','Ιουν', 12 | 'Ιουλ','Αυγ','Σεπ','Οκτ','Νοε','Δεκ'], 13 | dayNames: ['Κυριακή','Δευτέρα','Τρίτη','Τετάρτη','Πέμπτη','Παρασκευή','Σάββατο'], 14 | dayNamesShort: ['Κυρ','Δευ','Τρι','Τετ','Πεμ','Παρ','Σαβ'], 15 | dayNamesMin: ['Κυ','Δε','Τρ','Τε','Πε','Πα','Σα'], 16 | dateFormat: 'dd/mm/yy', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['el']); 19 | }); -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-no.js: -------------------------------------------------------------------------------- 1 | /* Norwegian initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Naimdjon Takhirov (naimdjon@gmail.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['no'] = { 5 | closeText: 'Lukk', 6 | prevText: '«Forrige', 7 | nextText: 'Neste»', 8 | currentText: 'I dag', 9 | monthNames: ['Januar','Februar','Mars','April','Mai','Juni', 10 | 'Juli','August','September','Oktober','November','Desember'], 11 | monthNamesShort: ['Jan','Feb','Mar','Apr','Mai','Jun', 12 | 'Jul','Aug','Sep','Okt','Nov','Des'], 13 | dayNamesShort: ['Søn','Man','Tir','Ons','Tor','Fre','Lør'], 14 | dayNames: ['Søndag','Mandag','Tirsdag','Onsdag','Torsdag','Fredag','Lørdag'], 15 | dayNamesMin: ['Sø','Ma','Ti','On','To','Fr','Lø'], 16 | dateFormat: 'yy-mm-dd', firstDay: 0, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['no']); 19 | }); 20 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-lt.js: -------------------------------------------------------------------------------- 1 | /* Lithuanian (UTF-8) initialisation for the jQuery UI date picker plugin. */ 2 | /* @author Arturas Paleicikas */ 3 | jQuery(function($){ 4 | $.datepicker.regional['lt'] = { 5 | closeText: 'Uždaryti', 6 | prevText: '<Atgal', 7 | nextText: 'Pirmyn>', 8 | currentText: 'Šiandien', 9 | monthNames: ['Sausis','Vasaris','Kovas','Balandis','Gegužė','Birželis', 10 | 'Liepa','Rugpjūtis','Rugsėjis','Spalis','Lapkritis','Gruodis'], 11 | monthNamesShort: ['Sau','Vas','Kov','Bal','Geg','Bir', 12 | 'Lie','Rugp','Rugs','Spa','Lap','Gru'], 13 | dayNames: ['sekmadienis','pirmadienis','antradienis','trečiadienis','ketvirtadienis','penktadienis','šeštadienis'], 14 | dayNamesShort: ['sek','pir','ant','tre','ket','pen','šeš'], 15 | dayNamesMin: ['Se','Pr','An','Tr','Ke','Pe','Še'], 16 | dateFormat: 'yy-mm-dd', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['lt']); 19 | }); -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-hu.js: -------------------------------------------------------------------------------- 1 | /* Hungarian initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Istvan Karaszi (jquerycalendar@spam.raszi.hu). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['hu'] = { 5 | closeText: 'bezárás', 6 | prevText: '« vissza', 7 | nextText: 'előre »', 8 | currentText: 'ma', 9 | monthNames: ['Január', 'Február', 'Március', 'Április', 'Május', 'Június', 10 | 'Július', 'Augusztus', 'Szeptember', 'Október', 'November', 'December'], 11 | monthNamesShort: ['Jan', 'Feb', 'Már', 'Ápr', 'Máj', 'Jún', 12 | 'Júl', 'Aug', 'Szep', 'Okt', 'Nov', 'Dec'], 13 | dayNames: ['Vasámap', 'Hétfö', 'Kedd', 'Szerda', 'Csütörtök', 'Péntek', 'Szombat'], 14 | dayNamesShort: ['Vas', 'Hét', 'Ked', 'Sze', 'Csü', 'Pén', 'Szo'], 15 | dayNamesMin: ['V', 'H', 'K', 'Sze', 'Cs', 'P', 'Szo'], 16 | dateFormat: 'yy-mm-dd', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['hu']); 19 | }); 20 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-pt-BR.js: -------------------------------------------------------------------------------- 1 | /* Brazilian initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Leonildo Costa Silva (leocsilva@gmail.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['pt-BR'] = { 5 | closeText: 'Fechar', 6 | prevText: '<Anterior', 7 | nextText: 'Próximo>', 8 | currentText: 'Hoje', 9 | monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho', 10 | 'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'], 11 | monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun', 12 | 'Jul','Ago','Set','Out','Nov','Dez'], 13 | dayNames: ['Domingo','Segunda-feira','Terça-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sabado'], 14 | dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sab'], 15 | dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sab'], 16 | dateFormat: 'dd/mm/yy', firstDay: 0, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['pt-BR']); 19 | }); -------------------------------------------------------------------------------- /public/javascripts/calendar_date_select/format_italian.js: -------------------------------------------------------------------------------- 1 | // Italian Format: 31/12/2000 23:00 2 | // Thanks, Bigonazzi! 3 | 4 | Date.prototype.toFormattedString = function(include_time){ 5 | str = this.getDate() + "/" + (this.getMonth() + 1) + "/" + this.getFullYear(); 6 | if (include_time) { str += " " + this.getHours() + ":" + this.getPaddedMinutes() } 7 | return str; 8 | } 9 | 10 | Date.parseFormattedString = function (string) { 11 | var regexp = '([0-9]{1,2})/(([0-9]{1,2})/(([0-9]{4})( ([0-9]{1,2}):([0-9]{2})? *)?)?)?'; 12 | var d = string.match(new RegExp(regexp, "i")); 13 | if (d==null) return Date.parse(string); // at least give javascript a crack at it. 14 | var offset = 0; 15 | var date = new Date(d[5], 0, 1); 16 | if (d[3]) { date.setMonth(d[3] - 1); } 17 | if (d[5]) { date.setDate(d[1]); } 18 | if (d[7]) { 19 | date.setHours(parseInt(d[7], 10)); 20 | } 21 | if (d[8]) { date.setMinutes(d[8]); } 22 | if (d[10]) { date.setSeconds(d[10]); } 23 | return date; 24 | } 25 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/fixtures/posts.yml: -------------------------------------------------------------------------------- 1 | # Belongs to admin. 2 | published: 3 | id: 1 4 | title: Title One 5 | body: This is the body. 6 | created_at: <%= 7.days.ago.to_s(:db) %> 7 | updated_at: <%= 7.days.ago.to_s(:db) %> 8 | status: published 9 | typus_user_id: 1 10 | 11 | # Belongs to editor. 12 | unpublished: 13 | id: 2 14 | title: Title Two 15 | body: This is the body. 16 | created_at: <%= 6.days.ago.to_s(:db) %> 17 | updated_at: <%= 6.days.ago.to_s(:db) %> 18 | status: unpublished 19 | typus_user_id: 1 20 | 21 | owned_by_admin: 22 | id: 3 23 | title: Owned by admin 24 | body: This is the body. 25 | created_at: <%= 5.days.ago.to_s(:db) %> 26 | updated_at: <%= 5.days.ago.to_s(:db) %> 27 | status: unpublished 28 | typus_user_id: 1 29 | 30 | owned_by_editor: 31 | id: 4 32 | title: Owned by editor 33 | body: This is the body. 34 | created_at: <%= 4.days.ago.to_s(:db) %> 35 | updated_at: <%= 4.days.ago.to_s(:db) %> 36 | status: unpublished 37 | typus_user_id: 2 -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-ro.js: -------------------------------------------------------------------------------- 1 | /* Romanian initialisation for the jQuery UI date picker plugin. 2 | * 3 | * Written by Edmond L. (ll_edmond@walla.com) 4 | * and Ionut G. Stan (ionut.g.stan@gmail.com) 5 | */ 6 | jQuery(function($){ 7 | $.datepicker.regional['ro'] = { 8 | closeText: 'Închide', 9 | prevText: '« Luna precedentă', 10 | nextText: 'Luna următoare »', 11 | currentText: 'Azi', 12 | monthNames: ['Ianuarie','Februarie','Martie','Aprilie','Mai','Iunie', 13 | 'Iulie','August','Septembrie','Octombrie','Noiembrie','Decembrie'], 14 | monthNamesShort: ['Ian', 'Feb', 'Mar', 'Apr', 'Mai', 'Iun', 15 | 'Iul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], 16 | dayNames: ['Duminică', 'Luni', 'Marţi', 'Miercuri', 'Joi', 'Vineri', 'Sâmbătă'], 17 | dayNamesShort: ['Dum', 'Lun', 'Mar', 'Mie', 'Joi', 'Vin', 'Sâm'], 18 | dayNamesMin: ['Du','Lu','Ma','Mi','Jo','Vi','Sâ'], 19 | dateFormat: 'dd MM yy', firstDay: 1, 20 | isRTL: false}; 21 | $.datepicker.setDefaults($.datepicker.regional['ro']); 22 | }); 23 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-sl.js: -------------------------------------------------------------------------------- 1 | /* Slovenian initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Jaka Jancar (jaka@kubje.org). */ 3 | /* c = č, s = š z = ž C = Č S = Š Z = Ž */ 4 | jQuery(function($){ 5 | $.datepicker.regional['sl'] = { 6 | closeText: 'Zapri', 7 | prevText: '<Prejšnji', 8 | nextText: 'Naslednji>', 9 | currentText: 'Trenutni', 10 | monthNames: ['Januar','Februar','Marec','April','Maj','Junij', 11 | 'Julij','Avgust','September','Oktober','November','December'], 12 | monthNamesShort: ['Jan','Feb','Mar','Apr','Maj','Jun', 13 | 'Jul','Avg','Sep','Okt','Nov','Dec'], 14 | dayNames: ['Nedelja','Ponedeljek','Torek','Sreda','Četrtek','Petek','Sobota'], 15 | dayNamesShort: ['Ned','Pon','Tor','Sre','Čet','Pet','Sob'], 16 | dayNamesMin: ['Ne','Po','To','Sr','Če','Pe','So'], 17 | dateFormat: 'dd.mm.yy', firstDay: 1, 18 | isRTL: false}; 19 | $.datepicker.setDefaults($.datepicker.regional['sl']); 20 | }); 21 | -------------------------------------------------------------------------------- /vendor/plugins/typus/app/views/layouts/typus.html.erb: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | <%= page_title %> 13 | 14 | <%= stylesheet_link_tag 'admin/reset', :media => 'screen' %> 15 | <%= stylesheet_link_tag 'admin/screen', :media => 'screen' %> 16 | 17 | 18 | 19 | 20 | 21 |
    22 |

    <%= Typus::Configuration.options[:app_name] %>

    23 | <%= display_flash_message %> 24 | <%= yield %> 25 |
    26 | 27 |
    28 | <%= typus_block :location => 'shared', :partial => 'footer' %> 29 |
    30 | 31 | 32 | 33 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/unit/typus_mailer_test.rb: -------------------------------------------------------------------------------- 1 | require 'test/helper' 2 | 3 | class TypusMailerTest < ActiveSupport::TestCase 4 | 5 | def setup 6 | @user = typus_users(:admin) 7 | url = "http://test.host/admin/reset_password?token=#{@user.token}" 8 | @response = TypusMailer.deliver_reset_password_link(@user, url) 9 | end 10 | 11 | def test_should_verify_email_from_is_defined_by_typus_options 12 | assert_equal Typus::Configuration.options[:email], @response.from 13 | end 14 | 15 | def test_should_verify_email_to_is_typus_user_email 16 | assert_equal [ @user.email ], @response.to 17 | end 18 | 19 | def test_should_verify_email_subject 20 | expected = "[#{Typus::Configuration.options[:app_name]}] Reset password" 21 | assert_equal expected, @response.subject 22 | end 23 | 24 | def test_should_verify_email_contains_reset_password_link_with_token 25 | expected = "http://test.host/admin/reset_password?token=1A2B3C4D5E6F" 26 | assert_match expected, @response.body 27 | end 28 | 29 | end -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-bg.js: -------------------------------------------------------------------------------- 1 | /* Bulgarian initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Stoyan Kyosev (http://svest.org). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['bg'] = { 5 | closeText: 'затвори', 6 | prevText: '<назад', 7 | nextText: 'напред>', 8 | nextBigText: '>>', 9 | currentText: 'днес', 10 | monthNames: ['Януари','Февруари','Март','Април','Май','Юни', 11 | 'Юли','Август','Септември','Октомври','Ноември','Декември'], 12 | monthNamesShort: ['Яну','Фев','Мар','Апр','Май','Юни', 13 | 'Юли','Авг','Сеп','Окт','Нов','Дек'], 14 | dayNames: ['Неделя','Понеделник','Вторник','Сряда','Четвъртък','Петък','Събота'], 15 | dayNamesShort: ['Нед','Пон','Вто','Сря','Чет','Пет','Съб'], 16 | dayNamesMin: ['Не','По','Вт','Ср','Че','Пе','Съ'], 17 | dateFormat: 'dd.mm.yy', firstDay: 1, 18 | isRTL: false}; 19 | $.datepicker.setDefaults($.datepicker.regional['bg']); 20 | }); 21 | -------------------------------------------------------------------------------- /public/javascripts/ui/i18n/ui.datepicker-fi.js: -------------------------------------------------------------------------------- 1 | /* Finnish initialisation for the jQuery UI date picker plugin. */ 2 | /* Written by Harri Kilpi� (harrikilpio@gmail.com). */ 3 | jQuery(function($){ 4 | $.datepicker.regional['fi'] = { 5 | closeText: 'Sulje', 6 | prevText: '«Edellinen', 7 | nextText: 'Seuraava»', 8 | currentText: 'Tänään', 9 | monthNames: ['Tammikuu','Helmikuu','Maaliskuu','Huhtikuu','Toukokuu','Kesäkuu', 10 | 'Heinäkuu','Elokuu','Syyskuu','Lokakuu','Marraskuu','Joulukuu'], 11 | monthNamesShort: ['Tammi','Helmi','Maalis','Huhti','Touko','Kesä', 12 | 'Heinä','Elo','Syys','Loka','Marras','Joulu'], 13 | dayNamesShort: ['Su','Ma','Ti','Ke','To','Pe','Su'], 14 | dayNames: ['Sunnuntai','Maanantai','Tiistai','Keskiviikko','Torstai','Perjantai','Lauantai'], 15 | dayNamesMin: ['Su','Ma','Ti','Ke','To','Pe','La'], 16 | dateFormat: 'dd.mm.yy', firstDay: 1, 17 | isRTL: false}; 18 | $.datepicker.setDefaults($.datepicker.regional['fi']); 19 | }); 20 | -------------------------------------------------------------------------------- /public/422.html: -------------------------------------------------------------------------------- 1 | 3 | 4 | 5 | 6 | 7 | 8 | The change you wanted was rejected (422) 9 | 21 | 22 | 23 | 24 | 25 |
    26 |

    The change you wanted was rejected.

    27 |

    Maybe you tried to change something you didn't have access to.

    28 |
    29 | 30 | -------------------------------------------------------------------------------- /vendor/plugins/typus/test/functional/admin/master_controller_posts_forms_test.rb: -------------------------------------------------------------------------------- 1 | require 'test/helper' 2 | 3 | # Here we test everything related to forms. 4 | 5 | class Admin::PostsControllerTest < ActionController::TestCase 6 | 7 | # Our model definition is: 8 | # 9 | # Post: 10 | # fields: 11 | # form: title, body, created_at, status, published_at 12 | # 13 | def test_form_when_new 14 | 15 | get :new 16 | assert_template :new 17 | 18 | # Page includes a form. 19 | assert_select "form" 20 | 21 | # Page includes 4 elements. 22 | assert_select "form input", 2 23 | assert_select "form textarea", 1 24 | assert_select "form select", 6 25 | 26 | # title 27 | assert_select 'label[for="post_title"]' 28 | assert_select 'input#post_title[type="text"]' 29 | 30 | # body 31 | assert_select 'label[for="post_body"]' 32 | assert_select 'textarea#post_body' 33 | 34 | # status 35 | assert_select 'label[for="post_status"]' 36 | assert_select 'select#post_status' 37 | 38 | end 39 | 40 | end --------------------------------------------------------------------------------