platform 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +21 -0
- data/.rspec +2 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +191 -0
- data/MIT-LICENSE +20 -0
- data/README.rdoc +5 -0
- data/Rakefile +37 -0
- data/app/assets/images/platform/.gitkeep +0 -0
- data/app/assets/images/platform/accept.png +0 -0
- data/app/assets/images/platform/action_tab_bkgd.gif +0 -0
- data/app/assets/images/platform/action_tab_white_bkgd.gif +0 -0
- data/app/assets/images/platform/add.png +0 -0
- data/app/assets/images/platform/apps/app_icon.gif +0 -0
- data/app/assets/images/platform/apps/app_logo.gif +0 -0
- data/app/assets/images/platform/arrow_down.gif +0 -0
- data/app/assets/images/platform/arrow_down.png +0 -0
- data/app/assets/images/platform/arrow_down_grey.png +0 -0
- data/app/assets/images/platform/arrow_right.gif +0 -0
- data/app/assets/images/platform/arrow_up.png +0 -0
- data/app/assets/images/platform/arrow_up_grey.png +0 -0
- data/app/assets/images/platform/bullet_go.png +0 -0
- data/app/assets/images/platform/buttons.png +0 -0
- data/app/assets/images/platform/cancel.png +0 -0
- data/app/assets/images/platform/clipboard_icon.gif +0 -0
- data/app/assets/images/platform/close.gif +0 -0
- data/app/assets/images/platform/cross.png +0 -0
- data/app/assets/images/platform/default_app_icon.gif +0 -0
- data/app/assets/images/platform/default_app_logo.gif +0 -0
- data/app/assets/images/platform/delete.png +0 -0
- data/app/assets/images/platform/disk.png +0 -0
- data/app/assets/images/platform/exclamation.png +0 -0
- data/app/assets/images/platform/eye.png +0 -0
- data/app/assets/images/platform/eye_not.png +0 -0
- data/app/assets/images/platform/field_sprite.gif +0 -0
- data/app/assets/images/platform/find.png +0 -0
- data/app/assets/images/platform/globe.gif +0 -0
- data/app/assets/images/platform/help.png +0 -0
- data/app/assets/images/platform/help/app_reg.png +0 -0
- data/app/assets/images/platform/help/app_reg_ext.png +0 -0
- data/app/assets/images/platform/help/app_reg_web.png +0 -0
- data/app/assets/images/platform/help/auth_desktop.png +0 -0
- data/app/assets/images/platform/help/auth_iframe.png +0 -0
- data/app/assets/images/platform/help/auth_iphone.png +0 -0
- data/app/assets/images/platform/help/auth_web.png +0 -0
- data/app/assets/images/platform/help/authorize.png +0 -0
- data/app/assets/images/platform/help/ext.png +0 -0
- data/app/assets/images/platform/help/login.png +0 -0
- data/app/assets/images/platform/help/login_desktop.png +0 -0
- data/app/assets/images/platform/help/login_iphone.png +0 -0
- data/app/assets/images/platform/help/login_web.png +0 -0
- data/app/assets/images/platform/help2.png +0 -0
- data/app/assets/images/platform/information.png +0 -0
- data/app/assets/images/platform/keyboard.png +0 -0
- data/app/assets/images/platform/language_selector_arrow.gif +0 -0
- data/app/assets/images/platform/left_quote.png +0 -0
- data/app/assets/images/platform/lightning.png +0 -0
- data/app/assets/images/platform/loading.gif +0 -0
- data/app/assets/images/platform/loading2.gif +0 -0
- data/app/assets/images/platform/loading3.gif +0 -0
- data/app/assets/images/platform/loading_animation.gif +0 -0
- data/app/assets/images/platform/loading_large.gif +0 -0
- data/app/assets/images/platform/lock.png +0 -0
- data/app/assets/images/platform/lock_add.png +0 -0
- data/app/assets/images/platform/lock_delete.png +0 -0
- data/app/assets/images/platform/lock_open.png +0 -0
- data/app/assets/images/platform/medals/bronze.png +0 -0
- data/app/assets/images/platform/medals/gold.png +0 -0
- data/app/assets/images/platform/medals/runner.png +0 -0
- data/app/assets/images/platform/medals/silver.png +0 -0
- data/app/assets/images/platform/minus_node.png +0 -0
- data/app/assets/images/platform/oauth/perm_tile.gif +0 -0
- data/app/assets/images/platform/oauth/right_grey.png +0 -0
- data/app/assets/images/platform/pencil.png +0 -0
- data/app/assets/images/platform/photo_silhouette.gif +0 -0
- data/app/assets/images/platform/pixel.gif +0 -0
- data/app/assets/images/platform/platform.png +0 -0
- data/app/assets/images/platform/platform2.png +0 -0
- data/app/assets/images/platform/platform3.png +0 -0
- data/app/assets/images/platform/platform4.png +0 -0
- data/app/assets/images/platform/platform5.png +0 -0
- data/app/assets/images/platform/plus.png +0 -0
- data/app/assets/images/platform/plus_node.png +0 -0
- data/app/assets/images/platform/random.png +0 -0
- data/app/assets/images/platform/random2.png +0 -0
- data/app/assets/images/platform/rating_star0.png +0 -0
- data/app/assets/images/platform/rating_star05.png +0 -0
- data/app/assets/images/platform/rating_star1.png +0 -0
- data/app/assets/images/platform/rating_stars.gif +0 -0
- data/app/assets/images/platform/rating_stars.psd +0 -0
- data/app/assets/images/platform/reply.png +0 -0
- data/app/assets/images/platform/right_quote.png +0 -0
- data/app/assets/images/platform/rotating_world.gif +0 -0
- data/app/assets/images/platform/script.png +0 -0
- data/app/assets/images/platform/script_edit.png +0 -0
- data/app/assets/images/platform/script_gear.png +0 -0
- data/app/assets/images/platform/site_sprite.gif +0 -0
- data/app/assets/images/platform/spinner.gif +0 -0
- data/app/assets/images/platform/star.png +0 -0
- data/app/assets/images/platform/table_edit.png +0 -0
- data/app/assets/images/platform/table_gear.png +0 -0
- data/app/assets/images/platform/table_multiple.png +0 -0
- data/app/assets/images/platform/thumb_down.png +0 -0
- data/app/assets/images/platform/thumb_up.png +0 -0
- data/app/assets/images/platform/top_left_stem.png +0 -0
- data/app/assets/images/platform/top_right_stem.png +0 -0
- data/app/assets/images/platform/translate_icn.gif +0 -0
- data/app/assets/images/platform/treeview/diffDoc.gif +0 -0
- data/app/assets/images/platform/treeview/diffFolder.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2blank.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2doc.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2folderclosed.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2folderopen.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2lastnode.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2link.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2mlastnode.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2mnode.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2node.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2plastnode.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2pnode.gif +0 -0
- data/app/assets/images/platform/treeview/ftv2vertline.gif +0 -0
- data/app/assets/images/platform/wizard.png +0 -0
- data/app/assets/images/platform/world_link.png +0 -0
- data/app/assets/javascripts/platform/api_explorer.js +628 -0
- data/app/assets/javascripts/platform/application.js +9 -0
- data/app/assets/javascripts/platform/ftiens4.js +1197 -0
- data/app/assets/javascripts/platform/jsdk.js +539 -0
- data/app/assets/javascripts/platform/platform.js +447 -0
- data/app/assets/javascripts/platform/shortcut.js +223 -0
- data/app/assets/javascripts/platform/ua.js +147 -0
- data/app/assets/stylesheets/platform/api_explorer.css.scss +140 -0
- data/app/assets/stylesheets/platform/application.css.scss +6 -0
- data/app/assets/stylesheets/platform/components.css.scss +208 -0
- data/app/assets/stylesheets/platform/layout.css.scss +119 -0
- data/app/assets/stylesheets/platform/oauth.css +51 -0
- data/app/assets/stylesheets/platform/platform.css.scss +311 -0
- data/app/controllers/platform/admin/apps_controller.rb +99 -0
- data/app/controllers/platform/admin/base_controller.rb +60 -0
- data/app/controllers/platform/admin/categories_controller.rb +132 -0
- data/app/controllers/platform/admin/clientsdk_controller.rb +30 -0
- data/app/controllers/platform/admin/developers_controller.rb +30 -0
- data/app/controllers/platform/admin/exceptions_controller.rb +30 -0
- data/app/controllers/platform/admin/forum_controller.rb +34 -0
- data/app/controllers/platform/admin/metrics_controller.rb +42 -0
- data/app/controllers/platform/api/apps_controller.rb +40 -0
- data/app/controllers/platform/api/base_controller.rb +541 -0
- data/app/controllers/platform/apps_controller.rb +142 -0
- data/app/controllers/platform/base_controller.rb +127 -0
- data/app/controllers/platform/developer/api_explorer_controller.rb +56 -0
- data/app/controllers/platform/developer/apps_controller.rb +161 -0
- data/app/controllers/platform/developer/base_controller.rb +51 -0
- data/app/controllers/platform/developer/blog_controller.rb +29 -0
- data/app/controllers/platform/developer/dashboard_controller.rb +63 -0
- data/app/controllers/platform/developer/forum_controller.rb +85 -0
- data/app/controllers/platform/developer/help_controller.rb +113 -0
- data/app/controllers/platform/developer/info_controller.rb +41 -0
- data/app/controllers/platform/developer/registration_controller.rb +39 -0
- data/app/controllers/platform/developer/resources_controller.rb +30 -0
- data/app/controllers/platform/forum_controller.rb +74 -0
- data/app/controllers/platform/oauth_controller.rb +421 -0
- data/app/controllers/platform/ratings_controller.rb +61 -0
- data/app/helpers/platform/admin/categories_helper.rb +54 -0
- data/app/helpers/platform/apps_helper.rb +26 -0
- data/app/helpers/platform/developer/dashboard_helper.rb +42 -0
- data/app/helpers/platform/developer/help_helper.rb +45 -0
- data/app/helpers/platform_helper.rb +26 -0
- data/app/models/platform/application.rb +394 -0
- data/app/models/platform/application_category.rb +34 -0
- data/app/models/platform/application_developer.rb +30 -0
- data/app/models/platform/application_filter.rb +30 -0
- data/app/models/platform/application_log.rb +32 -0
- data/app/models/platform/application_log_filter.rb +34 -0
- data/app/models/platform/application_metric.rb +58 -0
- data/app/models/platform/application_metric_filter.rb +34 -0
- data/app/models/platform/application_permission.rb +30 -0
- data/app/models/platform/application_permission_filter.rb +30 -0
- data/app/models/platform/application_usage_metric.rb +58 -0
- data/app/models/platform/application_usage_metric_filter.rb +34 -0
- data/app/models/platform/application_user.rb +45 -0
- data/app/models/platform/application_user_filter.rb +34 -0
- data/app/models/platform/base_filter.rb +46 -0
- data/app/models/platform/category.rb +64 -0
- data/app/models/platform/daily_application_metric.rb +31 -0
- data/app/models/platform/developer.rb +45 -0
- data/app/models/platform/developer_filter.rb +26 -0
- data/app/models/platform/forum_message.rb +35 -0
- data/app/models/platform/forum_message_filter.rb +26 -0
- data/app/models/platform/forum_topic.rb +38 -0
- data/app/models/platform/forum_topic_filter.rb +26 -0
- data/app/models/platform/logged_exception.rb +290 -0
- data/app/models/platform/logged_exception_filter.rb +58 -0
- data/app/models/platform/media/image.rb +26 -0
- data/app/models/platform/media/media.rb +58 -0
- data/app/models/platform/monthly_application_metric.rb +31 -0
- data/app/models/platform/oauth/access_token.rb +57 -0
- data/app/models/platform/oauth/client_token.rb +38 -0
- data/app/models/platform/oauth/oauth_model_methods.rb +41 -0
- data/app/models/platform/oauth/oauth_token.rb +57 -0
- data/app/models/platform/oauth/oauth_token_filter.rb +34 -0
- data/app/models/platform/oauth/refresh_token.rb +47 -0
- data/app/models/platform/oauth/request_token.rb +50 -0
- data/app/models/platform/permission.rb +27 -0
- data/app/models/platform/rating.rb +43 -0
- data/app/models/platform/rating_filter.rb +30 -0
- data/app/models/platform/rollup_log.rb +27 -0
- data/app/models/platform/rollup_log_filter.rb +30 -0
- data/app/models/platform/total_application_metric.rb +40 -0
- data/app/models/platform/weekly_application_metric.rb +31 -0
- data/app/views/platform/admin/apps/_categories.html.erb +17 -0
- data/app/views/platform/admin/apps/_categories_scripts.html.erb +17 -0
- data/app/views/platform/admin/apps/_tabs.html.erb +25 -0
- data/app/views/platform/admin/apps/index.html.erb +32 -0
- data/app/views/platform/admin/apps/permissions.html.erb +7 -0
- data/app/views/platform/admin/apps/ratings.html.erb +7 -0
- data/app/views/platform/admin/apps/tokens.html.erb +18 -0
- data/app/views/platform/admin/apps/users.html.erb +7 -0
- data/app/views/platform/admin/apps/view.html.erb +170 -0
- data/app/views/platform/admin/categories/_tabs.html.erb +22 -0
- data/app/views/platform/admin/categories/category_assigner.html.erb +9 -0
- data/app/views/platform/admin/categories/category_assigner_tree.html.erb +81 -0
- data/app/views/platform/admin/categories/index.html.erb +106 -0
- data/app/views/platform/admin/categories/items.html.erb +153 -0
- data/app/views/platform/admin/categories/lb_update_application_category.html.erb +54 -0
- data/app/views/platform/admin/categories/lb_update_category.html.erb +64 -0
- data/app/views/platform/admin/categories/tree.html.erb +64 -0
- data/app/views/platform/admin/clientsdk/index.html.erb +89 -0
- data/app/views/platform/admin/common/_footer.html.erb +1 -0
- data/app/views/platform/admin/common/_header.html.erb +32 -0
- data/app/views/platform/admin/common/_lightbox_buttons.html.erb +5 -0
- data/app/views/platform/admin/common/_paginator.html.erb +20 -0
- data/app/views/platform/admin/developers/_tabs.html.erb +22 -0
- data/app/views/platform/admin/developers/index.html.erb +7 -0
- data/app/views/platform/admin/exceptions/_tabs.html.erb +22 -0
- data/app/views/platform/admin/exceptions/index.html.erb +7 -0
- data/app/views/platform/admin/forum/_tabs.html.erb +22 -0
- data/app/views/platform/admin/forum/index.html.erb +7 -0
- data/app/views/platform/admin/forum/messages.html.erb +7 -0
- data/app/views/platform/admin/metrics/_tabs.html.erb +25 -0
- data/app/views/platform/admin/metrics/application_log.html.erb +7 -0
- data/app/views/platform/admin/metrics/index.html.erb +9 -0
- data/app/views/platform/admin/metrics/rollup_log.html.erb +7 -0
- data/app/views/platform/admin/metrics/usage.html.erb +7 -0
- data/app/views/platform/apps/_actions_module.html.erb +3 -0
- data/app/views/platform/apps/_app_footer.html.erb +8 -0
- data/app/views/platform/apps/_app_header.html.erb +25 -0
- data/app/views/platform/apps/_apps_module.html.erb +42 -0
- data/app/views/platform/apps/_authorize_form.html.erb +11 -0
- data/app/views/platform/apps/_categories_module.html.erb +11 -0
- data/app/views/platform/apps/_featured_apps_module.html.erb +40 -0
- data/app/views/platform/apps/_left.html.erb +20 -0
- data/app/views/platform/apps/_monthly_users_module.html.erb +8 -0
- data/app/views/platform/apps/_paginator.html.erb +13 -0
- data/app/views/platform/apps/_rank_module.html.erb +18 -0
- data/app/views/platform/apps/_search_apps_module.html.erb +35 -0
- data/app/views/platform/apps/canvas_app.html.erb +15 -0
- data/app/views/platform/apps/index.html.erb +86 -0
- data/app/views/platform/apps/view.html.erb +71 -0
- data/app/views/platform/apps/xd.html.erb +11 -0
- data/app/views/platform/common/_footer.html.erb +1 -0
- data/app/views/platform/common/_header.html.erb +4 -0
- data/app/views/platform/common/_paginator.html.erb +32 -0
- data/app/views/platform/common/_scripts.html.erb +7 -0
- data/app/views/platform/common/_user_login.html.erb +11 -0
- data/app/views/platform/developer/api_explorer/history.html.erb +31 -0
- data/app/views/platform/developer/api_explorer/index.html.erb +134 -0
- data/app/views/platform/developer/api_explorer/oauth_lander.html.erb +4 -0
- data/app/views/platform/developer/api_explorer/options.html.erb +44 -0
- data/app/views/platform/developer/apps/_form.html.erb +340 -0
- data/app/views/platform/developer/apps/create_version.html.erb +19 -0
- data/app/views/platform/developer/apps/edit.html.erb +21 -0
- data/app/views/platform/developer/apps/index.html.erb +375 -0
- data/app/views/platform/developer/apps/new.html.erb +20 -0
- data/app/views/platform/developer/blog/index.html.erb +7 -0
- data/app/views/platform/developer/common/_footer.html.erb +1 -0
- data/app/views/platform/developer/common/_header.html.erb +34 -0
- data/app/views/platform/developer/dashboard/_apps_info.html.erb +84 -0
- data/app/views/platform/developer/dashboard/_discussions.html.erb +68 -0
- data/app/views/platform/developer/dashboard/_header.html.erb +12 -0
- data/app/views/platform/developer/dashboard/_reviews.html.erb +53 -0
- data/app/views/platform/developer/dashboard/_statistics.html.erb +105 -0
- data/app/views/platform/developer/dashboard/index.html.erb +85 -0
- data/app/views/platform/developer/dashboard/settings.html.erb +23 -0
- data/app/views/platform/developer/forum/_message.html.erb +17 -0
- data/app/views/platform/developer/forum/_messages.html.erb +14 -0
- data/app/views/platform/developer/forum/_new_message.html.erb +28 -0
- data/app/views/platform/developer/forum/_new_topic.html.erb +39 -0
- data/app/views/platform/developer/forum/index.html.erb +89 -0
- data/app/views/platform/developer/forum/topic.html.erb +28 -0
- data/app/views/platform/developer/help/_footer.html.erb +4 -0
- data/app/views/platform/developer/help/_header.html.erb +95 -0
- data/app/views/platform/developer/help/_navigation.html.erb +99 -0
- data/app/views/platform/developer/help/api.html.erb +120 -0
- data/app/views/platform/developer/help/credits.html.erb +77 -0
- data/app/views/platform/developer/help/index.html.erb +19 -0
- data/app/views/platform/developer/help/license.html.erb +586 -0
- data/app/views/platform/developer/help/oauth_app_login.html.erb +177 -0
- data/app/views/platform/developer/help/oauth_client_side.html.erb +264 -0
- data/app/views/platform/developer/help/oauth_desktop.html.erb +191 -0
- data/app/views/platform/developer/help/oauth_extensions.html.erb +342 -0
- data/app/views/platform/developer/help/oauth_intro.html.erb +371 -0
- data/app/views/platform/developer/help/oauth_mobile.html.erb +292 -0
- data/app/views/platform/developer/help/oauth_server_side.html.erb +603 -0
- data/app/views/platform/developer/help/oauth_trusted_client.html.erb +202 -0
- data/app/views/platform/developer/help/reference.html.erb +42 -0
- data/app/views/platform/developer/help/sdk_ios.html.erb +31 -0
- data/app/views/platform/developer/help/sdk_js.html.erb +202 -0
- data/app/views/platform/developer/info/_basic_info.html.erb +74 -0
- data/app/views/platform/developer/info/_header.html.erb +12 -0
- data/app/views/platform/developer/info/index.html.erb +23 -0
- data/app/views/platform/developer/registration/index.html.erb +134 -0
- data/app/views/platform/developer/resources/index.html.erb +23 -0
- data/app/views/platform/forum/_message.html.erb +17 -0
- data/app/views/platform/forum/_messages.html.erb +14 -0
- data/app/views/platform/forum/_new_message.html.erb +26 -0
- data/app/views/platform/forum/_new_topic.html.erb +38 -0
- data/app/views/platform/forum/_topic.html.erb +18 -0
- data/app/views/platform/forum/_topics.html.erb +74 -0
- data/app/views/platform/login/index.html.erb +31 -0
- data/app/views/platform/login/register.html.erb +55 -0
- data/app/views/platform/oauth/_authorization_box.html.erb +75 -0
- data/app/views/platform/oauth/_authorization_popup.html.erb +38 -0
- data/app/views/platform/oauth/_authorize_form.html.erb +11 -0
- data/app/views/platform/oauth/auth_failed.html.erb +0 -0
- data/app/views/platform/oauth/auth_success.html.erb +0 -0
- data/app/views/platform/oauth/authorize_desktop.html.erb +76 -0
- data/app/views/platform/oauth/authorize_failure_iframe.html.erb +1 -0
- data/app/views/platform/oauth/authorize_failure_mobile.html.erb +24 -0
- data/app/views/platform/oauth/authorize_failure_popup.html.erb +24 -0
- data/app/views/platform/oauth/authorize_failure_web.html.erb +1 -0
- data/app/views/platform/oauth/authorize_iframe.html.erb +16 -0
- data/app/views/platform/oauth/authorize_mobile.html.erb +1 -0
- data/app/views/platform/oauth/authorize_popup.html.erb +1 -0
- data/app/views/platform/oauth/authorize_success_iframe.html.erb +1 -0
- data/app/views/platform/oauth/authorize_success_mobile.html.erb +24 -0
- data/app/views/platform/oauth/authorize_success_popup.html.erb +24 -0
- data/app/views/platform/oauth/authorize_success_web.html.erb +1 -0
- data/app/views/platform/oauth/authorize_web.html.erb +3 -0
- data/app/views/platform/oauth/xd.html.erb +13 -0
- data/app/views/platform/ratings/_list.html.erb +30 -0
- data/app/views/platform/ratings/_new.html.erb +70 -0
- data/app/views/platform/ratings/_rating.html.erb +17 -0
- data/config/platform/config.yml +133 -0
- data/config/platform/data/default_applications.yml +39 -0
- data/config/platform/data/default_categories.yml +56 -0
- data/config/platform/data/default_permissions.yml +0 -0
- data/config/platform/site/features.yml +66 -0
- data/config/routes.rb +59 -0
- data/db/migrate/20110602232141_create_platform_tables.rb +262 -0
- data/docs/Classes.graffle +7315 -0
- data/docs/Classes.pdf +0 -0
- data/lib/generators/platform/platform_generator.rb +56 -0
- data/lib/generators/platform/templates/db/create_platform_tables.rb +262 -0
- data/lib/generators/platform/templates/layouts/platform.html.erb +49 -0
- data/lib/generators/platform/templates/layouts/platform_admin.html.erb +60 -0
- data/lib/platform.rb +6 -0
- data/lib/platform/api/already_jsoned_string.rb +9 -0
- data/lib/platform/api/proxy.rb +45 -0
- data/lib/platform/api/proxy/base.rb +62 -0
- data/lib/platform/cache.rb +78 -0
- data/lib/platform/config.rb +666 -0
- data/lib/platform/engine.rb +5 -0
- data/lib/platform/exception.rb +27 -0
- data/lib/platform/extensions/action_controller_extension.rb +65 -0
- data/lib/platform/extensions/action_view_extension.rb +168 -0
- data/lib/platform/extensions/object_extension.rb +51 -0
- data/lib/platform/helper.rb +33 -0
- data/lib/platform/logger.rb +62 -0
- data/lib/platform/railtie.rb +52 -0
- data/lib/platform/random_password_generator.rb +76 -0
- data/lib/platform/simple_string_permissions.rb +40 -0
- data/lib/platform/version.rb +3 -0
- data/lib/tasks/platform.rake +119 -0
- data/platform.gemspec +45 -0
- data/script/rails +6 -0
- data/spec/config/config_spec.rb +10 -0
- data/spec/dummy_app.rb +52 -0
- data/spec/models/application_spec.rb +53 -0
- data/spec/models/developer_spec.rb +23 -0
- data/spec/spec_helper.rb +29 -0
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/assets/javascripts/application.js +7 -0
- data/test/dummy/app/assets/stylesheets/admin.css +200 -0
- data/test/dummy/app/assets/stylesheets/application.css +47 -0
- data/test/dummy/app/assets/stylesheets/components.css.scss +211 -0
- data/test/dummy/app/assets/stylesheets/layout.css.scss +143 -0
- data/test/dummy/app/controllers/admin/admins_controller.rb +7 -0
- data/test/dummy/app/controllers/admin/base_controller.rb +12 -0
- data/test/dummy/app/controllers/admin/bookmarks_controller.rb +7 -0
- data/test/dummy/app/controllers/admin/users_controller.rb +19 -0
- data/test/dummy/app/controllers/api/base_controller.rb +5 -0
- data/test/dummy/app/controllers/api/bookmarks_controller.rb +35 -0
- data/test/dummy/app/controllers/api/users_controller.rb +19 -0
- data/test/dummy/app/controllers/application_controller.rb +31 -0
- data/test/dummy/app/controllers/home_controller.rb +7 -0
- data/test/dummy/app/controllers/login_controller.rb +65 -0
- data/test/dummy/app/helpers/application_helper.rb +9 -0
- data/test/dummy/app/helpers/home_helper.rb +2 -0
- data/test/dummy/app/mailers/.gitkeep +0 -0
- data/test/dummy/app/models/.gitkeep +0 -0
- data/test/dummy/app/models/admin.rb +4 -0
- data/test/dummy/app/models/admin_filter.rb +7 -0
- data/test/dummy/app/models/bookmark.rb +7 -0
- data/test/dummy/app/models/user.rb +34 -0
- data/test/dummy/app/views/admin/admins/index.html.erb +7 -0
- data/test/dummy/app/views/admin/bookmarks/index.html.erb +5 -0
- data/test/dummy/app/views/admin/users/index.html.erb +10 -0
- data/test/dummy/app/views/demo/index.rhtml +108 -0
- data/test/dummy/app/views/demo/tokens.rhtml +35 -0
- data/test/dummy/app/views/home/index.html.erb +43 -0
- data/test/dummy/app/views/layouts/_footer.html.erb +16 -0
- data/test/dummy/app/views/layouts/_header.html.erb +22 -0
- data/test/dummy/app/views/layouts/admin.html.erb +97 -0
- data/test/dummy/app/views/layouts/application.html.erb +25 -0
- data/test/dummy/app/views/layouts/minimal.html.erb +37 -0
- data/test/dummy/app/views/layouts/popup.html.erb +43 -0
- data/test/dummy/app/views/login/index.html.erb +34 -0
- data/test/dummy/app/views/login/register.html.erb +51 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/application.rb +51 -0
- data/test/dummy/config/boot.rb +10 -0
- data/test/dummy/config/database.yml +25 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +30 -0
- data/test/dummy/config/environments/production.rb +60 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/inflections.rb +10 -0
- data/test/dummy/config/initializers/mime_types.rb +5 -0
- data/test/dummy/config/initializers/secret_token.rb +7 -0
- data/test/dummy/config/initializers/session_store.rb +8 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/config/platform/api/0/bookmark.yml +18 -0
- data/test/dummy/config/platform/api/0/user.yml +17 -0
- data/test/dummy/config/platform/api/1/bookmark.yml +58 -0
- data/test/dummy/config/platform/api/1/user.yml +36 -0
- data/test/dummy/config/platform/config.yml +135 -0
- data/test/dummy/config/platform/data/default_applications.yml +39 -0
- data/test/dummy/config/platform/data/default_categories.yml +56 -0
- data/test/dummy/config/platform/data/default_permissions.yml +0 -0
- data/test/dummy/config/platform/site/features.yml +66 -0
- data/test/dummy/config/platform/site/sample_apps.yml +100 -0
- data/test/dummy/config/routes.rb +30 -0
- data/test/dummy/config/tr8n/config.yml +247 -0
- data/test/dummy/config/tr8n/data/ip_locations.csv +93460 -0
- data/test/dummy/config/tr8n/rules/default_date_rules.yml +20 -0
- data/test/dummy/config/tr8n/rules/default_gender_list_rules.yml +82 -0
- data/test/dummy/config/tr8n/rules/default_gender_rules.yml +20 -0
- data/test/dummy/config/tr8n/rules/default_language_cases.yml +272 -0
- data/test/dummy/config/tr8n/rules/default_list_rules.yml +19 -0
- data/test/dummy/config/tr8n/rules/default_numeric_rules.yml +42 -0
- data/test/dummy/config/tr8n/rules/default_value_rules.yml +18 -0
- data/test/dummy/config/tr8n/site/default_glossary.yml +18 -0
- data/test/dummy/config/tr8n/site/default_languages.yml +1591 -0
- data/test/dummy/config/tr8n/site/features.yml +111 -0
- data/test/dummy/config/tr8n/site/shortcuts.yml +55 -0
- data/test/dummy/config/tr8n/site/sitemap.json +42 -0
- data/test/dummy/config/tr8n/tokens/data.yml +19 -0
- data/test/dummy/config/tr8n/tokens/decorations.yml +19 -0
- data/test/dummy/config/will_filter/config.yml +99 -0
- data/test/dummy/db/migrate/20101207014543_create_users.rb +23 -0
- data/test/dummy/db/migrate/20110113223509_create_admins.rb +15 -0
- data/test/dummy/db/migrate/20110930041143_create_will_filter_filters.rb +15 -0
- data/test/dummy/db/migrate/20110930041150_create_tr8n_tables.rb +350 -0
- data/test/dummy/db/migrate/20111004075531_create_platform_tables.rb +262 -0
- data/test/dummy/db/migrate/20111012055603_create_bookmarks.rb +10 -0
- data/test/dummy/db/schema.rb +683 -0
- data/test/dummy/lib/assets/.gitkeep +0 -0
- data/test/dummy/lib/platform/api/bookmark_proxy_0.rb +12 -0
- data/test/dummy/lib/platform/api/bookmark_proxy_1.rb +12 -0
- data/test/dummy/lib/platform/api/user_proxy_0.rb +12 -0
- data/test/dummy/lib/platform/api/user_proxy_1.rb +12 -0
- data/test/dummy/log/.gitkeep +0 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/script/rails +6 -0
- data/test/dummy/test/fixtures/documents.yml +11 -0
- data/test/dummy/test/unit/document_test.rb +7 -0
- metadata +886 -0
@@ -0,0 +1,10 @@
|
|
1
|
+
<div class="section_title">Site Users</div>
|
2
|
+
|
3
|
+
<%= will_filter_tag(@users) %>
|
4
|
+
|
5
|
+
<%= will_filter_table_tag(@users, :columns => [:id, :email,
|
6
|
+
:first_name, :last_name, :gender, :locale,
|
7
|
+
[:admin, lambda{|user| user.admin?}],
|
8
|
+
:created_at,
|
9
|
+
[:actions, lambda{|user| user.admin? ? link_to('demote', :action => :demote, :user_id => user.id) : link_to('promote', :action => :promote, :user_id => user.id)}]
|
10
|
+
]) %>
|
@@ -0,0 +1,108 @@
|
|
1
|
+
<style>
|
2
|
+
.code {
|
3
|
+
border: 1px dotted #ccc;
|
4
|
+
background-color: #f4f5f6;
|
5
|
+
margin-bottom:10px;
|
6
|
+
padding:10px;
|
7
|
+
}
|
8
|
+
|
9
|
+
.example {
|
10
|
+
border: 1px dotted #ccc;
|
11
|
+
background-color: #f5f1f1;
|
12
|
+
margin-bottom:10px;
|
13
|
+
padding:10px;
|
14
|
+
}
|
15
|
+
|
16
|
+
.note {
|
17
|
+
font-style: italic;
|
18
|
+
}
|
19
|
+
|
20
|
+
hr {
|
21
|
+
margin-top:10px;
|
22
|
+
}
|
23
|
+
</style>
|
24
|
+
<div class="content_bd">
|
25
|
+
|
26
|
+
<h3>Here are some of the examples from the La Ruby Meetup presentation:</h3>
|
27
|
+
<p style="color:#444;">
|
28
|
+
To try them out, register as a translator and enable inline translation in a language of your preference.
|
29
|
+
The first line shows the code used for the tr tag. The second line is the translatable sentence that you can play with.
|
30
|
+
</p>
|
31
|
+
<p>
|
32
|
+
Presentation slides can be downloaded here:
|
33
|
+
<%=link_to("slides.pdf", "/presentation/slides.pdf" )%>
|
34
|
+
</p>
|
35
|
+
|
36
|
+
<hr>
|
37
|
+
<p class="note">Simple phrase example.</p>
|
38
|
+
|
39
|
+
<div class="code">
|
40
|
+
tr("Hello World")
|
41
|
+
</div>
|
42
|
+
|
43
|
+
<div class="example">
|
44
|
+
<%= tr("Hello World") %>
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<hr>
|
48
|
+
<p class="note">Uses simple data token.</p>
|
49
|
+
|
50
|
+
<div class="code">
|
51
|
+
tr("Welcome {user}!", '', :user => User.new(:first_name => 'Jack', :last_name => 'Bauer', :gender => 'male'))
|
52
|
+
</div>
|
53
|
+
|
54
|
+
<div class="example">
|
55
|
+
<%= tr("Welcome {user}!", '', :user => User.new(:first_name => 'Jack', :last_name => 'Bauer', :gender => 'male')) %>
|
56
|
+
</div>
|
57
|
+
|
58
|
+
<hr>
|
59
|
+
<p class="note">Uses decoration token.</p>
|
60
|
+
|
61
|
+
<div class="code">
|
62
|
+
tr("Hello [italic: World]")
|
63
|
+
</div>
|
64
|
+
|
65
|
+
<div class="example">
|
66
|
+
<%= tr("Hello [italic: World]") %>
|
67
|
+
</div>
|
68
|
+
|
69
|
+
|
70
|
+
<hr>
|
71
|
+
<p class="note">Uses transform token.</p>
|
72
|
+
|
73
|
+
<div class="code">
|
74
|
+
tr("You have {count||message}", 'Inbox message', :count => 5)
|
75
|
+
</div>
|
76
|
+
|
77
|
+
<div class="example">
|
78
|
+
<%= tr("You have {count||message}", 'Inbox message', :count => 5) %>
|
79
|
+
</div>
|
80
|
+
|
81
|
+
<hr>
|
82
|
+
<p class="note">Uses transform token inside of decoration token.</p>
|
83
|
+
|
84
|
+
<div class="code">
|
85
|
+
tr("You have [bold: {count||message}]", 'Inbox message', :count => 1)
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<div class="example">
|
89
|
+
<%= tr("You have [bold: {count||message}]", 'Inbox message', :count => 1) %>
|
90
|
+
</div>
|
91
|
+
|
92
|
+
<hr>
|
93
|
+
<p class="note">Uses gender dependent tokens. You can try out different varions of gender context rules and see your results.</p>
|
94
|
+
|
95
|
+
<div class="code">
|
96
|
+
tr("{actor} gave a present to {target}", 'Newsfeed story', :actor => User.new(:first_name => 'Michael', :gender => 'male'), :target => User.new(:first_name => 'Anna', :gender => 'female'))
|
97
|
+
<br><br>
|
98
|
+
tr("{actor} gave a present to {target}", 'Newsfeed story', :actor => User.new(:first_name => 'Anna', :gender => 'female'), :target => User.new(:first_name => 'Michael', :gender => 'male'))
|
99
|
+
</div>
|
100
|
+
|
101
|
+
<div class="example">
|
102
|
+
<%= tr("{actor} gave a present to {target}", 'Newsfeed story', :actor => User.new(:first_name => 'Michael', :gender => 'male'), :target => User.new(:first_name => 'Anna', :gender => 'female')) %>
|
103
|
+
<br><br>
|
104
|
+
<%= tr("{actor} gave a present to {target}", 'Newsfeed story', :actor => User.new(:first_name => 'Anna', :gender => 'female'), :target => User.new(:first_name => 'Michael', :gender => 'male')) %>
|
105
|
+
</div>
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
<div class="content_bd">
|
2
|
+
|
3
|
+
<%= tr("Hello World") %>
|
4
|
+
<br><br>
|
5
|
+
|
6
|
+
<%= tr("Hello {user}", 'User greeting', :user => current_user) %>
|
7
|
+
|
8
|
+
<br><br>
|
9
|
+
<%= tr("Hello {user}", 'User greeting', :user => [current_user, :first_name]) %>
|
10
|
+
|
11
|
+
<br><br>
|
12
|
+
<%= tr("Hello {user}", 'User greeting', :user => [current_user, lambda{|user| display_user_tag(user)}]) %>
|
13
|
+
|
14
|
+
<br><br>
|
15
|
+
<%= tr("Hello [italic: World]") %>
|
16
|
+
|
17
|
+
<br><br>
|
18
|
+
<%= tr("You have {count||message}", 'Inbox message', :count => 5) %>
|
19
|
+
|
20
|
+
<br><br>
|
21
|
+
<%= tr("You have [bold: {count||message}]", 'Inbox message', :count => 1) %>
|
22
|
+
|
23
|
+
<br><br>
|
24
|
+
<%= tr("{actor} gave a present to {target}", 'Newsfeed story', :actor => User.new(:first_name => 'Michael', :gender => 'male'), :target => User.new(:first_name => 'Anna', :gender => 'female')) %>
|
25
|
+
|
26
|
+
<br><br>
|
27
|
+
<%= tr("{actor} gave a present to {target}", 'Newsfeed story', :actor => User.new(:first_name => 'Anna', :gender => 'female'), :target => User.new(:first_name => 'Michael', :gender => 'male')) %>
|
28
|
+
|
29
|
+
<br><br>
|
30
|
+
<%= tr("{actor} sent a message to {target}", 'Newsfeed story', :actor => User.new(:first_name => 'Михаил', :gender => 'male'), :target => User.new(:first_name => 'Анна', :gender => 'female')) %>
|
31
|
+
|
32
|
+
<br><br>
|
33
|
+
<%= tr("{actor} sent a message to {target}", 'Newsfeed story', :actor => User.new(:first_name => 'Анна', :gender => 'female'), :target => User.new(:first_name => 'Михаил', :gender => 'male')) %>
|
34
|
+
|
35
|
+
</div>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<div style="text-align:center; padding:20px;">
|
2
|
+
<%=image_tag("platform/platform5.png", :style => "height:100px;")%>
|
3
|
+
</div>
|
4
|
+
|
5
|
+
<h2 class="underscore content_hd">
|
6
|
+
<%=tr('Welcome to the Rails Platform Engine') %>
|
7
|
+
</h2>
|
8
|
+
|
9
|
+
<div class="content_bd">
|
10
|
+
<%=tr("Rails Platform Engine is a collection of tools, scripts and configurations that make any Rails application into an international development platform.")%>
|
11
|
+
<%=tr("It comes with Application Directory, Developer Tools, Administration tools, Test tools and Help files that make the process of creating API and OAuth 2.0 authentication a piece of cake.")%>
|
12
|
+
</div>
|
13
|
+
|
14
|
+
<div class="content_bd">
|
15
|
+
<h3><%=tr("If you are trying out Platform functionality, here are some helpful links to get started:")%></h3>
|
16
|
+
<ul style="list-style-type:decimal; margin-left:30px; font-size:14px;">
|
17
|
+
<li><%= link_to(tr("Register for a developer account"), "/login/register")%></li>
|
18
|
+
<li><%= link_to(tr("Create a new application"), "/platform/developer/apps")%></li>
|
19
|
+
<li><%= link_to(tr("Explore existing applications"), "/platform/apps")%></li>
|
20
|
+
<li><%= link_to(tr("View your application dashboard"), "/platform/developer/dashboard")%></li>
|
21
|
+
<li><%= link_to(tr("Create an application extension"), "/platform/developer/apps")%></li>
|
22
|
+
<li><%= link_to(tr("View help"), "/platform/developer/help")%></li>
|
23
|
+
</ul>
|
24
|
+
</div>
|
25
|
+
|
26
|
+
<div class="content_bd">
|
27
|
+
<h3><%=tr("URL Bookmarklet")%></h3>
|
28
|
+
<p>
|
29
|
+
<%=tr("This sample application uses Bookmark object for API examples.")%>
|
30
|
+
<%=tr("It uses a simple bookmarklet script to allow you to create a bookmark from any url you are looking at.")%>
|
31
|
+
<%=tr("Drag the link below to your browser's toolbar or add it to your bookmark list:") %>
|
32
|
+
</p>
|
33
|
+
<p>
|
34
|
+
<a href="javascript:(function(){location.href='http://localhost:3000/api/bookmark/create?bookmarklet=1&title=' + escape(document.title) + '&url='+escape(location.href);})()">Post to Sample Application</a>
|
35
|
+
</p>
|
36
|
+
<p>
|
37
|
+
<%=tr("When you're surfing the web and find a page that you want to bookmark, just click the \"Post to Sample Application\" button on your toolbar or choose it in your bookmark list.") %>
|
38
|
+
</p>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
|
42
|
+
|
43
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<div class="page_ft module quiet">
|
2
|
+
<ul class="flt_r right_horiz_list">
|
3
|
+
<li><%=link_to(tr("Home"), "/home", :class => "quiet")%></li>
|
4
|
+
<li><%=link_to(tr("Application Directory"), "/platform/apps", :class => "quiet")%></li>
|
5
|
+
<li><%=link_to(tr("Developer Tools"), "/platform/developer/apps", :class => "quiet")%></li>
|
6
|
+
<li><%=link_to(tr("Administration Tools"), "/platform/admin/apps", :class => "quiet")%></li>
|
7
|
+
<li><%=link_to(tr("Credits"), "/platform/developer/help/credits", :class => "quiet")%></li>
|
8
|
+
<li><%=link_to(tr("License"), "/platform/developer/help/license", :class => "quiet")%></li>
|
9
|
+
</ul>
|
10
|
+
© Copyright 2010-2011 Michael Berkovich
|
11
|
+
</div>
|
12
|
+
|
13
|
+
</div>
|
14
|
+
|
15
|
+
<div style="margin-top:20px;margin-bottom:50px;">
|
16
|
+
</div>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<div class="page_head">
|
2
|
+
<div class="page_fixed">
|
3
|
+
<div class="mrgn_h">
|
4
|
+
<ul class="flt_r horiz_list top_nav">
|
5
|
+
<% if current_user.guest? %>
|
6
|
+
<li><%=link_to(tr("Login"), "/login")%></li>
|
7
|
+
<% else %>
|
8
|
+
<li><%=tr("Welcome {user}!", "", :user => [current_user, current_user.name]) %></li>
|
9
|
+
<li><%=link_to(tr("Logout"), "/login/out")%></li>
|
10
|
+
<% end %>
|
11
|
+
<li><%= tr8n_language_selector_tag(:lightbox=>false) %></li>
|
12
|
+
</ul>
|
13
|
+
<h1 class="logo">
|
14
|
+
<%=link_to("Sample Application", "/home", :style=>"text-decorations:none;")%>
|
15
|
+
</h1>
|
16
|
+
</div>
|
17
|
+
</div>
|
18
|
+
</div>
|
19
|
+
|
20
|
+
<div class="page_fixed">
|
21
|
+
<%= tr8n_flashes_tag %>
|
22
|
+
</div>
|
@@ -0,0 +1,97 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
3
|
+
<head>
|
4
|
+
<title><%=trl("Platform Sample Application", "Application title")%></title>
|
5
|
+
<%= stylesheet_link_tag "admin" %>
|
6
|
+
<%= javascript_include_tag "application" %>
|
7
|
+
<%= csrf_meta_tag %>
|
8
|
+
<%= tr8n_scripts_tag %>
|
9
|
+
<style>
|
10
|
+
.page_fixed {
|
11
|
+
width: 100%;
|
12
|
+
}
|
13
|
+
|
14
|
+
.page_body {
|
15
|
+
width: 100%;
|
16
|
+
}
|
17
|
+
|
18
|
+
.wf_form {
|
19
|
+
width: 99.8%;
|
20
|
+
}
|
21
|
+
|
22
|
+
.admin_category_item {
|
23
|
+
padding-bottom: 3px;
|
24
|
+
text-align: left;
|
25
|
+
width: 100%;
|
26
|
+
border-right: 0px solid #ccc;
|
27
|
+
background-color: #eceff5;
|
28
|
+
}
|
29
|
+
|
30
|
+
.admin_category_item_selected {
|
31
|
+
text-align: left;
|
32
|
+
width: 100%;
|
33
|
+
padding: 0px;
|
34
|
+
border-top: 1px solid #ccc;
|
35
|
+
border-bottom: 1px solid #ccc;
|
36
|
+
border-left: 0;
|
37
|
+
border-right: 1px solid #feffef;
|
38
|
+
background-color: #FEFFEF;
|
39
|
+
}
|
40
|
+
|
41
|
+
.admin_category_item_selected a {
|
42
|
+
color: black;
|
43
|
+
}
|
44
|
+
</style>
|
45
|
+
</head>
|
46
|
+
|
47
|
+
<%
|
48
|
+
admin_links = [
|
49
|
+
["Users", "/admin/users", "users"],
|
50
|
+
["Admins", "/admin/admins", "admins"],
|
51
|
+
["Bookmarks", "/admin/bookmarks", "bookmarks"],
|
52
|
+
["Tr8n", "/tr8n/admin/language", "language"],
|
53
|
+
["Platform", "/platform/admin/apps", "apps"],
|
54
|
+
]
|
55
|
+
%>
|
56
|
+
|
57
|
+
<body style="spacing:0px; padding:0px; margin:0px; background-color:#f5f5f5;">
|
58
|
+
<div class="document">
|
59
|
+
<%=render :partial => "/layouts/header" %>
|
60
|
+
<div class="page_fixed">
|
61
|
+
<div class="page_body">
|
62
|
+
<div class="content_module">
|
63
|
+
<div class="content_inner" style="padding: 10px;">
|
64
|
+
<table style="width:100%" cellpadding="0px" cellspacing="5px">
|
65
|
+
<tr>
|
66
|
+
<td style="background-color:#eceff5;vertical-align:top;width:180px;min-width:180px;font-size:12px; border-right:1px solid #ccc;">
|
67
|
+
<div style="font-size:16px;font-weight:bold;padding:10px; text-align:center">
|
68
|
+
Admin Options
|
69
|
+
</div>
|
70
|
+
<% admin_links.each do |admin| %>
|
71
|
+
<% kls = "admin_category_item"
|
72
|
+
ctrl_name = controller.controller_name
|
73
|
+
ctrl_name = 'language' if request.url.index('/tr8n/')
|
74
|
+
ctrl_name = 'apps' if request.url.index('/platform/')
|
75
|
+
if admin[2] == ctrl_name
|
76
|
+
kls = "admin_category_item_selected"
|
77
|
+
end %>
|
78
|
+
<div class='<%=kls%>'>
|
79
|
+
<div style="padding:5px;">
|
80
|
+
<%=link_to(admin[0], admin[1]) %>
|
81
|
+
</div>
|
82
|
+
</div>
|
83
|
+
<% end %>
|
84
|
+
</td>
|
85
|
+
<td valign="top" style="padding-left:10px;">
|
86
|
+
<%= yield %>
|
87
|
+
</td>
|
88
|
+
</tr>
|
89
|
+
</table>
|
90
|
+
</div>
|
91
|
+
</div>
|
92
|
+
</div>
|
93
|
+
<%=render :partial =>"/layouts/footer" %>
|
94
|
+
</div>
|
95
|
+
</div>
|
96
|
+
</body>
|
97
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
3
|
+
<head>
|
4
|
+
<title><%=trl("Platform Sample Application", "Application title")%></title>
|
5
|
+
<%= stylesheet_link_tag "application" %>
|
6
|
+
<%= javascript_include_tag "application" %>
|
7
|
+
<%= csrf_meta_tag %>
|
8
|
+
<%= tr8n_scripts_tag %>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<div class="document">
|
12
|
+
<%=render :partial => "/layouts/header" %>
|
13
|
+
<div class="page_fixed">
|
14
|
+
<div class="page_body">
|
15
|
+
<div class="content_module">
|
16
|
+
<div class="content_inner" style="padding:20px;">
|
17
|
+
<%= yield %>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
</div>
|
21
|
+
<%=render :partial =>"/layouts/footer" %>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
@@ -0,0 +1,37 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
3
|
+
<head>
|
4
|
+
<title><%=trl("Platform Sample Application", "Application title")%></title>
|
5
|
+
<%= stylesheet_link_tag "application" %>
|
6
|
+
<%= javascript_include_tag "application" %>
|
7
|
+
<%= csrf_meta_tag %>
|
8
|
+
<%= tr8n_scripts_tag %>
|
9
|
+
<style>
|
10
|
+
.page_fixed {
|
11
|
+
width:100%;
|
12
|
+
}
|
13
|
+
</style>
|
14
|
+
</head>
|
15
|
+
<body>
|
16
|
+
<div class="document">
|
17
|
+
<div class="page_head">
|
18
|
+
<div class="page_fixed">
|
19
|
+
<div class="mrgn_h">
|
20
|
+
<h1 class="logo">
|
21
|
+
<%=tr("Sample Application")%>
|
22
|
+
</h1>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
|
27
|
+
<div class="page_fixed">
|
28
|
+
<%= tr8n_flashes_tag %>
|
29
|
+
</div>
|
30
|
+
<div class="page_fixed">
|
31
|
+
<div class="page_body" style="margin-top:30px;">
|
32
|
+
<%= yield %>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
</div>
|
36
|
+
</body>
|
37
|
+
</html>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
3
|
+
<head>
|
4
|
+
<title><%=trl("Platform Sample Application", "Application title")%></title>
|
5
|
+
<%= stylesheet_link_tag "application" %>
|
6
|
+
<%= javascript_include_tag "application" %>
|
7
|
+
<%= csrf_meta_tag %>
|
8
|
+
<%= tr8n_scripts_tag %>
|
9
|
+
<style>
|
10
|
+
.page_fixed {
|
11
|
+
width:100%;
|
12
|
+
}
|
13
|
+
.page_head {
|
14
|
+
margin-bottom:0px;
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<div class="document">
|
20
|
+
<div class="page_head">
|
21
|
+
<div class="page_fixed">
|
22
|
+
<div class="mrgn_h">
|
23
|
+
<div style="float:right; padding-top:12px; font-size:12px; font-weight:bold;">
|
24
|
+
<% if current_user and not current_user.guest? %>
|
25
|
+
<%=platform_logout_url_tag(tr("Not {user}?", "", :user => current_user))%>
|
26
|
+
<% end %>
|
27
|
+
</div>
|
28
|
+
<h1 class="logo">
|
29
|
+
<%=tr("Sample Application")%>
|
30
|
+
</h1>
|
31
|
+
</div>
|
32
|
+
</div>
|
33
|
+
</div>
|
34
|
+
<div style="background:url('/assets/platform/oauth/perm_tile.gif'); height:15px;"> </div>
|
35
|
+
|
36
|
+
<div class="page_fixed">
|
37
|
+
<div class="page_body">
|
38
|
+
<%= yield %>
|
39
|
+
</div>
|
40
|
+
</div>
|
41
|
+
</div>
|
42
|
+
</body>
|
43
|
+
</html>
|