card 1.98.3 → 1.99.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/config/locales/de.yml +7 -7
- data/config/locales/en.yml +7 -7
- data/config/locales/es.yml +7 -7
- data/db/migrate_core_cards/20150610180019_add_recaptcha_key_and_admin_info_cards.rb +3 -3
- data/db/migrate_core_cards/20160801143221_change_bootstrap_card_type_to_scss.rb +1 -1
- data/db/migrate_core_cards/20160804112510_reorganize_scripts.rb +1 -1
- data/db/migrate_core_cards/20160908154210_add_trash_card.rb +1 -1
- data/db/migrate_core_cards/20180508210903_add_json_type.rb +3 -3
- data/db/migrate_core_cards/20180712042655_head_rule.rb +1 -1
- data/db/migrate_core_cards/{20180905061536_migrate_layouts.rb → 20180905061537_migrate_layouts.rb} +12 -1
- data/db/migrate_core_cards/20190204195039_add_rule_card.rb +3 -0
- data/db/migrate_core_cards/20190320091257_upgrade_recaptcha_to_v3.rb +5 -6
- data/db/migrate_core_cards/20190417142612_reorganize_scripts_2.rb +3 -3
- data/db/migrate_core_cards/20190502130029_add_shark_and_help_desk_role.rb +4 -5
- data/db/migrate_core_cards/20190618110446_add_dropdown_divider.rb +1 -1
- data/db/migrate_core_cards/20190710090209_homepage_tweaks.rb +17 -0
- data/db/migrate_core_cards/20190820155833_update_cardtype_type_structure.rb +7 -0
- data/db/migrate_core_cards/20190822093633_move_help_text_to_code.rb +38 -0
- data/db/migrate_core_cards/20190823220018_cleanup_for_decko_1_0.rb +21 -0
- data/db/migrate_core_cards/20190826132738_add_more_guides.rb +7 -0
- data/db/migrate_core_cards/20190829093961_cardtype_grouping.rb +16 -0
- data/db/migrate_core_cards/20190829205148_remove_add_help.rb +14 -0
- data/db/migrate_core_cards/20190830131820_setting_settings_aside.rb +17 -0
- data/db/migrate_core_cards/20190902161223_add_style_media.rb +7 -0
- data/db/migrate_core_cards/20190902193208_input_type.rb +22 -0
- data/db/migrate_core_cards/20190904174403_token_upgrade.rb +14 -0
- data/db/migrate_core_cards/20190909104250_add_cardtype_input_types.rb +10 -0
- data/db/migrate_core_cards/20190918200115_ensure_description_card.rb +13 -0
- data/db/migrate_core_cards/data/cards.yml +12 -8
- data/db/migrate_core_cards/data/cards/Xaccount +22 -0
- data/db/migrate_core_cards/data/cards/Xgetting_started +5 -5
- data/db/migrate_core_cards/data/cards/{Xgetting_started-link → Xgetting_started_link} +0 -0
- data/db/migrate_core_cards/data/cards/Xmain_menu +1 -1
- data/db/migrate_core_cards/data/cards/Xstructure-Xright-Xguide +12 -0
- data/db/migrate_core_cards/data/cards/administrator-dashboard +5 -0
- data/db/migrate_core_cards/data/cards/cardtype-Xtype-Xguide +24 -0
- data/db/migrate_core_cards/data/cards/cardtype-Xtype-Xstructure +3 -3
- data/db/migrate_core_cards/data/cards/shark-dashboard +2 -2
- data/db/migrate_core_cards/data/mailer/password_reset_email.html +6 -3
- data/db/migrate_core_cards/data/mailer/password_reset_email.txt +1 -1
- data/db/migrate_core_cards/data/mailer/verification_email.html +5 -2
- data/db/migrate_core_cards/data/mailer/verification_email.txt +2 -1
- data/db/seed/README.md +1 -1
- data/db/seed/new/card_actions.yml +2118 -2534
- data/db/seed/new/card_acts.yml +2 -2
- data/db/seed/new/card_references.yml +2326 -2466
- data/db/seed/new/cards.yml +2654 -3713
- data/db/seed/new/schema_migrations_core_cards.yml +77 -39
- data/db/seed/test/fixtures/card_actions.yml +3225 -3681
- data/db/seed/test/fixtures/card_acts.yml +503 -509
- data/db/seed/test/fixtures/card_changes.yml +66 -66
- data/db/seed/test/fixtures/card_references.yml +3135 -3275
- data/db/seed/test/fixtures/cards.yml +4187 -5516
- data/db/seed/test/fixtures/schema_migrations_core_cards.yml +77 -39
- data/db/{seed/test/seed.rb → test_seed.rb} +13 -11
- data/lib/card/auth.rb +1 -0
- data/lib/card/auth/current.rb +25 -27
- data/lib/card/auth/setup.rb +13 -12
- data/lib/card/auth/token.rb +38 -0
- data/lib/card/content.rb +34 -7
- data/lib/card/content/clean.rb +2 -1
- data/lib/card/content/truncate.rb +2 -0
- data/lib/card/env/success.rb +1 -14
- data/lib/card/error.rb +1 -0
- data/lib/card/format/content.rb +2 -2
- data/lib/card/format/error.rb +1 -1
- data/lib/card/format/nest.rb +1 -1
- data/lib/card/format/nesting.rb +2 -2
- data/lib/card/format/nesting/mode.rb +15 -15
- data/lib/card/mod/loader.rb +5 -0
- data/lib/card/model/save_helper.rb +2 -0
- data/lib/card/query.rb +1 -0
- data/lib/card/query/card_query/reference_attributes.rb +4 -2
- data/lib/card/seed_consts.rb +1 -1
- data/lib/card/set/format/abstract_format.rb +3 -5
- data/lib/card/set/format/abstract_format/view_opts.rb +1 -1
- data/lib/card/set/required_field.rb +8 -3
- data/lib/card/set_pattern.rb +10 -0
- data/lib/card/view/cache/stub.rb +3 -20
- data/lib/card/view/options.rb +4 -3
- data/lib/card/view/options/voo_api.rb +1 -1
- data/lib/cardio.rb +7 -1
- data/mod/Modfile +1 -0
- data/mod/account/set/abstract/account_field.rb +15 -0
- data/mod/account/set/abstract/accounted.rb +15 -0
- data/mod/account/set/all/account.rb +0 -4
- data/mod/account/set/right/account.rb +23 -151
- data/mod/account/set/right/account/events.rb +98 -0
- data/mod/account/set/right/account/views.rb +65 -0
- data/mod/account/set/right/api_key.rb +48 -0
- data/mod/account/set/right/email.rb +2 -2
- data/mod/account/set/right/password.rb +6 -9
- data/mod/account/set/right/salt.rb +5 -1
- data/mod/account/set/right/status.rb +10 -1
- data/mod/account/set/self/signin.rb +3 -3
- data/mod/account/set/type/role.rb +4 -0
- data/mod/account/set/type/signup.rb +31 -158
- data/mod/account/{template → set}/type/signup/core.haml +0 -0
- data/mod/account/set/type/signup/views.rb +93 -0
- data/mod/account/set/type/user.rb +16 -27
- data/mod/account/set/type/user/setup_help.haml +10 -0
- data/mod/account/spec/set/all/account_spec.rb +84 -98
- data/mod/account/spec/set/right/account_spec.rb +40 -33
- data/mod/account/spec/set/self/signin_spec.rb +2 -2
- data/mod/account/spec/set/type/signup_spec.rb +40 -78
- data/mod/ace_editor/db/migrate_core_cards/{20160805112548_delete_ace_help_card.rb → 20180805112548_delete_ace_help_card.rb} +1 -1
- data/mod/admin/set/self/debugger.rb +3 -0
- data/mod/admin/set/self/trash.rb +1 -1
- data/mod/basic_formats/set/all/all_css.rb +1 -1
- data/mod/basic_formats/set/all/all_csv.rb +1 -1
- data/mod/basic_formats/set/all/base.rb +19 -60
- data/mod/basic_formats/set/self/head.rb +1 -1
- data/mod/basic_types/set/type/html.rb +7 -3
- data/mod/basic_types/set/type/json.rb +1 -1
- data/mod/basic_types/set/type/plain_text.rb +1 -1
- data/mod/{standard → basic_types}/spec/set/type/html_spec.rb +6 -6
- data/mod/basic_types/spec/set/type/plain_text_spec.rb +7 -2
- data/mod/bootstrap/db/migrate_core_cards/20170719163733_update_bootswatch_themes_to_4_beta.rb +3 -3
- data/mod/bootstrap/db/migrate_core_cards/20180423160231_migrate_customized_bootstrap_skin.rb +2 -2
- data/mod/bootstrap/db/migrate_core_cards/20180423170283_add_type_bootswatch_skin.rb +1 -1
- data/mod/bootstrap/db/migrate_core_cards/lib/skin.rb +1 -1
- data/mod/bootstrap/lib/javascript/script_load_select2.js.coffee +26 -18
- data/mod/bootstrap/lib/stylesheets/style_bootstrap_cards.scss +18 -3
- data/mod/bootstrap/set/abstract/bootswatch_theme/html_views.rb +1 -1
- data/mod/bootstrap/set/all/bootstrap/helper.rb +9 -4
- data/mod/bootstrap/set/type/customized_bootswatch_skin.rb +1 -1
- data/mod/bootstrap/set/type_plus_right/customized_bootswatch_skin/colors.rb +1 -1
- data/mod/bootstrap/set/type_plus_right/customized_bootswatch_skin/colors/{editor.haml → input.haml} +0 -0
- data/mod/bootstrap/spec/set/all/bootstrap/form_spec.rb +2 -2
- data/mod/carrierwave/set/self/favicon.rb +5 -0
- data/mod/carrierwave/set/self/new_file.rb +1 -1
- data/mod/carrierwave/set/self/new_image.rb +1 -1
- data/mod/carrierwave/set/type/file.rb +1 -1
- data/mod/carrierwave/set/type/image.rb +2 -2
- data/mod/carrierwave/set/type/image/html_views.rb +0 -35
- data/mod/carrierwave/spec/set/type/image_spec.rb +1 -1
- data/mod/core/chunk/link.rb +4 -2
- data/mod/core/chunk/view_stub.rb +5 -4
- data/mod/core/set/abstract/code_file.rb +1 -1
- data/mod/core/set/all/codename.rb +2 -1
- data/mod/core/set/all/content.rb +59 -0
- data/mod/core/set/all/event_conditions.rb +17 -2
- data/mod/core/set/all/location_history.rb +1 -1
- data/mod/core/set/all/name.rb +1 -1
- data/mod/core/set/all/permissions.rb +6 -36
- data/mod/core/set/all/references.rb +9 -2
- data/mod/core/set/all/rules.rb +0 -5
- data/mod/core/set_pattern/03_type.rb +4 -0
- data/mod/core/set_pattern/07_right.rb +4 -0
- data/mod/core/set_pattern/08_type_plus_right.rb +4 -0
- data/mod/core/set_pattern/09_self.rb +4 -0
- data/mod/core/spec/chunk/link_spec.rb +6 -0
- data/mod/core/spec/chunk/nest_spec.rb +2 -2
- data/mod/core/spec/set/all/permissions_spec.rb +0 -10
- data/mod/core/spec/set/all/rules_spec.rb +6 -16
- data/mod/date/set/self/datepicker.rb +6 -0
- data/mod/date/set/type/date.rb +1 -1
- data/mod/date/spec/set/type/date_spec.rb +1 -1
- data/mod/edit/set/all/bridge/account_section.rb +16 -0
- data/mod/edit/set/all/bridge/bridge_pills.rb +47 -0
- data/mod/edit/set/all/bridge/related_section.rb +34 -0
- data/mod/edit/set/all/bridge/tab_views.rb +9 -40
- data/mod/edit/set/all/bridge/tab_visibility.rb +2 -2
- data/mod/edit/set/all/edit_content.rb +3 -3
- data/mod/edit/set/all/edit_inline.rb +15 -4
- data/mod/edit/set/all/edit_name.rb +5 -7
- data/mod/edit/set/all/edit_type.rb +25 -23
- data/mod/edit/set/all/editing.rb +5 -1
- data/mod/edit/set/all/editor.rb +28 -15
- data/mod/edit/set/all/form.rb +38 -17
- data/mod/edit/set/all/form_buttons.rb +11 -2
- data/mod/edit/set/all/formgroup.rb +5 -5
- data/mod/edit/set/all/nest_editor.rb +20 -4
- data/mod/edit/set/all/nest_editor/_help.haml +7 -0
- data/mod/edit/set/all/nest_editor/nest_editor.haml +3 -2
- data/mod/edit/set/all/new.rb +40 -23
- data/mod/edit/set/all/overlay_guide.haml +7 -0
- data/mod/edit/set/all/overlay_guide.rb +9 -0
- data/mod/edit/set/all/template_nest.rb +42 -0
- data/mod/edit/set/type/list.rb +15 -0
- data/mod/edit/set/type/plain_text.rb +13 -0
- data/mod/edit/set/type/pointer.rb +11 -0
- data/mod/edit/spec/set/all/bridge/tab_views_spec.rb +1 -1
- data/mod/email/set/all/email_html.rb +2 -2
- data/mod/email/set/all/email_text.rb +2 -2
- data/mod/follow/lib/card/follower_stash.rb +1 -1
- data/mod/follow/set/all/follow/followed_by.rb +1 -1
- data/mod/follow/set/all/notify/base_views.rb +3 -3
- data/mod/follow/set/right/following.rb +1 -1
- data/mod/follow/set/self/follow_defaults.rb +1 -1
- data/mod/follow/set/type/cardtype.rb +6 -0
- data/mod/follow/set/type_plus_right/user/follow.rb +1 -1
- data/mod/history/lib/card/act/act_renderer.rb +1 -1
- data/mod/history/lib/card/action.rb +2 -1
- data/mod/history/set/all/history_bridge.rb +0 -1
- data/mod/item/set/all/bar.rb +15 -7
- data/mod/machines/file/all_script_machine_output/file.js +38245 -69
- data/mod/machines/file/all_style_machine_output/file.css +4 -4
- data/mod/machines/file/script_html5shiv_printshiv_machine_output/file.js +1 -1
- data/mod/machines/lib/javascript/decko/bridge.js.coffee +4 -0
- data/mod/machines/lib/javascript/decko/card_menu.js.coffee +11 -0
- data/mod/machines/lib/javascript/decko/name_editor.js.coffee +1 -1
- data/mod/machines/lib/javascript/decko/nest_editor.js.coffee +3 -1
- data/mod/machines/lib/javascript/decko/nest_editor_name.js.coffee +29 -6
- data/mod/machines/lib/javascript/decko/overlay.js.coffee +3 -2
- data/mod/machines/lib/javascript/decko/slot.js.coffee +12 -2
- data/mod/machines/lib/stylesheets/style_cards.scss +43 -53
- data/mod/machines/lib/stylesheets/style_jquery_ui_smoothness.css +13 -13
- data/mod/machines/set/abstract/script.rb +1 -1
- data/mod/machines/set/type/css.rb +1 -1
- data/mod/media/lib/stylesheets/style_image_box.scss +79 -0
- data/mod/{utility → media}/set/abstract/media.rb +0 -0
- data/mod/{utility → media}/set/abstract/media/media_snippet.haml +0 -0
- data/mod/media/set/self/style_media.rb +6 -0
- data/mod/media/set/type/image.rb +38 -0
- data/mod/{utility → media}/spec/set/abstract/media_spec.rb +0 -0
- data/mod/navbar/set/right/enabled_roles.rb +1 -1
- data/mod/pointer/lib/javascript/script_pointer_config.js.coffee +13 -0
- data/mod/pointer/lib/javascript/script_pointer_list_editor.js.coffee +7 -2
- data/mod/pointer/set/abstract/02_pointer/html_views.rb +15 -6
- data/mod/pointer/set/abstract/02_pointer/html_views/checkbox_input.haml +1 -2
- data/mod/pointer/set/abstract/02_pointer/html_views/list_input.haml +1 -2
- data/mod/pointer/set/abstract/02_pointer/html_views/list_item.haml +2 -0
- data/mod/pointer/set/abstract/02_pointer/html_views/radio_input.haml +1 -2
- data/mod/pointer/set/abstract/02_pointer/options_api.rb +6 -13
- data/mod/pointer/set/right/{options.rb → content_options.rb} +0 -0
- data/mod/pointer/set/type/link_list.rb +23 -6
- data/mod/pointer/set/type/link_list/link_list_input.haml +24 -0
- data/mod/pointer/set/type/mirrored_list.rb +1 -1
- data/mod/pointer/spec/set/abstract/pointer/html_views_spec.rb +20 -18
- data/mod/pointer/spec/set/abstract/pointer/options_api_spec.rb +2 -1
- data/mod/pointer/spec/set/self/input_options_spec.rb +1 -1
- data/mod/rules/set/right/self.rb +3 -0
- data/mod/rules/set/rule/bar_view.rb +88 -0
- data/mod/rules/set/rule/bridge_rules_editor.rb +5 -10
- data/mod/rules/set/rule/editor.rb +40 -113
- data/mod/rules/set/rule/html_views.rb +13 -0
- data/mod/rules/set/rule/quick_editor.rb +39 -0
- data/mod/rules/set/rule/{editor → quick_editor}/quick_edit.haml +0 -0
- data/mod/rules/set/rule/{editor → quick_editor}/set_info.haml +1 -1
- data/mod/rules/set/rule/rule_form/buttons.rb +3 -1
- data/mod/rules/set/rule/rule_form/form_elements.rb +2 -2
- data/mod/rules/set/rule/rule_form/rule_set_radio.rb +3 -6
- data/mod/rules/set/rule/rule_form/set_selection.rb +3 -10
- data/mod/rules/set/rule/rules.rb +10 -1
- data/mod/rules/set/type/set.rb +37 -20
- data/mod/rules/set/type/set/html_views.rb +17 -35
- data/mod/rules/set/type/set/html_views/group_panel.haml +1 -1
- data/mod/rules/set/type/set/html_views/rule_lists.rb +42 -0
- data/mod/rules/set/type/set/html_views/template.rb +1 -32
- data/mod/rules/set/type/set/rules_filter.rb +24 -10
- data/mod/rules/set/type/set/setting_lists.rb +17 -24
- data/mod/rules/spec/set/rule/bar_view_spec.rb +15 -0
- data/mod/rules/spec/set/rule/editor_spec.rb +15 -1
- data/mod/rules/spec/set/type/set/html_views_spec.rb +0 -13
- data/mod/rules/spec/set/type/set/setting_lists_spec.rb +17 -0
- data/mod/rules/spec/set/type/set_spec.rb +3 -8
- data/mod/search/set/abstract/03_filter/form_helper.rb +9 -7
- data/mod/search/set/abstract/search/views.rb +2 -2
- data/mod/search/set/right/children.rb +4 -0
- data/mod/search/set/right/created.rb +3 -0
- data/mod/search/set/right/edited.rb +3 -0
- data/mod/search/set/right/editors.rb +3 -0
- data/mod/search/set/right/follow.rb +3 -0
- data/mod/search/set/right/linked_to_by.rb +3 -0
- data/mod/search/set/right/links_to.rb +3 -0
- data/mod/search/set/right/mates.rb +3 -0
- data/mod/search/set/right/nested_by.rb +3 -0
- data/mod/search/set/right/nests.rb +3 -0
- data/mod/search/set/right/referred_to_by.rb +3 -0
- data/mod/search/set/right/refers_to.rb +3 -0
- data/mod/search/set/self/search.rb +1 -1
- data/mod/search/set/type/search_type.rb +6 -5
- data/mod/settings/lib/card/setting.rb +17 -4
- data/mod/settings/set/abstract/permission.rb +6 -2
- data/mod/settings/set/all/supports_content_options.rb +7 -0
- data/mod/settings/set/right/content_option_view.rb +10 -0
- data/mod/settings/set/right/content_options.rb +18 -0
- data/mod/settings/set/right/default.rb +18 -2
- data/mod/settings/set/right/help.rb +2 -1
- data/mod/settings/set/right/input_type.rb +35 -0
- data/mod/settings/set/right/script.rb +6 -0
- data/mod/settings/set/right/structure.rb +7 -1
- data/mod/settings/set/right/style.rb +2 -2
- data/mod/settings/set/right/style/{editor.haml → input.haml} +0 -0
- data/mod/settings/set/self/autoname.rb +3 -1
- data/mod/settings/set/self/captcha.rb +4 -1
- data/mod/settings/set/self/content_option_view.rb +10 -0
- data/mod/settings/set/self/content_options.rb +10 -0
- data/mod/settings/set/self/create.rb +2 -1
- data/mod/settings/set/self/default.rb +1 -1
- data/mod/settings/set/self/delete.rb +2 -1
- data/mod/settings/set/self/guide.rb +1 -1
- data/mod/settings/set/self/head.rb +3 -1
- data/mod/settings/set/self/help.rb +3 -1
- data/mod/settings/set/self/input_type.rb +13 -0
- data/mod/settings/set/self/layout.rb +3 -1
- data/mod/settings/set/self/on_create.rb +2 -1
- data/mod/settings/set/self/on_delete.rb +2 -1
- data/mod/settings/set/self/on_update.rb +2 -1
- data/mod/settings/set/self/read.rb +2 -1
- data/mod/settings/set/self/structure.rb +3 -1
- data/mod/settings/set/self/style.rb +3 -1
- data/mod/settings/set/self/table_of_contents.rb +4 -1
- data/mod/settings/set/self/thanks.rb +3 -1
- data/mod/settings/set/self/update.rb +2 -1
- data/mod/settings/set/type/setting.rb +15 -37
- data/mod/settings/spec/set/right/comment_spec.rb +0 -27
- data/mod/settings/spec/set/right/create_spec.rb +1 -1
- data/mod/settings/spec/set/right/structure_spec.rb +13 -10
- data/mod/settings/spec/set/type/setting_spec.rb +1 -8
- data/mod/solid_cache/set/right/solid_cache.rb +3 -3
- data/mod/standard/set/all/comment.rb +1 -1
- data/mod/standard/set/all/error.rb +2 -2
- data/mod/standard/set/all/path.rb +7 -7
- data/mod/standard/set/all/rich_html/content.rb +41 -11
- data/mod/standard/set/all/rich_html/error.rb +14 -22
- data/mod/standard/set/all/rich_html/html_views/guide.rb +1 -1
- data/mod/standard/set/all/rich_html/html_views/help.rb +19 -7
- data/mod/standard/set/all/rich_html/html_views/info.rb +1 -1
- data/mod/standard/set/all/rich_html/menu.rb +50 -2
- data/mod/standard/set/all/rich_html/overlay.rb +23 -1
- data/mod/standard/set/all/rich_html/title.rb +3 -3
- data/mod/standard/set/right/discussion.rb +8 -2
- data/mod/standard/set/right/head.rb +4 -0
- data/mod/standard/set/right/type_plus_right.rb +4 -0
- data/mod/standard/set/self/cardtype.rb +42 -0
- data/mod/standard/set/self/sidebar.rb +5 -0
- data/mod/standard/set/type/basic.rb +1 -1
- data/mod/standard/set/type/cardtype.rb +25 -11
- data/mod/standard/set/type/number.rb +1 -1
- data/mod/standard/set/type/phrase.rb +1 -1
- data/mod/standard/set/type/toggle.rb +9 -1
- data/mod/standard/set/type/uri.rb +1 -1
- data/mod/standard/spec/set/all/error_spec.rb +1 -1
- data/mod/standard/spec/set/type/cardtype_spec.rb +4 -3
- data/mod/standard/spec/set/type/number_spec.rb +1 -1
- data/mod/standard/spec/set/type/phrase_spec.rb +1 -1
- data/mod/standard/spec/set/type/toggle_spec.rb +3 -4
- data/mod/standard/spec/set/type/uri_spec.rb +1 -1
- data/mod/tinymce_editor/set/self/tiny_mce.rb +7 -0
- metadata +116 -52
- data/db/migrate_core_cards/20190710090207_homepage_tweaks.rb +0 -12
- data/db/migrate_core_cards/data/cards/eagle-description +0 -1
- data/mod/account/set/right/token.rb +0 -55
- data/mod/account/spec/set/right/token_spec.rb +0 -23
- data/mod/bootstrap/set/abstract/bootswatch_theme/thumbnail.haml +0 -10
- data/mod/rules/set/rule/table.rb +0 -27
- data/mod/rules/set/rule/table_row.rb +0 -63
- data/mod/rules/set/type/set/html_views/nest_rules.rb +0 -14
- data/mod/rules/set/type/set/html_views/rules_bridge.rb +0 -21
- data/mod/rules/set/type/set/html_views/rules_table.haml +0 -11
- data/mod/rules/set/type/set/html_views/template/template_editor.haml +0 -6
- data/mod/rules/spec/set/rule/table_row_spec.rb +0 -9
- data/mod/rules/spec/set/rule/table_spec.rb +0 -15
- data/mod/settings/set/right/add_help.rb +0 -1
- data/mod/settings/set/self/accountable.rb +0 -3
- data/mod/settings/set/self/add_help.rb +0 -2
- data/mod/settings/set/self/input.rb +0 -3
- data/mod/settings/set/self/options.rb +0 -4
- data/mod/settings/set/self/options_label.rb +0 -4
- data/mod/settings/spec/set/right/add_help_spec.rb +0 -5
@@ -1,20 +1,5 @@
|
|
1
1
|
format :html do
|
2
|
-
|
3
|
-
"Content" => %w[RichText PlainText Phrase Date Number Toggle Markdown File Image URI],
|
4
|
-
"Custom" => [],
|
5
|
-
"Organize" => ["Cardtype", "Search", "List", "Link list", "Pointer",
|
6
|
-
"Mirror list", "Mirrored list"],
|
7
|
-
"Admin" => ["Layout", "Skin", "User", "Role",
|
8
|
-
"Notification template", "Email template", "Twitter template"],
|
9
|
-
"Code" => %w[HTML Json CSS SCSS JavaScript CoffeeScript]
|
10
|
-
}.freeze
|
11
|
-
|
12
|
-
# group for each cardtype: { "RichText => "Content", "Layout" => "Admin", ... }
|
13
|
-
GROUP_MAP = GROUP.each_with_object({}) do |(cat, types), h|
|
14
|
-
types.each { |t| h[t] = cat }
|
15
|
-
end
|
16
|
-
|
17
|
-
view :edit_type, cache: :never, perms: :update do
|
2
|
+
view :edit_type, cache: :never, perms: :update do
|
18
3
|
frame do
|
19
4
|
_render_edit_type_form
|
20
5
|
end
|
@@ -37,10 +22,13 @@ format :html do
|
|
37
22
|
end
|
38
23
|
|
39
24
|
view :bridge_type_formgroup, unknown: true, wrap: :slot do
|
40
|
-
type_formgroup href: path(mark: card.id,
|
25
|
+
type_formgroup href: path(mark: card.id,
|
26
|
+
view: :edit_form,
|
27
|
+
assign: true,
|
28
|
+
slot: { show: :type_form }),
|
41
29
|
class: "live-type-field slotter",
|
42
30
|
'data-remote': true,
|
43
|
-
'data-slot-selector': ".card-slot.
|
31
|
+
'data-slot-selector': ".card-slot.edit_form-view"
|
44
32
|
end
|
45
33
|
|
46
34
|
view :type_formgroup do
|
@@ -55,7 +43,7 @@ format :html do
|
|
55
43
|
end
|
56
44
|
|
57
45
|
def wrap_type_formgroup
|
58
|
-
formgroup "Type",
|
46
|
+
formgroup "Type", input: "type", class: "type-formgroup", help: false do
|
59
47
|
output [yield, hidden_field_tag(:assign, true)]
|
60
48
|
end
|
61
49
|
end
|
@@ -63,8 +51,18 @@ format :html do
|
|
63
51
|
def type_field args={}
|
64
52
|
typelist = Auth.createable_types
|
65
53
|
current_type = type_field_current_value args, typelist
|
66
|
-
|
67
|
-
|
54
|
+
template.select_tag "card[type]", type_field_options(current_type),
|
55
|
+
args.merge("data-select2-id": "#{unique_id}-#{Time.now.to_i}")
|
56
|
+
end
|
57
|
+
|
58
|
+
def type_field_options current_type
|
59
|
+
types = grouped_types(current_type)
|
60
|
+
|
61
|
+
if types.size == 1
|
62
|
+
options_for_select types.flatten[1], current_type
|
63
|
+
else
|
64
|
+
grouped_options_for_select types, current_type
|
65
|
+
end
|
68
66
|
end
|
69
67
|
|
70
68
|
def grouped_types current_type
|
@@ -72,10 +70,10 @@ format :html do
|
|
72
70
|
allowed = ::Set.new Auth.createable_types
|
73
71
|
allowed << current_type if current_type
|
74
72
|
|
75
|
-
|
73
|
+
visible_cardtype_groups.each_pair do |name, items|
|
76
74
|
if name == "Custom"
|
77
75
|
Auth.createable_types.each do |type|
|
78
|
-
groups["Custom"] << type unless GROUP_MAP[type]
|
76
|
+
groups["Custom"] << type unless ::Card::Set::Self::Cardtype::GROUP_MAP[type]
|
79
77
|
end
|
80
78
|
else
|
81
79
|
items.each do |i|
|
@@ -86,6 +84,10 @@ format :html do
|
|
86
84
|
groups
|
87
85
|
end
|
88
86
|
|
87
|
+
def visible_cardtype_groups
|
88
|
+
::Card::Set::Self::Cardtype::GROUP
|
89
|
+
end
|
90
|
+
|
89
91
|
def type_field_current_value args, typelist
|
90
92
|
return if args.delete :no_current_type
|
91
93
|
|
data/mod/edit/set/all/editing.rb
CHANGED
@@ -2,6 +2,7 @@ format :html do
|
|
2
2
|
###---( TOP_LEVEL (used by menu) NEW / EDIT VIEWS )
|
3
3
|
view :bridge, perms: :update, unknown: true, cache: :never, wrap: :bridge do
|
4
4
|
with_nest_mode :edit do
|
5
|
+
add_name_context
|
5
6
|
voo.show :help
|
6
7
|
wrap true, breadcrumb_data("Editing", "edit") do
|
7
8
|
bridge_parts
|
@@ -9,8 +10,11 @@ format :html do
|
|
9
10
|
end
|
10
11
|
end
|
11
12
|
|
13
|
+
view :cardboard, :bridge
|
14
|
+
|
12
15
|
def bridge_parts
|
13
16
|
voo.show! :edit_type_row
|
17
|
+
|
14
18
|
[
|
15
19
|
frame_help,
|
16
20
|
_render_edit_name_row(home_view: :edit_name_row),
|
@@ -20,7 +24,7 @@ format :html do
|
|
20
24
|
# render to get voo.slot_options to have the write home view in
|
21
25
|
# the slot wrap. I think this would probably best be handled as an
|
22
26
|
# option to #wrap that triggers a new heir voo
|
23
|
-
|
27
|
+
_render_edit_form
|
24
28
|
]
|
25
29
|
end
|
26
30
|
|
data/mod/edit/set/all/editor.rb
CHANGED
@@ -6,34 +6,47 @@ Self::InputOptions.add_to_basket :options, "text area"
|
|
6
6
|
Self::InputOptions.add_to_basket :options, "text field"
|
7
7
|
|
8
8
|
format :html do
|
9
|
-
def
|
10
|
-
|
9
|
+
def input_type
|
10
|
+
voo.input_type.present? ? voo.input_type : input_type_from_rule
|
11
11
|
end
|
12
12
|
|
13
|
-
def
|
14
|
-
"
|
13
|
+
def input_type_from_rule
|
14
|
+
card.rule(:input_type)&.gsub(/[\[\]]/, "")&.tr(" ", "_")
|
15
15
|
end
|
16
16
|
|
17
|
-
def
|
18
|
-
|
17
|
+
def input_method input_type
|
18
|
+
"#{input_type}_input"
|
19
|
+
end
|
20
|
+
|
21
|
+
# core view of card is input
|
22
|
+
def input_defined_by_card
|
23
|
+
with_card input_type do |input_card|
|
24
|
+
nest input_card, view: :core
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# move somewhere more accessible?
|
29
|
+
def with_card mark
|
30
|
+
return nil unless (card = Card[mark])
|
19
31
|
|
20
|
-
|
32
|
+
yield card
|
33
|
+
rescue Card::Error::CodenameNotFound
|
34
|
+
nil
|
21
35
|
end
|
22
36
|
|
23
|
-
view :
|
24
|
-
try(
|
25
|
-
|
26
|
-
send(
|
37
|
+
view :input, unknown: true do
|
38
|
+
try(input_method(input_type)) ||
|
39
|
+
input_defined_by_card ||
|
40
|
+
send(input_method(default_input_type))
|
27
41
|
end
|
28
42
|
|
29
|
-
def
|
43
|
+
def default_input_type
|
30
44
|
:rich_text
|
31
45
|
end
|
32
46
|
|
33
47
|
# overridden by mods that provide rich text editors
|
34
48
|
def rich_text_input
|
35
|
-
|
36
|
-
send "#{default_editor}_editor_input"
|
49
|
+
send "#{Cardio.config.rich_text_editor || :tinymce}_editor_input"
|
37
50
|
end
|
38
51
|
|
39
52
|
def text_area_input
|
@@ -42,6 +55,6 @@ format :html do
|
|
42
55
|
end
|
43
56
|
|
44
57
|
def text_field_input
|
45
|
-
text_field :content, class: "d0-card-content"
|
58
|
+
text_field :content, class: classy("d0-card-content")
|
46
59
|
end
|
47
60
|
end
|
data/mod/edit/set/all/form.rb
CHANGED
@@ -1,21 +1,40 @@
|
|
1
1
|
format :html do
|
2
2
|
# FIELDSET VIEWS
|
3
|
-
|
3
|
+
|
4
|
+
# sometimes multiple card formgroups, sometimes just one
|
5
|
+
view :content_formgroups, cache: :never do
|
4
6
|
wrap_with :fieldset, edit_slot, class: classy("card-editor", "editor")
|
5
7
|
end
|
6
8
|
|
7
9
|
view :name_formgroup do
|
8
|
-
formgroup "
|
10
|
+
formgroup "Name", input: "name", help: false do
|
9
11
|
raw name_field
|
10
12
|
end
|
11
13
|
end
|
12
14
|
|
15
|
+
# single card content formgroup, labeled with "Content"
|
16
|
+
view :content_formgroup, unknown: true, cache: :never do
|
17
|
+
wrap_content_formgroup { content_field }
|
18
|
+
end
|
19
|
+
|
13
20
|
view :edit_in_form, cache: :never, perms: :update, unknown: true do
|
14
21
|
reset_form
|
15
22
|
@in_multi_card_editor = true
|
16
23
|
edit_slot
|
17
24
|
end
|
18
25
|
|
26
|
+
view :conflict_tracker, cache: :never, unknown: true do
|
27
|
+
return unless card&.real?
|
28
|
+
|
29
|
+
card.last_action_id_before_edit = card.last_action_id
|
30
|
+
hidden_field :last_action_id_before_edit, class: "current_revision_id"
|
31
|
+
end
|
32
|
+
|
33
|
+
def wrap_content_formgroup
|
34
|
+
formgroup("Content", input: :content, help: false,
|
35
|
+
class: classy("card-editor")) { yield }
|
36
|
+
end
|
37
|
+
|
19
38
|
def button_formgroup
|
20
39
|
wrap_with :div, class: classy("form-group") do
|
21
40
|
wrap_with :div, yield
|
@@ -27,26 +46,19 @@ format :html do
|
|
27
46
|
text_field :name, value: card.name, autocomplete: "off"
|
28
47
|
end
|
29
48
|
|
30
|
-
def content_field
|
49
|
+
def content_field
|
31
50
|
with_nest_mode :normal do
|
32
51
|
# by changing nest mode to normal, we ensure that editors (eg image
|
33
52
|
# previews) can render core views.
|
34
|
-
output [
|
53
|
+
output [_render_conflict_tracker, _render_input]
|
35
54
|
end
|
36
55
|
end
|
37
56
|
|
38
57
|
# SAMPLE editor view for override
|
39
|
-
# view :
|
58
|
+
# view :input do
|
40
59
|
# text_area :content, rows: 5, class: "d0-card-content"
|
41
60
|
# end
|
42
61
|
|
43
|
-
def content_field_revision_tracking skip_rev_id
|
44
|
-
card.last_action_id_before_edit = card.last_action_id
|
45
|
-
return if !card || card.new_card? || skip_rev_id
|
46
|
-
|
47
|
-
hidden_field :last_action_id_before_edit, class: "current_revision_id"
|
48
|
-
end
|
49
|
-
|
50
62
|
def edit_slot
|
51
63
|
case
|
52
64
|
when inline_nests_editor? then _render_core
|
@@ -59,7 +71,7 @@ format :html do
|
|
59
71
|
# test: render nests within a normal rendering of the card's content?
|
60
72
|
# (as opposed to a standardized form)
|
61
73
|
def inline_nests_editor?
|
62
|
-
voo.
|
74
|
+
voo.input_type == :inline_nests
|
63
75
|
end
|
64
76
|
|
65
77
|
# test: are we opening a new multi-card form?
|
@@ -81,8 +93,7 @@ format :html do
|
|
81
93
|
|
82
94
|
def single_card_edit_field
|
83
95
|
if voo.show?(:type_formgroup) || voo.show?(:name_formgroup)
|
84
|
-
#
|
85
|
-
formgroup("Content", editor: :content, help: false) { content_field }
|
96
|
+
_render_content_formgroup # use formgroup for consistency
|
86
97
|
else
|
87
98
|
editor_wrap(:content) { content_field }
|
88
99
|
end
|
@@ -91,17 +102,27 @@ format :html do
|
|
91
102
|
def editor_in_multi_card
|
92
103
|
add_junction_class
|
93
104
|
formgroup render_title,
|
94
|
-
|
105
|
+
input: "content", help: true, class: classy("card-editor") do
|
95
106
|
[content_field, (form.hidden_field(:type_id) if card.new_card?)]
|
96
107
|
end
|
97
108
|
end
|
98
109
|
|
99
110
|
def multi_card_edit fields_only=false
|
100
|
-
nested_cards_for_edit(fields_only)
|
111
|
+
nested_cards = nested_cards_for_edit(fields_only)
|
112
|
+
return structure_link if nested_cards.empty?
|
113
|
+
|
114
|
+
nested_cards.map do |name, options|
|
101
115
|
nest name, options || {}
|
102
116
|
end.join "\n"
|
103
117
|
end
|
104
118
|
|
119
|
+
def structure_link
|
120
|
+
# LOCALIZE
|
121
|
+
structured = link_to_card card.structure_rule_card, "structured"
|
122
|
+
"<label>Content</label>"\
|
123
|
+
"<p><em>Uneditable; content is #{structured} without nests</em></p>"
|
124
|
+
end
|
125
|
+
|
105
126
|
# @param [Hash|Array] fields either an array with field names and/or field
|
106
127
|
# cards or a hash with the fields as keys and a hash with nest options as
|
107
128
|
# values
|
@@ -29,10 +29,18 @@ format :html do
|
|
29
29
|
cancel_button args
|
30
30
|
end
|
31
31
|
|
32
|
-
def
|
32
|
+
def modal_cancel_button
|
33
33
|
modal_close_button "Cancel", situation: "secondary", class: "btn-sm"
|
34
34
|
end
|
35
35
|
|
36
|
+
def edit_cancel_button
|
37
|
+
modal_cancel_button
|
38
|
+
end
|
39
|
+
|
40
|
+
def new_cancel_button
|
41
|
+
modal_cancel_button
|
42
|
+
end
|
43
|
+
|
36
44
|
def delete_button opts={}
|
37
45
|
link_to "Delete", delete_button_opts(opts)
|
38
46
|
end
|
@@ -40,7 +48,8 @@ format :html do
|
|
40
48
|
def delete_button_opts opts={}
|
41
49
|
add_class opts, "slotter btn btn-outline-danger ml-auto btn-sm"
|
42
50
|
opts["data-confirm"] = delete_confirm opts
|
43
|
-
opts[:path] = { action: :delete
|
51
|
+
opts[:path] = { action: :delete }
|
52
|
+
opts[:path][:success] = delete_success(opts) unless opts.delete(:no_success)
|
44
53
|
opts[:remote] = true
|
45
54
|
opts
|
46
55
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
format :html do
|
2
|
-
# a formgroup has a label, an
|
2
|
+
# a formgroup has a label, an input and help text
|
3
3
|
def formgroup title, opts={}, &block
|
4
4
|
wrap_with :div, formgroup_div_args(opts[:class]) do
|
5
5
|
formgroup_body title, opts, &block
|
@@ -7,16 +7,16 @@ format :html do
|
|
7
7
|
end
|
8
8
|
|
9
9
|
def formgroup_body title, opts, &block
|
10
|
-
label = formgroup_label opts[:
|
11
|
-
editor_body = editor_wrap opts[:
|
10
|
+
label = formgroup_label opts[:input], title
|
11
|
+
editor_body = editor_wrap opts[:input], &block
|
12
12
|
help_text = formgroup_help_text opts[:help]
|
13
13
|
"#{label}<div>#{help_text} #{editor_body}</div>"
|
14
14
|
end
|
15
15
|
|
16
|
-
def formgroup_label
|
16
|
+
def formgroup_label input, title
|
17
17
|
return if voo&.hide?(:title) || title.blank?
|
18
18
|
|
19
|
-
label_type =
|
19
|
+
label_type = input || :content
|
20
20
|
form.label label_type, title
|
21
21
|
end
|
22
22
|
|
@@ -4,17 +4,20 @@ format :html do
|
|
4
4
|
# TODO: connect to Card::View::Options
|
5
5
|
# (that way a mod can add an option that becomes available to nests)
|
6
6
|
|
7
|
-
view :nest_editor, cache: :never, template: :haml,
|
7
|
+
view :nest_editor, cache: :never, unknown: true, template: :haml,
|
8
8
|
wrap: { slot: { class: "_overlay d0-card-overlay card nodblclick" } } do
|
9
9
|
@nest_editor_mode = :overlay
|
10
10
|
end
|
11
11
|
|
12
|
-
view :modal_nest_editor, cache: :never,
|
12
|
+
view :modal_nest_editor, cache: :never, unknown: true,
|
13
|
+
wrap: { slot: { class: "nodblclick" } } do
|
13
14
|
modal_nest_editor
|
14
15
|
end
|
15
16
|
|
16
17
|
def nest_editor_tabs
|
17
|
-
static_tabs({ rules: nest_rules_tab,
|
18
|
+
static_tabs({ rules: nest_rules_tab,
|
19
|
+
options: haml_partial(:options),
|
20
|
+
help: haml_partial(:help) },
|
18
21
|
:options, "tabs")
|
19
22
|
end
|
20
23
|
|
@@ -29,7 +32,7 @@ format :html do
|
|
29
32
|
if edit_nest.name.blank?
|
30
33
|
content_tag :div, "", class: "card-slot" # placeholder
|
31
34
|
else
|
32
|
-
nest(
|
35
|
+
nest(set_name_for_nest_rules, view: :nest_rules)
|
33
36
|
end
|
34
37
|
end
|
35
38
|
|
@@ -50,6 +53,19 @@ format :html do
|
|
50
53
|
@edit_nest ||= NestParser.new params[:edit_nest], default_nest_view, default_item_view
|
51
54
|
end
|
52
55
|
|
56
|
+
def left_type_for_nest_editor_set_selection
|
57
|
+
card.type_name
|
58
|
+
end
|
59
|
+
|
60
|
+
def set_name_for_nest_rules
|
61
|
+
nest_name = edit_nest.name
|
62
|
+
if left_type_for_nest_editor_set_selection
|
63
|
+
[left_type_for_nest_editor_set_selection, nest_name, :type_plus_right]
|
64
|
+
else
|
65
|
+
[nest_name, :right]
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
53
69
|
def tinymce_id
|
54
70
|
params[:tinymce_id]
|
55
71
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
%div
|
1
|
+
%div._nest-editor
|
2
2
|
.nest-header.d-flex.ml-2
|
3
3
|
%h5.mt-1 Nest
|
4
4
|
.ml-auto
|
@@ -11,7 +11,8 @@
|
|
11
11
|
.input-group-prepend._field-indicator
|
12
12
|
.input-group-text.text-muted
|
13
13
|
+
|
14
|
-
= text_field_tag "nest_name", edit_nest.name, class: "form-control _nest-name"
|
14
|
+
= text_field_tag "nest_name", edit_nest.name, class: "form-control _nest-name",
|
15
|
+
"data-left-type" => left_type_for_nest_editor_set_selection
|
15
16
|
|
16
17
|
.col-3
|
17
18
|
= check_box_tag :field, "field", edit_nest.field?,
|
data/mod/edit/set/all/new.rb
CHANGED
@@ -11,25 +11,19 @@ format :html do
|
|
11
11
|
|
12
12
|
view :new_in_modal, perms: :create, unknown: true, cache: :never,
|
13
13
|
wrap: { modal: { footer: "", size: :edit_modal_size,
|
14
|
-
title: :
|
14
|
+
title: :new_in_modal_title,
|
15
15
|
menu: :new_modal_menu } } do
|
16
16
|
_render_new_content_form
|
17
17
|
end
|
18
18
|
|
19
19
|
def create_form
|
20
|
-
|
21
|
-
|
20
|
+
form_opts = new_in_modal_form_opts.reverse_merge(success: new_in_modal_success)
|
21
|
+
buttons = form_opts.delete(:buttons) || _render_new_buttons
|
22
22
|
|
23
23
|
voo.title ||= new_view_title if new_name_prompt?
|
24
24
|
voo.show :help
|
25
25
|
card_form(:create, form_opts) do
|
26
|
-
|
27
|
-
new_view_hidden,
|
28
|
-
new_view_name,
|
29
|
-
new_view_type,
|
30
|
-
_render_content_formgroup,
|
31
|
-
buttons
|
32
|
-
]
|
26
|
+
create_form_with_alert_guide buttons
|
33
27
|
end
|
34
28
|
end
|
35
29
|
|
@@ -51,24 +45,33 @@ format :html do
|
|
51
45
|
voo.title ||= new_view_title if new_name_prompt?
|
52
46
|
voo.show :help
|
53
47
|
frame_and_form :create, form_opts do
|
54
|
-
|
55
|
-
[(wrap_with(:div, class: "w-100") do
|
56
|
-
[
|
57
|
-
new_view_hidden,
|
58
|
-
new_view_name,
|
59
|
-
new_view_type,
|
60
|
-
_render_content_formgroup,
|
61
|
-
buttons
|
62
|
-
]
|
63
|
-
end),
|
64
|
-
alert_guide]
|
65
|
-
end
|
48
|
+
create_form_with_alert_guide buttons
|
66
49
|
end
|
67
50
|
end
|
68
51
|
end
|
69
52
|
|
53
|
+
def create_form_with_alert_guide buttons
|
54
|
+
wrap_with :div, class: "d-flex justify-content-between" do
|
55
|
+
[(wrap_with(:div, class: "w-100") do
|
56
|
+
[
|
57
|
+
new_view_hidden,
|
58
|
+
new_view_name,
|
59
|
+
new_view_type,
|
60
|
+
_render_content_formgroups,
|
61
|
+
buttons
|
62
|
+
]
|
63
|
+
end),
|
64
|
+
alert_guide]
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
70
68
|
def new_view_hidden; end
|
71
69
|
|
70
|
+
def new_in_modal_form_opts
|
71
|
+
{ "data-slot-selector": "modal-origin", "data-slot-error-selector": ".card-slot",
|
72
|
+
buttons: _render_new_in_modal_buttons }
|
73
|
+
end
|
74
|
+
|
72
75
|
def new_form_opts
|
73
76
|
{ "main-success" => "REDIRECT" }
|
74
77
|
end
|
@@ -80,10 +83,16 @@ format :html do
|
|
80
83
|
)
|
81
84
|
end
|
82
85
|
|
86
|
+
def new_in_modal_title
|
87
|
+
new_name_prompt? ? new_view_title : render_title
|
88
|
+
end
|
89
|
+
|
83
90
|
def new_success
|
84
91
|
card.rule(:thanks) || "_self"
|
85
92
|
end
|
86
93
|
|
94
|
+
def new_in_modal_success; end
|
95
|
+
|
87
96
|
# NAME HANDLING
|
88
97
|
|
89
98
|
def new_view_name
|
@@ -155,12 +164,20 @@ format :html do
|
|
155
164
|
end
|
156
165
|
end
|
157
166
|
|
167
|
+
view :new_in_modal_buttons do
|
168
|
+
button_formgroup do
|
169
|
+
wrap_with "div", class: "d-flex" do
|
170
|
+
[standard_save_and_close_button(text: "Submit"), modal_cancel_button]
|
171
|
+
end
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
158
175
|
# path to redirect to after canceling a new form
|
159
176
|
def cancel_button_new_args
|
160
177
|
href = case
|
161
178
|
when main? then path_to_previous
|
162
179
|
when voo&.home_view then path(view: voo.home_view)
|
163
|
-
else path(view: :
|
180
|
+
else path(view: :unknown)
|
164
181
|
end
|
165
182
|
{ href: href }
|
166
183
|
end
|