your_platform 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +39 -11
- data/Rakefile +15 -1
- data/app/assets/images/file.png +0 -0
- data/app/assets/images/img/excel2013_file_128.png +0 -0
- data/app/assets/images/img/excel2013_file_bw_107.png +0 -0
- data/app/assets/images/img/excel2013_file_bw_semitransparent_107.png +0 -0
- data/app/assets/images/img/glyphicons-halflings-white.png +0 -0
- data/app/assets/images/img/glyphicons-halflings.png +0 -0
- data/app/assets/images/img/gmaps_yellow_marker.png +0 -0
- data/app/assets/images/img/gmaps_yellow_marker_38.png +0 -0
- data/app/assets/images/markdown_help.png +0 -0
- data/app/assets/images/your_platform/breadcrumb-sep.png +0 -0
- data/app/assets/javascripts/app-ng.js.coffee +5 -0
- data/app/assets/javascripts/attachments.js +2 -0
- data/app/assets/javascripts/controllers-ng/bookmark_list_controller.js.coffee +30 -0
- data/app/assets/javascripts/controllers-ng/box_controller.js.coffee +37 -0
- data/app/assets/javascripts/controllers-ng/profile_angular.js.coffee +151 -0
- data/app/assets/javascripts/directives-ng/box_directive.js.coffee +91 -0
- data/app/assets/javascripts/directives-ng/star_tool_directive.js.coffee +111 -0
- data/app/assets/javascripts/filters-ng/some_filter.js.coffee +0 -0
- data/app/assets/javascripts/jquery.appear-1.1.1.js +138 -0
- data/app/assets/javascripts/make-js-more-like-ruby.js.coffee +32 -0
- data/app/assets/javascripts/mercury.js +456 -0
- data/app/assets/javascripts/models-ng/bookmark.js.coffee +28 -0
- data/app/assets/javascripts/services-ng/current_user_bookmarks.js.coffee +39 -0
- data/app/assets/javascripts/your_platform.js +27 -0
- data/app/assets/javascripts/your_platform/address_labels.js.coffee +40 -0
- data/app/assets/javascripts/your_platform/attachments.js.coffee +61 -0
- data/app/assets/javascripts/your_platform/auto-completion.js.coffee +90 -0
- data/app/assets/javascripts/your_platform/best_in_place.js.coffee +8 -0
- data/app/assets/javascripts/your_platform/best_in_place_hyperlinks.js.coffee +25 -0
- data/app/assets/javascripts/your_platform/best_in_place_tab_key.js.coffee +28 -0
- data/app/assets/javascripts/your_platform/boxes.js.coffee +11 -0
- data/app/assets/javascripts/your_platform/change_password.js.coffee +22 -0
- data/app/assets/javascripts/your_platform/close_dropdowns.js.coffee +18 -0
- data/app/assets/javascripts/your_platform/copy_to_clipboard.js.coffee +6 -0
- data/app/assets/javascripts/your_platform/datatables.coffee +112 -0
- data/app/assets/javascripts/your_platform/datepicker_settings.js.coffee +16 -0
- data/app/assets/javascripts/your_platform/edit_tools.js.coffee +19 -0
- data/app/assets/javascripts/your_platform/editable_dbl_click.js.coffee +42 -0
- data/app/assets/javascripts/your_platform/events.js.coffee +126 -0
- data/app/assets/javascripts/your_platform/fix_textarea.js.coffee +11 -0
- data/app/assets/javascripts/your_platform/galleria.js.coffee +112 -0
- data/app/assets/javascripts/your_platform/groups.js.coffee +36 -0
- data/app/assets/javascripts/your_platform/hidden.js.coffee +5 -0
- data/app/assets/javascripts/your_platform/links_to_external_sites.js.coffee +12 -0
- data/app/assets/javascripts/your_platform/maps.js.coffee +13 -0
- data/app/assets/javascripts/your_platform/may_need_review.js.coffee +10 -0
- data/app/assets/javascripts/your_platform/navable_title_rename.js.coffee +17 -0
- data/app/assets/javascripts/your_platform/officers.js.coffee +35 -0
- data/app/assets/javascripts/your_platform/popovers.js.coffee +38 -0
- data/app/assets/javascripts/your_platform/posts.js.coffee +58 -0
- data/app/assets/javascripts/your_platform/profile_fields.js.coffee +61 -0
- data/app/assets/javascripts/your_platform/search.js.coffee +26 -0
- data/app/assets/javascripts/your_platform/tooltips.js.coffee +10 -0
- data/app/assets/javascripts/your_platform/turbolinks_loading_spinner.js.coffee +83 -0
- data/app/assets/javascripts/your_platform/user_avatars.js.coffee +33 -0
- data/app/assets/javascripts/your_platform/user_group_memberships.js.coffee +11 -0
- data/app/assets/javascripts/your_platform/user_settings.js.coffee +18 -0
- data/app/assets/javascripts/your_platform/users_new.js.coffee +54 -0
- data/app/assets/stylesheets/bootstrap_layout.css.sass +3 -0
- data/app/assets/stylesheets/bootstrap_layout/attachments.css.sass +3 -0
- data/app/assets/stylesheets/bootstrap_layout/boxes.css.sass +11 -0
- data/app/assets/stylesheets/bootstrap_layout/breadcrumb.css.sass +25 -0
- data/app/assets/stylesheets/bootstrap_layout/category_indicator.css.sass +5 -0
- data/app/assets/stylesheets/bootstrap_layout/footer.css.sass +14 -0
- data/app/assets/stylesheets/bootstrap_layout/galleria.css.sass +8 -0
- data/app/assets/stylesheets/bootstrap_layout/header_bar.css.sass +11 -0
- data/app/assets/stylesheets/bootstrap_layout/headings.css.sass +10 -0
- data/app/assets/stylesheets/bootstrap_layout/logged_in_bar.css.sass +40 -0
- data/app/assets/stylesheets/bootstrap_layout/logo.css.sass +2 -0
- data/app/assets/stylesheets/bootstrap_layout/modal_fix.css.sass +8 -0
- data/app/assets/stylesheets/bootstrap_layout/profiles.css.sass +10 -0
- data/app/assets/stylesheets/bootstrap_layout/session_bar.css.sass +60 -0
- data/app/assets/stylesheets/bootstrap_layout/stars.css.sass +4 -0
- data/app/assets/stylesheets/bootstrap_layout/turbolinks_progress_bar.css.sass +3 -0
- data/app/assets/stylesheets/bootstrap_layout/vertical_menu.css.sass +15 -0
- data/app/assets/stylesheets/bootstrap_setup.css.sass +4 -0
- data/app/assets/stylesheets/your_platform.css.sass +11 -0
- data/app/assets/stylesheets/your_platform/address_labels_modal.css.sass +8 -0
- data/app/assets/stylesheets/your_platform/attachments.css.sass +75 -0
- data/app/assets/stylesheets/your_platform/authorization_info.css.sass +16 -0
- data/app/assets/stylesheets/your_platform/auto-completion.css.sass +3 -0
- data/app/assets/stylesheets/your_platform/center.css.sass +14 -0
- data/app/assets/stylesheets/your_platform/change_password.css.sass +13 -0
- data/app/assets/stylesheets/your_platform/corporate_vita.css.sass +2 -0
- data/app/assets/stylesheets/your_platform/datatables.css.sass +23 -0
- data/app/assets/stylesheets/your_platform/datepicker.css.sass +2 -0
- data/app/assets/stylesheets/your_platform/dropdowns.css.sass +8 -0
- data/app/assets/stylesheets/your_platform/events.css.sass +68 -0
- data/app/assets/stylesheets/your_platform/forms.css.sass +25 -0
- data/app/assets/stylesheets/your_platform/galleria.css.sass +12 -0
- data/app/assets/stylesheets/your_platform/groups.css.sass +8 -0
- data/app/assets/stylesheets/your_platform/groups_table.css.sass +8 -0
- data/app/assets/stylesheets/your_platform/hidden.css.sass +3 -0
- data/app/assets/stylesheets/your_platform/images.css.sass +50 -0
- data/app/assets/stylesheets/your_platform/last_activities.css.sass +17 -0
- data/app/assets/stylesheets/your_platform/latest_members.css.sass +7 -0
- data/app/assets/stylesheets/your_platform/login.css.sass +4 -0
- data/app/assets/stylesheets/your_platform/maps.css.sass +22 -0
- data/app/assets/stylesheets/your_platform/markdown_help.css.sass +5 -0
- data/app/assets/stylesheets/your_platform/may_need_review.css.sass +3 -0
- data/app/assets/stylesheets/your_platform/pages.css.sass +12 -0
- data/app/assets/stylesheets/your_platform/password_strength.css.sass +73 -0
- data/app/assets/stylesheets/your_platform/picture_attachments.css.sass +7 -0
- data/app/assets/stylesheets/your_platform/popovers.css.sass +13 -0
- data/app/assets/stylesheets/your_platform/posts.css.sass +32 -0
- data/app/assets/stylesheets/your_platform/profiles.css.sass +153 -0
- data/app/assets/stylesheets/your_platform/search_preview.css.sass +4 -0
- data/app/assets/stylesheets/your_platform/star_tool.css.sass +2 -0
- data/app/assets/stylesheets/your_platform/tooltips.css.sass +7 -0
- data/app/assets/stylesheets/your_platform/turbolinks_loading_spinner.css.sass +3 -0
- data/app/assets/stylesheets/your_platform/user_avatars.css.sass +8 -0
- data/app/assets/stylesheets/your_platform/user_group_memberships.css.sass +4 -0
- data/app/assets/stylesheets/your_platform/vertical_nav.css.sass +7 -0
- data/app/controllers/activities_controller.rb +6 -0
- data/app/controllers/application_controller.rb +236 -0
- data/app/controllers/attachments_controller.rb +97 -0
- data/app/controllers/blog_posts_controller.rb +50 -0
- data/app/controllers/bookmarks_controller.rb +33 -0
- data/app/controllers/corporations_controller.rb +22 -0
- data/app/controllers/errors_controller.rb +27 -0
- data/app/controllers/events_controller.rb +262 -0
- data/app/controllers/groups_controller.rb +257 -0
- data/app/controllers/officers_controller.rb +28 -0
- data/app/controllers/pages_controller.rb +67 -0
- data/app/controllers/posts_controller.rb +81 -0
- data/app/controllers/profile_fields_controller.rb +132 -0
- data/app/controllers/root_controller.rb +35 -0
- data/app/controllers/search_controller.rb +149 -0
- data/app/controllers/sessions_controller.rb +21 -0
- data/app/controllers/setup_controller.rb +80 -0
- data/app/controllers/statistics_controller.rb +38 -0
- data/app/controllers/status_group_memberships_controller.rb +28 -0
- data/app/controllers/terms_of_use_controller.rb +35 -0
- data/app/controllers/user_accounts_controller.rb +55 -0
- data/app/controllers/user_group_memberships_controller.rb +75 -0
- data/app/controllers/user_settings_controller.rb +57 -0
- data/app/controllers/users_controller.rb +125 -0
- data/app/controllers/workflows_controller.rb +19 -0
- data/app/helpers/application_helper.rb +25 -0
- data/app/helpers/attachments_helper.rb +2 -0
- data/app/helpers/auto_completion_helper.rb +33 -0
- data/app/helpers/avatar_helper.rb +70 -0
- data/app/helpers/bookmarks_helper.rb +22 -0
- data/app/helpers/box_helper.rb +56 -0
- data/app/helpers/breadcrumbs_helper.rb +62 -0
- data/app/helpers/corporate_vita_helper.rb +34 -0
- data/app/helpers/events_helper.rb +28 -0
- data/app/helpers/flash_helper.rb +60 -0
- data/app/helpers/footer_helper.rb +13 -0
- data/app/helpers/galleria_helper.rb +13 -0
- data/app/helpers/groups_helper.rb +66 -0
- data/app/helpers/horizontal_nav_helper.rb +11 -0
- data/app/helpers/i18n_helper.rb +10 -0
- data/app/helpers/icon_helper.rb +35 -0
- data/app/helpers/mailer_helper.rb +7 -0
- data/app/helpers/map_helper.rb +26 -0
- data/app/helpers/markdown_helper.rb +22 -0
- data/app/helpers/markup_helper.rb +25 -0
- data/app/helpers/officers_helper.rb +13 -0
- data/app/helpers/password_helper.rb +23 -0
- data/app/helpers/profile_field_helper.rb +40 -0
- data/app/helpers/profile_helper.rb +69 -0
- data/app/helpers/quick_link_helper.rb +53 -0
- data/app/helpers/special_pages_helper.rb +9 -0
- data/app/helpers/structureable_helper.rb +11 -0
- data/app/helpers/sublime_helper.rb +16 -0
- data/app/helpers/title_helper.rb +52 -0
- data/app/helpers/tool_buttons_helper.rb +74 -0
- data/app/helpers/unicode_helper.rb +9 -0
- data/app/helpers/users_helper.rb +13 -0
- data/app/helpers/vertical_nav_helper.rb +84 -0
- data/app/helpers/workflows_helper.rb +37 -0
- data/app/mailers/event_mailer.rb +13 -0
- data/app/mailers/post_mailer.rb +11 -0
- data/app/mailers/user_account_mailer.rb +17 -0
- data/app/models/ability.rb +321 -0
- data/app/models/active_record_associations_patches.rb +26 -0
- data/app/models/active_record_cache_extension.rb +152 -0
- data/app/models/active_record_find_by_extension.rb +20 -0
- data/app/models/active_record_json_url_extension.rb +51 -0
- data/app/models/active_record_metric_events_extension.rb +22 -0
- data/app/models/active_record_read_only_extension.rb +35 -0
- data/app/models/active_record_update_attributes_bip_extension.rb +24 -0
- data/app/models/address_label.rb +50 -0
- data/app/models/app_version.rb +49 -0
- data/app/models/array.rb +15 -0
- data/app/models/attachment.rb +76 -0
- data/app/models/bashpass_password.rb +32 -0
- data/app/models/blog_post.rb +2 -0
- data/app/models/bookmark.rb +67 -0
- data/app/models/cache_additions.rb +15 -0
- data/app/models/cache_store_extension.rb +78 -0
- data/app/models/concerns/user_avatar.rb +16 -0
- data/app/models/concerns/user_corporations.rb +44 -0
- data/app/models/concerns/user_date_of_birth.rb +74 -0
- data/app/models/concerns/user_profile.rb +102 -0
- data/app/models/corporation.rb +80 -0
- data/app/models/dag_link.rb +29 -0
- data/app/models/event.rb +235 -0
- data/app/models/flag.rb +18 -0
- data/app/models/flagable.rb +62 -0
- data/app/models/geo_location.rb +92 -0
- data/app/models/group.rb +224 -0
- data/app/models/group_mixins/corporations.rb +141 -0
- data/app/models/group_mixins/developers.rb +41 -0
- data/app/models/group_mixins/everyone.rb +72 -0
- data/app/models/group_mixins/guests.rb +61 -0
- data/app/models/group_mixins/hidden_users.rb +43 -0
- data/app/models/group_mixins/import.rb +321 -0
- data/app/models/group_mixins/memberships.rb +207 -0
- data/app/models/group_mixins/officers.rb +47 -0
- data/app/models/group_mixins/roles.rb +41 -0
- data/app/models/horizontal_nav.rb +32 -0
- data/app/models/last_seen_activity.rb +10 -0
- data/app/models/list_export.rb +359 -0
- data/app/models/may_need_review.rb +54 -0
- data/app/models/metric_logger.rb +83 -0
- data/app/models/nav_node.rb +169 -0
- data/app/models/navable.rb +46 -0
- data/app/models/object_to_b_extension.rb +12 -0
- data/app/models/page.rb +212 -0
- data/app/models/password.rb +28 -0
- data/app/models/post.rb +199 -0
- data/app/models/profile.rb +36 -0
- data/app/models/profile_field.rb +196 -0
- data/app/models/profile_field_mixins/has_child_profile_fields.rb +114 -0
- data/app/models/profile_field_types/about.rb +9 -0
- data/app/models/profile_field_types/academic_degree.rb +10 -0
- data/app/models/profile_field_types/address.rb +88 -0
- data/app/models/profile_field_types/bank_account.rb +12 -0
- data/app/models/profile_field_types/competence.rb +7 -0
- data/app/models/profile_field_types/custom.rb +12 -0
- data/app/models/profile_field_types/date.rb +14 -0
- data/app/models/profile_field_types/description.rb +15 -0
- data/app/models/profile_field_types/email.rb +20 -0
- data/app/models/profile_field_types/employment.rb +24 -0
- data/app/models/profile_field_types/general.rb +9 -0
- data/app/models/profile_field_types/homepage.rb +19 -0
- data/app/models/profile_field_types/name_surrounding.rb +11 -0
- data/app/models/profile_field_types/organization.rb +24 -0
- data/app/models/profile_field_types/phone.rb +37 -0
- data/app/models/profile_field_types/professional_category.rb +8 -0
- data/app/models/profile_field_types/study.rb +18 -0
- data/app/models/profile_section.rb +49 -0
- data/app/models/profileable.rb +58 -0
- data/app/models/profileable_mixins/address.rb +118 -0
- data/app/models/relationship.rb +78 -0
- data/app/models/role.rb +164 -0
- data/app/models/setting.rb +9 -0
- data/app/models/status_group.rb +28 -0
- data/app/models/status_group_membership.rb +189 -0
- data/app/models/status_group_membership_info.rb +54 -0
- data/app/models/structureable.rb +164 -0
- data/app/models/structureable_mixins/has_special_groups.rb +127 -0
- data/app/models/structureable_mixins/roles.rb +275 -0
- data/app/models/user.rb +878 -0
- data/app/models/user_account.rb +162 -0
- data/app/models/user_alias.rb +112 -0
- data/app/models/user_group_membership.rb +300 -0
- data/app/models/user_group_membership_mixins/validity_range.rb +206 -0
- data/app/models/user_group_membership_mixins/validity_range_for_indirect_memberships.rb +160 -0
- data/app/models/user_mixins/identification.rb +36 -0
- data/app/models/user_mixins/memberships.rb +75 -0
- data/app/models/workflow.rb +40 -0
- data/app/models/workflow_kit/add_to_group_brick.rb +21 -0
- data/app/models/workflow_kit/destroy_account_and_end_memberships_if_needed_brick.rb +19 -0
- data/app/models/workflow_kit/last_membership_needs_review_brick.rb +19 -0
- data/app/models/workflow_kit/mark_as_deceased_brick.rb +17 -0
- data/app/models/workflow_kit/remove_from_group_brick.rb +27 -0
- data/app/models/workflow_kit/test_brick.rb +13 -0
- data/app/pdfs/address_labels_pdf.rb +157 -0
- data/app/presenters/base_presenter.rb +52 -0
- data/app/presenters/horizontal_nav_presenter.rb +106 -0
- data/app/uploaders/attachment_uploader.rb +148 -0
- data/app/views/activities/index.html.haml +25 -0
- data/app/views/attachments/_attachment.html.haml +20 -0
- data/app/views/attachments/_description.html.haml +11 -0
- data/app/views/attachments/_documents.html.haml +17 -0
- data/app/views/attachments/_drop_field.html.haml +46 -0
- data/app/views/attachments/_picture.html.haml +2 -0
- data/app/views/attachments/_pictures.html.haml +10 -0
- data/app/views/attachments/_video.html.haml +8 -0
- data/app/views/attachments/create.js.erb +1 -0
- data/app/views/attachments/destroy.js.erb +1 -0
- data/app/views/blog_posts/create.js.erb +17 -0
- data/app/views/bookmarks/_list.html.haml +7 -0
- data/app/views/bookmarks/update.js.erb +4 -0
- data/app/views/devise/mailer/reset_password_instructions.html.haml +8 -0
- data/app/views/devise/passwords/edit.html.haml +1 -0
- data/app/views/devise/passwords/new.html.haml +12 -0
- data/app/views/devise/registrations/edit.html.haml +1 -0
- data/app/views/devise/sessions/new.html.haml +14 -0
- data/app/views/devise/shared/_links.haml +26 -0
- data/app/views/errors/show.html.haml +5 -0
- data/app/views/errors/unauthorized.html.haml +7 -0
- data/app/views/event_mailer/invitation_email.html.erb +63 -0
- data/app/views/events/_event_details.html.haml +54 -0
- data/app/views/events/_events_lis.html.haml +29 -0
- data/app/views/events/_invitation_text.html.erb +8 -0
- data/app/views/events/_pictures.html.haml +5 -0
- data/app/views/events/_public_index.html.haml +16 -0
- data/app/views/events/index.html.haml +24 -0
- data/app/views/events/show.html.haml +50 -0
- data/app/views/groups/_address_labels_modal.html.haml +27 -0
- data/app/views/groups/_export_button.html.haml +66 -0
- data/app/views/groups/_group_list.html.haml +25 -0
- data/app/views/groups/_member_avatars.html.haml +4 -0
- data/app/views/groups/_member_list.html.haml +15 -0
- data/app/views/groups/index.html.erb +11 -0
- data/app/views/groups/index_mine.html.haml +7 -0
- data/app/views/groups/show.html.haml +79 -0
- data/app/views/last_seen_activities/_index.html.haml +19 -0
- data/app/views/layouts/_add_structureable_additions.html.haml +15 -0
- data/app/views/layouts/_box.html.haml +16 -0
- data/app/views/layouts/_help_button.html.haml +1 -0
- data/app/views/layouts/_role_preview_switcher.html.haml +20 -0
- data/app/views/layouts/_session_bar_avatar.html.haml +1 -0
- data/app/views/layouts/_vertical_nav.html.haml +5 -0
- data/app/views/layouts/bootstrap.html.haml +146 -0
- data/app/views/layouts/mercury.html.erb +23 -0
- data/app/views/officers/_history_notice.html.haml +4 -0
- data/app/views/officers/_officers_box.html.haml +33 -0
- data/app/views/officers/_officers_group_entry.html.haml +45 -0
- data/app/views/pages/_attachments.html.haml +21 -0
- data/app/views/pages/_page.html.haml +28 -0
- data/app/views/pages/_pictures.html.haml +2 -0
- data/app/views/pages/_videos.html.erb +8 -0
- data/app/views/pages/show.html.haml +39 -0
- data/app/views/post_mailer/post_email.html.erb +17 -0
- data/app/views/posts/_new_post_template_text.html.haml +6 -0
- data/app/views/posts/_post.html.haml +13 -0
- data/app/views/posts/_post_quote.html.haml +18 -0
- data/app/views/posts/_posts.html.haml +6 -0
- data/app/views/posts/index.html.haml +9 -0
- data/app/views/posts/new.html.haml +42 -0
- data/app/views/posts/show.html.haml +8 -0
- data/app/views/profile_fields/_postal_address_flag_switch.html.haml +21 -0
- data/app/views/profile_fields/_profile_field.html.haml +41 -0
- data/app/views/profile_fields/create.js.erb +26 -0
- data/app/views/profile_fields/destroy.js.erb +3 -0
- data/app/views/profiles/_add_profile_field_button.html.haml +15 -0
- data/app/views/profiles/_profile_section_ul.html.haml +8 -0
- data/app/views/profiles/_section.html.haml +28 -0
- data/app/views/profiles/_send_group_message_button.html.haml +4 -0
- data/app/views/root/_latest_members_box.html.haml +19 -0
- data/app/views/root/_start_page_elements.html.haml +0 -0
- data/app/views/root/_what_is_new.html.haml +21 -0
- data/app/views/search/_preview_blog_post.html.haml +1 -0
- data/app/views/search/_preview_corporation.html.haml +5 -0
- data/app/views/search/_preview_group.html.haml +4 -0
- data/app/views/search/_preview_page.html.haml +11 -0
- data/app/views/search/_preview_user.html.haml +14 -0
- data/app/views/search/index.html.haml +42 -0
- data/app/views/setup/index.html.haml +56 -0
- data/app/views/shared/_add_structureable.html.haml +22 -0
- data/app/views/shared/_authorization_info.html.haml +22 -0
- data/app/views/shared/_flags.html.haml +5 -0
- data/app/views/shared/_markdown_help.html.haml +4 -0
- data/app/views/shared/_search_box.html.haml +2 -0
- data/app/views/shared/_upcoming_events.html.haml +33 -0
- data/app/views/statistics/index.html.haml +16 -0
- data/app/views/statistics/show.html.haml +13 -0
- data/app/views/terms_of_use/_checkbox.html.haml +1 -0
- data/app/views/terms_of_use/_terms.html.haml +1 -0
- data/app/views/terms_of_use/index.html.haml +19 -0
- data/app/views/user_account_mailer/welcome_email.html.erb +32 -0
- data/app/views/user_accounts/_change_password.html.haml +149 -0
- data/app/views/user_accounts/_user_account.html.haml +39 -0
- data/app/views/user_group_memberships/_list_item.html.haml +9 -0
- data/app/views/user_group_memberships/_memberships_table.html.haml +56 -0
- data/app/views/user_group_memberships/_new.html.haml +18 -0
- data/app/views/user_group_memberships/create.js.erb +9 -0
- data/app/views/user_group_memberships/index.html.haml +5 -0
- data/app/views/user_settings/show.html.haml +36 -0
- data/app/views/users/_avatar.html.haml +16 -0
- data/app/views/users/_communication_box.html.haml +8 -0
- data/app/views/users/_corporate_vita.html.haml +23 -0
- data/app/views/users/_dead_badge.html.haml +3 -0
- data/app/views/users/_deceased_modal.html.haml +24 -0
- data/app/views/users/_hidden_badge.html.haml +4 -0
- data/app/views/users/_hidden_flag_switch.html.haml +20 -0
- data/app/views/users/_special_general_info_fields.html.haml +10 -0
- data/app/views/users/_user_corporation_attribute.html.haml +6 -0
- data/app/views/users/_user_name_attribute.html.haml +4 -0
- data/app/views/users/_user_title.html.haml +5 -0
- data/app/views/users/_workflow_triggers.html.haml +23 -0
- data/app/views/users/new.html.haml +55 -0
- data/app/views/users/show.html.haml +79 -0
- data/config/environment.rb +5 -0
- data/config/initializers/active_record_cache_extension.rb +1 -0
- data/config/initializers/active_record_find_by_extension.rb +1 -0
- data/config/initializers/active_record_flagable_extension.rb +2 -0
- data/config/initializers/active_record_json_url_extension.rb +1 -0
- data/config/initializers/active_record_may_need_review_extension.rb +2 -0
- data/config/initializers/active_record_metric_events_extension.rb +1 -0
- data/config/initializers/active_record_navable_extension.rb +6 -0
- data/config/initializers/active_record_profileable_extension.rb +4 -0
- data/config/initializers/active_record_read_only_extension.rb +1 -0
- data/config/initializers/active_record_structureable_extension.rb +3 -0
- data/config/initializers/active_record_update_attributes_bip_extension.rb +1 -0
- data/config/initializers/array_extension.rb +1 -0
- data/config/initializers/best_in_place_display_definitions.rb +31 -0
- data/config/initializers/cache_store_extension.rb +1 -0
- data/config/initializers/devise.rb +240 -0
- data/config/initializers/fnordmetric.rb +14 -0
- data/config/initializers/formtastic.rb +76 -0
- data/config/initializers/group_type_column_patches.rb +11 -0
- data/config/initializers/mime_types.rb +1 -0
- data/config/initializers/mini_profiler.rb +32 -0
- data/config/initializers/object_to_b_extension.rb +1 -0
- data/config/initializers/refile.rb +22 -0
- data/config/initializers/sidekiq.rb +12 -0
- data/config/locales/attachments/de.yml +33 -0
- data/config/locales/bookmarks/de.yml +3 -0
- data/config/locales/bookmarks/en.yml +3 -0
- data/config/locales/common_expressions/de.yml +5 -0
- data/config/locales/common_expressions/en.yml +5 -0
- data/config/locales/companies/de.yml +4 -0
- data/config/locales/companies/en.yml +4 -0
- data/config/locales/de.yml +30 -0
- data/config/locales/devise/de.yml +60 -0
- data/config/locales/devise/en.yml +62 -0
- data/config/locales/en.yml +25 -0
- data/config/locales/events/de.yml +34 -0
- data/config/locales/events/en.yml +34 -0
- data/config/locales/forms/de.yml +3 -0
- data/config/locales/groups/de.yml +56 -0
- data/config/locales/groups/en.yml +47 -0
- data/config/locales/officers/de.yml +10 -0
- data/config/locales/pages/de.yml +15 -0
- data/config/locales/pages/en.yml +14 -0
- data/config/locales/pagination/de.yml +6 -0
- data/config/locales/pagination/en.yml +5 -0
- data/config/locales/password_strength/de.yml +9 -0
- data/config/locales/password_strength/en.yml +9 -0
- data/config/locales/posts/de.yml +9 -0
- data/config/locales/profile_fields/de.yml +78 -0
- data/config/locales/profile_fields/en.yml +22 -0
- data/config/locales/profiles/de.yml +47 -0
- data/config/locales/profiles/en.yml +44 -0
- data/config/locales/roles/de.yml +9 -0
- data/config/locales/root/de.yml +3 -0
- data/config/locales/root/en.yml +3 -0
- data/config/locales/search/de.yml +11 -0
- data/config/locales/search/en.yml +11 -0
- data/config/locales/sessions/de.yml +37 -0
- data/config/locales/sessions/en.yml +37 -0
- data/config/locales/setup/de.yml +26 -0
- data/config/locales/setup/en.yml +26 -0
- data/config/locales/statistics/de.yml +6 -0
- data/config/locales/terms_of_use/de.yml +6 -0
- data/config/locales/tools/de.yml +9 -0
- data/config/locales/tools/en.yml +9 -0
- data/config/locales/user_accounts/de.yml +16 -0
- data/config/locales/user_accounts/en.yml +13 -0
- data/config/locales/user_settings/de.yml +9 -0
- data/config/locales/users/de.yml +82 -0
- data/config/locales/users/en.yml +51 -0
- data/config/locales/workflows/de.yml +4 -0
- data/config/locales/workflows/en.yml +4 -0
- data/config/routes.rb +104 -0
- data/db/migrate/20120403002734_create_users.rb +12 -0
- data/db/migrate/20120403011601_create_profile_fields.rb +11 -0
- data/db/migrate/20120403161549_remove_user_email_column.rb +5 -0
- data/db/migrate/20120405222050_encrypt_password.rb +8 -0
- data/db/migrate/20120425161138_create_dag_links.rb +14 -0
- data/db/migrate/20120425162644_create_pages.rb +10 -0
- data/db/migrate/20120426023322_create_groups.rb +9 -0
- data/db/migrate/20120426090436_create_nav_nodes.rb +18 -0
- data/db/migrate/20120427021934_create_user_accounts.rb +12 -0
- data/db/migrate/20120427044338_add_foreign_key_to_user_accounts.rb +7 -0
- data/db/migrate/20120427150156_add_group_token.rb +8 -0
- data/db/migrate/20120507165551_make_profile_fields_polymorphic.rb +11 -0
- data/db/migrate/20120508130729_add_profile_field_acts_as_tree.rb +9 -0
- data/db/migrate/20120508152233_change_profile_field_value_to_text.rb +9 -0
- data/db/migrate/20120508201550_add_group_internal_token.rb +11 -0
- data/db/migrate/20120511090234_create_workflows.rb +9 -0
- data/db/migrate/20120701115059_add_password_digest_to_user_accounts.rb +5 -0
- data/db/migrate/20120710193308_remove_salt_from_user_accounts.rb +5 -0
- data/db/migrate/20120713102445_add_deleted_at_to_dag_links.rb +5 -0
- data/db/migrate/20120722005022_create_workflow_kit_workflows.workflow_kit.rb +11 -0
- data/db/migrate/20120722005023_create_workflow_kit_steps.workflow_kit.rb +12 -0
- data/db/migrate/20120722005024_create_workflow_kit_parameters.workflow_kit.rb +12 -0
- data/db/migrate/20120723165226_add_female_to_users.rb +5 -0
- data/db/migrate/20120811140509_create_flags.rb +11 -0
- data/db/migrate/20120814100529_create_attachments.rb +13 -0
- data/db/migrate/20120815205610_add_content_type_and_file_size_to_attachments.rb +6 -0
- data/db/migrate/20130118220014_add_relationships_table_without_dag.rb +10 -0
- data/db/migrate/20130207214331_create_events.rb +12 -0
- data/db/migrate/20130208215253_create_status_group_membership_infos.rb +11 -0
- data/db/migrate/20130220184943_create_stars.rb +11 -0
- data/db/migrate/20130309193623_add_devise_to_user_accounts.rb +72 -0
- data/db/migrate/20130310003840_rename_stars_to_bookmarks.rb +9 -0
- data/db/migrate/20130310004622_fix_column_names_for_bookmarks.rb +6 -0
- data/db/migrate/20130313211414_create_geo_infos.rb +13 -0
- data/db/migrate/20130313234131_create_geo_locations.rb +16 -0
- data/db/migrate/20130314011638_drop_geo_infos.rb +5 -0
- data/db/migrate/20130315072759_add_invalid_to_geo_location.rb +5 -0
- data/db/migrate/20130315073149_exchange_invalid_for_queried_at_in_geo_location.rb +8 -0
- data/db/migrate/20130320003051_add_redirect_to_to_page.rb +5 -0
- data/db/migrate/20130329231657_create_posts.rb +15 -0
- data/db/migrate/20130404223735_add_entire_message_to_posts.rb +5 -0
- data/db/migrate/20130409192959_add_author_to_page.rb +5 -0
- data/db/migrate/20130908011215_add_type_to_pages.rb +5 -0
- data/db/migrate/20131115114715_validity_range_for_dag_links.rb +16 -0
- data/db/migrate/20140611170430_create_activities.rb +23 -0
- data/db/migrate/20140808223512_create_last_seen_activities.rb +12 -0
- data/db/migrate/20141008101744_add_location_to_events.rb +5 -0
- data/db/migrate/20141010130344_add_publish_on_website_to_events.rb +6 -0
- data/db/migrate/20141010134227_add_auth_token_to_user_accounts.rb +5 -0
- data/db/migrate/20141018143323_add_accepted_terms_to_users.rb +6 -0
- data/db/migrate/20141018221659_add_author_to_attachments.rb +5 -0
- data/db/migrate/20141102223954_add_body_to_groups.rb +5 -0
- data/db/migrate/20141110193830_create_settings.rb +17 -0
- data/db/migrate/20141202140522_add_indices.rb +6 -0
- data/db/migrate/20141209161946_add_keys.rb +20 -0
- data/db/migrate/20150127013809_add_incognito_to_users.rb +5 -0
- data/db/migrate/20150129194501_add_indices_for_polymorphic_references.rb +13 -0
- data/db/migrate/20150304192448_add_type_to_groups.rb +5 -0
- data/db/migrate/20150313221004_add_avatar_id_to_users.rb +5 -0
- data/lib/best_in_place/controller_extensions.rb +25 -0
- data/lib/best_in_place/helper.rb +127 -0
- data/lib/tasks/db_bootstrap.rake +37 -0
- data/lib/tasks/your_platform_tasks.rake +4 -0
- data/lib/templates/erb/scaffold/_form.html.erb +11 -0
- data/lib/your_platform.rb +6 -2
- data/lib/your_platform/engine.rb +127 -0
- data/lib/your_platform/version.rb +1 -1
- data/spec/factories/attachment.rb +12 -0
- data/spec/factories/blog_post.rb +10 -0
- data/spec/factories/company.rb +7 -0
- data/spec/factories/corporation.rb +20 -0
- data/spec/factories/event.rb +13 -0
- data/spec/factories/group.rb +36 -0
- data/spec/factories/html_email.eml +1059 -0
- data/spec/factories/mail_message.rb +30 -0
- data/spec/factories/page.rb +10 -0
- data/spec/factories/relationship.rb +13 -0
- data/spec/factories/status_group_membership.rb +21 -0
- data/spec/factories/user.rb +97 -0
- data/spec/factories/workflow.rb +44 -0
- data/spec/features/blog_post_spec.rb +46 -0
- data/spec/features/corporate_vita_events_spec.rb +114 -0
- data/spec/features/corporate_vita_spec.rb +258 -0
- data/spec/features/edit_mode_after_clicking_a_link_spec.rb +20 -0
- data/spec/features/events_spec.rb +356 -0
- data/spec/features/group_export_spec.rb +19 -0
- data/spec/features/group_post_spec.rb +89 -0
- data/spec/features/groups_of_groups_page_spec.rb +67 -0
- data/spec/features/groups_page_spec.rb +66 -0
- data/spec/features/groups_table_spec.rb +32 -0
- data/spec/features/help_page_spec.rb +22 -0
- data/spec/features/intranet_root_page_spec.rb +18 -0
- data/spec/features/locales_spec.rb +36 -0
- data/spec/features/maps_spec.rb +53 -0
- data/spec/features/mini_profiler_spec.rb +37 -0
- data/spec/features/officers_spec.rb +61 -0
- data/spec/features/page_redirects_spec.rb +23 -0
- data/spec/features/page_spec.rb +20 -0
- data/spec/features/postal_address_flag_spec.rb +46 -0
- data/spec/features/relationships_on_user_page_spec.rb +78 -0
- data/spec/features/review_membership_spec.rb +44 -0
- data/spec/features/search_field_spec.rb +121 -0
- data/spec/features/setup_spec.rb +63 -0
- data/spec/features/user_change_date_of_birth_spec.rb +26 -0
- data/spec/features/vertical_nav_spec.rb +27 -0
- data/spec/features/what_is_new_box_spec.rb +33 -0
- data/spec/helpers/attachments_helper_spec.rb +15 -0
- data/spec/models/ability_spec.rb +93 -0
- data/spec/models/active_record_cache_extension_spec.rb +177 -0
- data/spec/models/active_record_find_by_extension_spec.rb +26 -0
- data/spec/models/active_record_json_url_extension_spec.rb +79 -0
- data/spec/models/address_label_spec.rb +144 -0
- data/spec/models/app_version_spec.rb +38 -0
- data/spec/models/attachment_spec.rb +5 -0
- data/spec/models/bookmark_spec.rb +70 -0
- data/spec/models/concerns/user_corporations_spec.rb +71 -0
- data/spec/models/corporation_spec.rb +128 -0
- data/spec/models/dag_link_spec.rb +48 -0
- data/spec/models/event_spec.rb +267 -0
- data/spec/models/flag_spec.rb +20 -0
- data/spec/models/flagable_spec.rb +55 -0
- data/spec/models/geo_location_spec.rb +126 -0
- data/spec/models/group_mixins/corporations_spec.rb +95 -0
- data/spec/models/group_mixins/everyone_spec.rb +64 -0
- data/spec/models/group_mixins/guests_spec.rb +75 -0
- data/spec/models/group_mixins/hidden_users_spec.rb +21 -0
- data/spec/models/group_mixins/import_spec.rb +93 -0
- data/spec/models/group_mixins/memberships_spec.rb +303 -0
- data/spec/models/group_mixins/officers_spec.rb +63 -0
- data/spec/models/group_mixins/roles_spec.rb +46 -0
- data/spec/models/group_spec.rb +341 -0
- data/spec/models/list_export_spec.rb +155 -0
- data/spec/models/may_need_review_spec.rb +114 -0
- data/spec/models/nav_node_spec.rb +277 -0
- data/spec/models/navable_spec.rb +54 -0
- data/spec/models/page_spec.rb +185 -0
- data/spec/models/post_spec.rb +271 -0
- data/spec/models/profile_field_mixins/has_child_profile_fields_spec.rb +73 -0
- data/spec/models/profile_field_spec.rb +482 -0
- data/spec/models/profile_section_spec.rb +89 -0
- data/spec/models/profile_spec.rb +74 -0
- data/spec/models/profileable_mixins/adress_spec.rb +93 -0
- data/spec/models/profileable_spec.rb +152 -0
- data/spec/models/relationship_spec.rb +113 -0
- data/spec/models/status_group_membership_spec.rb +350 -0
- data/spec/models/status_group_spec.rb +103 -0
- data/spec/models/structureable_mixins/has_special_groups_spec.rb +479 -0
- data/spec/models/structureable_mixins/roles_spec.rb +517 -0
- data/spec/models/structureable_spec.rb +128 -0
- data/spec/models/user_account_spec.rb +142 -0
- data/spec/models/user_alias_spec.rb +57 -0
- data/spec/models/user_group_membership_mixins/validity_range_for_indirect_memberships_spec.rb +291 -0
- data/spec/models/user_group_membership_mixins/validity_range_spec.rb +293 -0
- data/spec/models/user_group_membership_spec.rb +428 -0
- data/spec/models/user_mixins/identification_spec.rb +27 -0
- data/spec/models/user_mixins/memberships_spec.rb +138 -0
- data/spec/models/user_spec.rb +1794 -0
- data/spec/old_yp_spec_helper.rb +46 -0
- data/spec/spec_helper.rb +350 -0
- data/spec/support/auto_complete.rb +22 -0
- data/spec/support/capybara/flash_helpers.rb +37 -0
- data/spec/support/capybara/profile_steps.rb +73 -0
- data/spec/support/capybara/session_steps.rb +53 -0
- data/spec/support/capybara/user_account_helpers.rb +15 -0
- data/spec/support/debug.rb +8 -0
- data/spec/support/devise-controller_macros.rb +15 -0
- data/spec/support/geocoder/stubs.rb +60 -0
- data/spec/support/press_enter.rb +15 -0
- data/spec/support/time_travel.rb +9 -0
- data/spec/support/uploads/image-upload.png +0 -0
- data/spec/support/uploads/pdf-upload.pdf +0 -0
- data/spec/support/wait_for_ajax.rb +39 -0
- data/spec/support/wait_for_cache.rb +7 -0
- data/spec/uploaders/attachment_uploader_spec.rb +47 -0
- data/vendor/assets/images/flags.png +0 -0
- data/vendor/assets/images/galleria/classic-loader.gif +0 -0
- data/vendor/assets/images/galleria/classic-map.png +0 -0
- data/vendor/assets/javascripts/best_in_place_datetime.js.coffee +45 -0
- data/vendor/assets/javascripts/galleria-classic.js +100 -0
- data/vendor/assets/javascripts/galleria.js +6919 -0
- data/vendor/assets/javascripts/gmaps4rails.js +2 -0
- data/vendor/assets/javascripts/gmaps4rails/all.js +1 -0
- data/vendor/assets/javascripts/gmaps4rails/base.coffee +1 -0
- data/vendor/assets/javascripts/gmaps4rails/base/common.coffee +43 -0
- data/vendor/assets/javascripts/gmaps4rails/base/configuration.coffee +7 -0
- data/vendor/assets/javascripts/gmaps4rails/base/gmaps.coffee +13 -0
- data/vendor/assets/javascripts/gmaps4rails/base/interfaces/basic_interface.coffee +15 -0
- data/vendor/assets/javascripts/gmaps4rails/base/interfaces/controller_interface.coffee +15 -0
- data/vendor/assets/javascripts/gmaps4rails/base/interfaces/map_interface.coffee +27 -0
- data/vendor/assets/javascripts/gmaps4rails/base/interfaces/marker_interface.coffee +15 -0
- data/vendor/assets/javascripts/gmaps4rails/base/main.coffee +124 -0
- data/vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/circle_controller.coffee +29 -0
- data/vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/kml_controller.coffee +5 -0
- data/vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/marker_controller.coffee +76 -0
- data/vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/polygon_controller.coffee +29 -0
- data/vendor/assets/javascripts/gmaps4rails/base/main_controller_extensions/polyline_controller.coffee +29 -0
- data/vendor/assets/javascripts/gmaps4rails/base/objects/circle.coffee +12 -0
- data/vendor/assets/javascripts/gmaps4rails/base/objects/kml.coffee +8 -0
- data/vendor/assets/javascripts/gmaps4rails/base/objects/map.coffee +62 -0
- data/vendor/assets/javascripts/gmaps4rails/base/objects/marker.coffee +24 -0
- data/vendor/assets/javascripts/gmaps4rails/base/objects/polygon.coffee +11 -0
- data/vendor/assets/javascripts/gmaps4rails/base/objects/polyline.coffee +11 -0
- data/vendor/assets/javascripts/gmaps4rails/bing.coffee +1 -0
- data/vendor/assets/javascripts/gmaps4rails/bing/main.coffee +29 -0
- data/vendor/assets/javascripts/gmaps4rails/bing/objects/map.coffee +63 -0
- data/vendor/assets/javascripts/gmaps4rails/bing/objects/marker.coffee +78 -0
- data/vendor/assets/javascripts/gmaps4rails/bing/shared.coffee +20 -0
- data/vendor/assets/javascripts/gmaps4rails/google.coffee +1 -0
- data/vendor/assets/javascripts/gmaps4rails/google/main.coffee +47 -0
- data/vendor/assets/javascripts/gmaps4rails/google/objects/circle.coffee +38 -0
- data/vendor/assets/javascripts/gmaps4rails/google/objects/kml.coffee +16 -0
- data/vendor/assets/javascripts/gmaps4rails/google/objects/map.coffee +71 -0
- data/vendor/assets/javascripts/gmaps4rails/google/objects/marker.coffee +114 -0
- data/vendor/assets/javascripts/gmaps4rails/google/objects/polygon.coffee +38 -0
- data/vendor/assets/javascripts/gmaps4rails/google/objects/polyline.coffee +49 -0
- data/vendor/assets/javascripts/gmaps4rails/google/shared.coffee +27 -0
- data/vendor/assets/javascripts/gmaps4rails/openlayers.coffee +1 -0
- data/vendor/assets/javascripts/gmaps4rails/openlayers/main.coffee +138 -0
- data/vendor/assets/javascripts/gmaps4rails/openlayers/objects/map.coffee +49 -0
- data/vendor/assets/javascripts/gmaps4rails/openlayers/objects/marker.coffee +68 -0
- data/vendor/assets/javascripts/gmaps4rails/openlayers/objects/polyline.coffee +39 -0
- data/vendor/assets/javascripts/gmaps4rails/openlayers/shared.coffee +19 -0
- data/vendor/assets/javascripts/jquery-ui-timepicker-addon.js +2223 -0
- data/vendor/assets/javascripts/jquery-ui-timepicker-de.js +26 -0
- data/vendor/assets/javascripts/jquery.ui.datepicker-de.js +23 -0
- data/vendor/assets/javascripts/password_strength.js +149 -0
- data/vendor/assets/javascripts/zxcvbn.js +43 -0
- data/vendor/assets/stylesheets/flags.css.scss +259 -0
- data/vendor/assets/stylesheets/galleria-classic.css.scss +239 -0
- data/vendor/assets/stylesheets/gmaps4rails.css +24 -0
- data/vendor/assets/stylesheets/mercury.css +24 -0
- data/vendor/scripts/bashpass/README.md +29 -0
- data/vendor/scripts/bashpass/bashpass +124 -0
- data/vendor/scripts/bashpass/bashpass-APACHE-LICENSE +201 -0
- data/vendor/scripts/bashpass/german.dic +40794 -0
- metadata +1540 -16
- data/.gitignore +0 -17
- data/Gemfile +0 -4
- data/LICENSE.txt +0 -4
- data/your_platform.gemspec +0 -19
@@ -0,0 +1,148 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
3
|
+
require 'carrierwave/processing/mime_types'
|
4
|
+
|
5
|
+
class AttachmentUploader < CarrierWave::Uploader::Base
|
6
|
+
|
7
|
+
# Include RMagick or MiniMagick support:
|
8
|
+
include CarrierWave::MiniMagick
|
9
|
+
# include CarrierWave::MiniMagick
|
10
|
+
include CarrierWave::MimeTypes
|
11
|
+
|
12
|
+
# Include the Sprockets helpers for Rails 3.1+ asset pipeline compatibility:
|
13
|
+
# include Sprockets::Helpers::RailsHelper
|
14
|
+
# include Sprockets::Helpers::IsolatedHelper
|
15
|
+
|
16
|
+
# Choose what kind of storage to use for this uploader:
|
17
|
+
storage :file
|
18
|
+
# storage :fog
|
19
|
+
|
20
|
+
# Override the directory where uploaded files will be stored.
|
21
|
+
# This is a sensible default for uploaders that are meant to be mounted:
|
22
|
+
def store_dir
|
23
|
+
model.id || raise('Model has no id. But need one to save the file.')
|
24
|
+
"#{Rails.root}/uploads/#{Rails.env}_env/#{model.class.to_s.underscore}s/#{model.id}"
|
25
|
+
end
|
26
|
+
def cache_dir
|
27
|
+
# model.id || raise('Model has no id. But need one to save the file.')
|
28
|
+
# "#{Rails.root}/tmp/uploads/#{Rails.env}_env/#{model.class.to_s.underscore}s/#{model.id}"
|
29
|
+
Rails.root || raise('no rails root')
|
30
|
+
Rails.env || raise('no rails env')
|
31
|
+
"#{Rails.root}/tmp/uploads/#{Rails.env}_env/"
|
32
|
+
end
|
33
|
+
|
34
|
+
|
35
|
+
process :set_content_type
|
36
|
+
|
37
|
+
# Provide a default URL as a default if there hasn't been a file uploaded:
|
38
|
+
# def default_url
|
39
|
+
# # For Rails 3.1+ asset pipeline compatibility:
|
40
|
+
# # asset_path("fallback/" + [version_name, "default.png"].compact.join('_'))
|
41
|
+
#
|
42
|
+
# "/images/fallback/" + [version_name, "default.png"].compact.join('_')
|
43
|
+
# end
|
44
|
+
|
45
|
+
# Process files as they are uploaded:
|
46
|
+
# process :scale => [200, 300]
|
47
|
+
#
|
48
|
+
# def scale(width, height)
|
49
|
+
# # do something
|
50
|
+
# end
|
51
|
+
|
52
|
+
# Create different versions of your uploaded files:
|
53
|
+
version :thumb, :if => :image_or_pdf? do
|
54
|
+
process :resize_to_limit => [ 100, 100 ]
|
55
|
+
process :cover
|
56
|
+
process :convert => :png
|
57
|
+
process :modify_content_type
|
58
|
+
def full_filename( for_file = model.attachment.file )
|
59
|
+
"thumb.png"
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
version :medium, :if => :image? do
|
64
|
+
process :resize_to_limit => [ 800, 600 ]
|
65
|
+
end
|
66
|
+
|
67
|
+
#
|
68
|
+
# version :video_thumb, :if => :video? do
|
69
|
+
# process :create_video_thumb
|
70
|
+
# process :set_content_type => [ "image/jpeg" ]
|
71
|
+
# def full_filename( for_file = model.attachment.file )
|
72
|
+
# "video-thumb.jpg"
|
73
|
+
# end
|
74
|
+
# end
|
75
|
+
#
|
76
|
+
# def video?( new_file )
|
77
|
+
# new_file.content_type.include?('video')
|
78
|
+
# end
|
79
|
+
|
80
|
+
def image_or_pdf?( new_file )
|
81
|
+
new_file && new_file.content_type.present? &&
|
82
|
+
(new_file.content_type.include?('image') || new_file.content_type.include?('pdf'))
|
83
|
+
end
|
84
|
+
|
85
|
+
def image?( new_file )
|
86
|
+
new_file && new_file.content_type.present? && new_file.content_type.include?('image')
|
87
|
+
end
|
88
|
+
|
89
|
+
# This method filteres out all pages except for the cover page.
|
90
|
+
# This is used when making a thumbnail for pdf files. pdf files can have several pages,
|
91
|
+
# but only the first page should be used for the thumbnail, not one thumbnail for each page.
|
92
|
+
#
|
93
|
+
def cover
|
94
|
+
manipulate! do |frame, index|
|
95
|
+
frame if (not index) || index.zero?
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
def modify_content_type( *args )
|
100
|
+
type = args[0] || "image/png"
|
101
|
+
self.file.instance_variable_set( :@content_type, type )
|
102
|
+
end
|
103
|
+
#
|
104
|
+
# def create_video_thumb( *args )
|
105
|
+
# original_file = self.file.instance_variable_get( :@file )
|
106
|
+
# original_file_title = original_file.split( "/" ).last
|
107
|
+
# thumb_title = "thumb.jpg"
|
108
|
+
# tmp_thumb_file = original_file.gsub( original_file_title, thumb_title )
|
109
|
+
#
|
110
|
+
# `ffmpeg -itsoffset -4 -i '#{original_file}' -vcodec mjpeg -vframes 1 -an -f rawvideo -s 200x112 '#{tmp_thumb_file}'`
|
111
|
+
# `mv '#{tmp_thumb_file}' '#{original_file}'`
|
112
|
+
# end
|
113
|
+
|
114
|
+
# Add a white list of extensions which are allowed to be uploaded.
|
115
|
+
# For images you might use something like this:
|
116
|
+
# def extension_white_list
|
117
|
+
# %w(jpg jpeg gif png)
|
118
|
+
# end
|
119
|
+
|
120
|
+
# Override the filename of the uploaded files:
|
121
|
+
# Avoid using model.id or version_name here, see uploader/store.rb for details.
|
122
|
+
# def filename
|
123
|
+
# "original.#{model.attachment.file.extension}" if original_filename
|
124
|
+
# end
|
125
|
+
|
126
|
+
def url(version = nil)
|
127
|
+
model.id || raise('Model has no id.')
|
128
|
+
if version
|
129
|
+
filename = self.send(version).current_path
|
130
|
+
else
|
131
|
+
filename = self.current_path
|
132
|
+
end
|
133
|
+
filename || raise('No filename.')
|
134
|
+
extension = File.extname(filename).gsub(/^./, '')
|
135
|
+
basename = File.basename(filename).gsub(/.#{extension}$/, '')
|
136
|
+
Rails.application.routes.url_helpers.attachment_download_path(id: model.id, basename: basename, extension: extension, version: version )
|
137
|
+
end
|
138
|
+
|
139
|
+
def filetitle
|
140
|
+
File.basename(to_s)
|
141
|
+
end
|
142
|
+
|
143
|
+
|
144
|
+
def self.valid_versions
|
145
|
+
[:thumb, :medium, :video_thumb]
|
146
|
+
end
|
147
|
+
|
148
|
+
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
%h1 Aktivitäts-Log
|
2
|
+
%div
|
3
|
+
%table.activities.datatable.display
|
4
|
+
%thead
|
5
|
+
%tr
|
6
|
+
%th Time
|
7
|
+
%th Who
|
8
|
+
%th Action
|
9
|
+
%th Object
|
10
|
+
%th Params
|
11
|
+
%tbody
|
12
|
+
- @activities.each do |activity|
|
13
|
+
%tr
|
14
|
+
%td= activity.created_at
|
15
|
+
%td
|
16
|
+
- if activity.owner
|
17
|
+
= link_to activity.owner.title, activity.owner
|
18
|
+
%td= activity.key
|
19
|
+
- object_title = activity.trackable.title if activity.trackable.respond_to?(:title)
|
20
|
+
%td
|
21
|
+
- begin
|
22
|
+
= link_to (object_title || activity.trackable.class.name), activity.trackable
|
23
|
+
- rescue
|
24
|
+
= (object_title || activity.trackable.class.name)
|
25
|
+
%td= activity.parameters
|
@@ -0,0 +1,20 @@
|
|
1
|
+
%tr{ id: "attachment-#{attachment.id}" }
|
2
|
+
%td
|
3
|
+
= link_to image_tag( attachment.thumb_url ), attachment.file.url
|
4
|
+
%td
|
5
|
+
%span.attachment-description
|
6
|
+
%p.attachment.title
|
7
|
+
|
8
|
+
-# default_title = attachment.file.filetitle.humanize
|
9
|
+
= link_to best_in_place_if(can?(:update, attachment), attachment, :title, activator: 'only_manual'), attachment.file.url
|
10
|
+
|
11
|
+
- if can? :destroy, attachment
|
12
|
+
= remove_button attachment
|
13
|
+
|
14
|
+
%p.attachment.filename
|
15
|
+
= link_to attachment.filename, attachment.file.url
|
16
|
+
%p.attachment.description
|
17
|
+
= best_in_place_if can?(:update, attachment), attachment, :description
|
18
|
+
|
19
|
+
%p.attachment.filesize
|
20
|
+
= attachment.file_size_human
|
@@ -0,0 +1,11 @@
|
|
1
|
+
.picture-info
|
2
|
+
.picture-title
|
3
|
+
- if can? :destroy, attachment
|
4
|
+
= remove_button(attachment)
|
5
|
+
= best_in_place_if can?(:update, attachment), attachment, :title, nil: 'Hier klicken, um einen Bild-Titel zu vergeben.'
|
6
|
+
.picture-description
|
7
|
+
= best_in_place_if can?(:update, attachment), attachment, :description, nil: 'Hier klicken, um eine Bild-Beschreibung einzugeben.'
|
8
|
+
.picture-author
|
9
|
+
©
|
10
|
+
= attachment.created_at.year.to_s + ","
|
11
|
+
= link_to attachment.author.title, attachment.author
|
@@ -0,0 +1,17 @@
|
|
1
|
+
-# locals:
|
2
|
+
-# - attachments
|
3
|
+
-# - parent
|
4
|
+
|
5
|
+
- attachments = attachments.sort_by { |attachment| attachment.created_at }.reverse
|
6
|
+
|
7
|
+
%h1.attachments.documents= t :documents
|
8
|
+
%div
|
9
|
+
%table.attachments.documents
|
10
|
+
- attachments.each do |attachment|
|
11
|
+
= render attachment
|
12
|
+
|
13
|
+
- if @blog_entries.present? and parent.kind_of?(Page) and can?(:create_attachment_for, parent)
|
14
|
+
%p.show_only_in_edit_mode
|
15
|
+
Um eine Datei hochzuladen, bitte zur Seite
|
16
|
+
= link_to parent.title, parent
|
17
|
+
wechseln.
|
@@ -0,0 +1,46 @@
|
|
1
|
+
- # This is an attachment drop field.
|
2
|
+
- # Locals:
|
3
|
+
- # - parent Object the attachments are added to, e.g. a Page or an Event.
|
4
|
+
- # - type The kind of attachment that is allowed here, e.g.
|
5
|
+
- # :image, :attachment.
|
6
|
+
- # Default: :attachment (which is all attachments).
|
7
|
+
|
8
|
+
- type ||= :attachment
|
9
|
+
|
10
|
+
.box.panel.panel-default.upload_attachment{class: can?(:create_attachment_for, parent) ? '' : 'hidden' }
|
11
|
+
.attachment_drop_field
|
12
|
+
%p.drop_attachments_here
|
13
|
+
- if type == :image
|
14
|
+
Bilder hierher schieben!
|
15
|
+
- else
|
16
|
+
Dokumente oder Bilder hierher schieben!
|
17
|
+
%p.uploading.hidden
|
18
|
+
- if type == :image
|
19
|
+
Bilder werden hochgeladen.
|
20
|
+
- else
|
21
|
+
Dateien werden hochgeladen.
|
22
|
+
%br
|
23
|
+
%small Bitte warten, bis dieses Feld wieder grün wird.
|
24
|
+
%br
|
25
|
+
%small.upload_counter
|
26
|
+
%p.success.hidden
|
27
|
+
- if type == :image
|
28
|
+
Bilder sind hochgeladen!
|
29
|
+
- else
|
30
|
+
Dateien sind hochgeladen!
|
31
|
+
%br
|
32
|
+
%small
|
33
|
+
- if type == :image
|
34
|
+
Die Bilder werden gleich als Gallerie angezeigt. Danke für's Hochladen!
|
35
|
+
- else
|
36
|
+
- #Nach einem Neuladen (<kbd>Strg + R</kbd> bzw. <kbd>⌘ + R</kbd>)
|
37
|
+
Gleich werden die Dateien angezeigt. Danke für's Hochladen!
|
38
|
+
|
39
|
+
= form_for parent.attachments.build do |f|
|
40
|
+
= f.hidden_field :parent_id
|
41
|
+
= f.hidden_field :parent_type
|
42
|
+
|
43
|
+
- # issue: https://github.com/carrierwaveuploader/carrierwave/issues/1079
|
44
|
+
- # f.file_field :file, multiple: true, name: "attachment[file]"
|
45
|
+
= f.file_field :file, name: "attachment[file]"
|
46
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
%h1.pictures= t :pictures
|
2
|
+
.pictures
|
3
|
+
.galleria{data: {theme_js_path: asset_path('galleria-classic.js')}}
|
4
|
+
- for attachment in attachments
|
5
|
+
= render partial: 'attachments/picture', locals: { attachment: attachment }
|
6
|
+
.picture-info
|
7
|
+
.picture-title
|
8
|
+
= attachments.first.title
|
9
|
+
.picture-description
|
10
|
+
= attachments.first.description
|
@@ -0,0 +1,8 @@
|
|
1
|
+
%span.video-attachment.video-element{ id: "attachment-#{attachment.id}" }
|
2
|
+
= link_to image_tag( attachment.thumb_url ), attachment.file.url, class: "sublime"
|
3
|
+
= video_tag attachment.file.url, class: "sublime lightbox"
|
4
|
+
= remove_button( attachment )
|
5
|
+
%span.video-title
|
6
|
+
= best_in_place attachment, :title
|
7
|
+
%span.video-description
|
8
|
+
= best_in_place attachment, :description
|
@@ -0,0 +1 @@
|
|
1
|
+
console.log("upload complete");
|
@@ -0,0 +1 @@
|
|
1
|
+
$("#attachment-<%= @attachment.id %>").remove()
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<% # Create new blog post box. %>
|
2
|
+
var created_blog_post = $("<%= j(html_convert_h1_to_boxes(render partial: 'pages/page', object: @blog_post)) %>");
|
3
|
+
|
4
|
+
<% # Add the new blog post below the tool button's section. %>
|
5
|
+
blog_tools_section = $("div.blog_tools");
|
6
|
+
|
7
|
+
created_blog_post.hide().insertAfter(blog_tools_section).slideDown( 500, function() {
|
8
|
+
<% # Trigger all callbacks that are needed on page load, e.g. initialize edit mode elements. %>
|
9
|
+
if ($.find(".currently_in_edit_mode").length == 0){
|
10
|
+
created_blog_post.trigger("ready");
|
11
|
+
created_blog_post.trigger("page:load");
|
12
|
+
}
|
13
|
+
<% # Trigger the edit_mode in order to make the new entry be shown as text fields. %>
|
14
|
+
$( ":root" ).find(".blog_tools + .edit_mode_group a.edit_button").click();
|
15
|
+
} );
|
16
|
+
|
17
|
+
|
@@ -0,0 +1,4 @@
|
|
1
|
+
$( ".star" ).toggleClass( "starred" ).toggleClass( "unstarred" );
|
2
|
+
$( ".star.starred" ).html( $( ".star" ).data( "starred-character" ) );
|
3
|
+
$( ".star.unstarred" ).html( $( ".star" ).data( "unstarred-character" ) );
|
4
|
+
$( "ul.my-favorites" ).html( "<%=j starred_objects_lis( current_user ) %>" );
|
@@ -0,0 +1,8 @@
|
|
1
|
+
%p= t('reset_password_instructions.hello') + @resource.user.name + ","
|
2
|
+
|
3
|
+
%p= t('reset_password_instructions.introduction')
|
4
|
+
|
5
|
+
%p= link_to t('reset_password_instructions.change_password'), reset_password_url(@resource, :reset_password_token => @resource.reset_password_token)
|
6
|
+
|
7
|
+
%p= t('reset_password_instructions.ignore_notice')
|
8
|
+
%p= t('reset_password_instructions.change_notice')
|
@@ -0,0 +1 @@
|
|
1
|
+
= render partial: 'user_accounts/change_password', locals: {user_account: resource, require_current_password: false}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
%h1= t :forgot_password
|
2
|
+
|
3
|
+
= form_for(resource, :as => resource_name, :url => password_path(resource_name), :html => { :method => :post }) do |f|
|
4
|
+
= devise_error_messages!
|
5
|
+
|
6
|
+
= f.label :email, I18n.t(:email)
|
7
|
+
= f.email_field :email, :autofocus => true
|
8
|
+
%br
|
9
|
+
|
10
|
+
= f.submit t(:submit_send_instructions)
|
11
|
+
|
12
|
+
= render 'devise/shared/links'
|
@@ -0,0 +1 @@
|
|
1
|
+
= render partial: 'user_accounts/change_password', locals: {user_account: resource, require_current_password: true}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
%h1= t :login
|
2
|
+
%div
|
3
|
+
= form_for(resource, :as => resource_name, :url => session_path(resource_name)) do |f|
|
4
|
+
%div
|
5
|
+
= f.label :login, raw("#{t :login_name} (#{t :login_name_explanation})")
|
6
|
+
= f.text_field :login, :autofocus => true
|
7
|
+
|
8
|
+
%div
|
9
|
+
= f.label :password, I18n.t(:password)
|
10
|
+
= f.password_field :password
|
11
|
+
|
12
|
+
= f.submit t :login
|
13
|
+
|
14
|
+
= render 'devise/shared/links'
|
@@ -0,0 +1,26 @@
|
|
1
|
+
%p
|
2
|
+
|
3
|
+
- if controller_name != 'sessions'
|
4
|
+
= link_to t(:login), new_session_path(resource_name)
|
5
|
+
%br
|
6
|
+
|
7
|
+
=#- if devise_mapping.registerable? && controller_name != 'registrations'
|
8
|
+
=# = link_to "Sign up", new_registration_path(resource_name)
|
9
|
+
=# %br
|
10
|
+
|
11
|
+
- if devise_mapping.recoverable? && controller_name != 'passwords'
|
12
|
+
= link_to t(:forgot_password), new_password_path(resource_name)
|
13
|
+
%br
|
14
|
+
|
15
|
+
- if devise_mapping.confirmable? && controller_name != 'confirmations'
|
16
|
+
= link_to "Didn't receive confirmation instructions?", new_confirmation_path(resource_name)
|
17
|
+
%br
|
18
|
+
|
19
|
+
- if devise_mapping.lockable? && resource_class.unlock_strategy_enabled?(:email) && controller_name != 'unlocks'
|
20
|
+
= link_to "Didn't receive unlock instructions?", new_unlock_path(resource_name)
|
21
|
+
%br
|
22
|
+
|
23
|
+
- if devise_mapping.omniauthable?
|
24
|
+
- resource_class.omniauth_providers.each do |provider|
|
25
|
+
= link_to "Sign in with #{provider.to_s.titleize}", omniauth_authorize_path(resource_name, provider)
|
26
|
+
%br
|
@@ -0,0 +1,7 @@
|
|
1
|
+
%h1 Zugriff nicht authorisiert
|
2
|
+
%div
|
3
|
+
%p Sie sind nicht berechtigt, die angeforderte Seite abzurufen.
|
4
|
+
%p
|
5
|
+
Haben Sie sich bereits
|
6
|
+
= link_to "beim System angemeldet?", new_user_account_session_url
|
7
|
+
%p Bitte wenden Sie sich über den blauen Hilfe-Knopf an die Verwaltung, um Hilfestellung bei diesem Problem zu erhalten.
|
@@ -0,0 +1,63 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
|
5
|
+
</head>
|
6
|
+
<body style="font-family: Helvetica; line-height: 150%">
|
7
|
+
|
8
|
+
<%= link_to root_url do %>
|
9
|
+
<%= image_tag 'logo.png', align: 'right' %>
|
10
|
+
<% end %><br />
|
11
|
+
|
12
|
+
<%= simple_format @text_before_event_table %>
|
13
|
+
|
14
|
+
<h2><%= link_to @event.title, event_url(@event)%></h2>
|
15
|
+
|
16
|
+
<table>
|
17
|
+
<tr>
|
18
|
+
<th align="right"><%=t :description %></th>
|
19
|
+
<td width="15"></td>
|
20
|
+
<td><%= markup(@event.description) %></td>
|
21
|
+
</tr>
|
22
|
+
<tr>
|
23
|
+
<th align="right"><%=t :start_at %></th>
|
24
|
+
<td width="15"></td>
|
25
|
+
<td><%=l @event.start_at %></td>
|
26
|
+
</tr>
|
27
|
+
<% if @event.end_at %>
|
28
|
+
<tr>
|
29
|
+
<th align="right"><%=t :end_at %></th>
|
30
|
+
<td width="15"></td>
|
31
|
+
<td><%=l @event.end_at %></td>
|
32
|
+
</tr>
|
33
|
+
<% end %>
|
34
|
+
<tr>
|
35
|
+
<th align="right"><%=t :location %></th>
|
36
|
+
<td width="15"></td>
|
37
|
+
<td><%= @event.location %></td>
|
38
|
+
</tr>
|
39
|
+
<tr>
|
40
|
+
<th align="right"><%=t :contact_people %></th>
|
41
|
+
<td width="15"></td>
|
42
|
+
<td><%= user_links(@event.contact_people) %></td>
|
43
|
+
</tr>
|
44
|
+
<tr>
|
45
|
+
<th align="right"><%=t :details %></th>
|
46
|
+
<td width="15"></td>
|
47
|
+
<td><%= link_to "Details zur Veranstaltung auf der Plattform anzeigen.", event_url(@event)%></td>
|
48
|
+
</tr>
|
49
|
+
<tr>
|
50
|
+
<th align="right"><%=t :attendance %></th>
|
51
|
+
<td width="15"></td>
|
52
|
+
<td><%= link_to "„Ich nehme teil!“ (Teilnahme eintragen.)", event_join_url(@event, email_confirm: true)%></td>
|
53
|
+
</tr>
|
54
|
+
<tr>
|
55
|
+
<th align="right">Kalender</th>
|
56
|
+
<td width="15"></td>
|
57
|
+
<td><%= link_to "Veranstaltung in Kalender exportieren.", event_url(@event, format: 'ics')%></td>
|
58
|
+
</tr>
|
59
|
+
</table>
|
60
|
+
|
61
|
+
<%= simple_format @text_after_event_table %>
|
62
|
+
</body>
|
63
|
+
</html>
|