gfdnavi 1.3.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/ChangeLog +10949 -0
- data/LICENCE.txt +57 -0
- data/Makefile +18 -0
- data/TODO +132 -0
- data/app/controllers/analysis_controller.rb +700 -0
- data/app/controllers/application.rb +41 -0
- data/app/controllers/draw_method_controller.rb +172 -0
- data/app/controllers/explorer_controller.rb +197 -0
- data/app/controllers/finder_controller.rb +331 -0
- data/app/controllers/function_controller.rb +204 -0
- data/app/controllers/group_controller.rb +115 -0
- data/app/controllers/keyword_attributes_controller.rb +52 -0
- data/app/controllers/knowledge_controller.rb +928 -0
- data/app/controllers/nodes_controller.rb +515 -0
- data/app/controllers/search_controller.rb +341 -0
- data/app/controllers/user_controller.rb +337 -0
- data/app/helpers/analysis_helper.rb +2 -0
- data/app/helpers/application_helper.rb +105 -0
- data/app/helpers/description_helper.rb +2 -0
- data/app/helpers/function_helper.rb +2 -0
- data/app/helpers/group_helper.rb +2 -0
- data/app/helpers/search_helper.rb +3 -0
- data/app/helpers/user_helper.rb +2 -0
- data/app/helpers/work_flow_helper.rb +92 -0
- data/app/models/actual_file.rb +3 -0
- data/app/models/analysis.rb +715 -0
- data/app/models/analysis_history.rb +42 -0
- data/app/models/cross_array.rb +22 -0
- data/app/models/cross_result.rb +254 -0
- data/app/models/derived_spatial_attribute.rb +3 -0
- data/app/models/diagram_cache.rb +16 -0
- data/app/models/diagram_cache_datum.rb +4 -0
- data/app/models/diagram_cache_session.rb +8 -0
- data/app/models/directory.rb +21 -0
- data/app/models/draw_method.rb +48 -0
- data/app/models/draw_method_attribute.rb +8 -0
- data/app/models/draw_parameter.rb +12 -0
- data/app/models/explorer_query.rb +354 -0
- data/app/models/explorer_result.rb +312 -0
- data/app/models/function.rb +75 -0
- data/app/models/function_argument.rb +6 -0
- data/app/models/function_output.rb +4 -0
- data/app/models/group.rb +153 -0
- data/app/models/image.rb +20 -0
- data/app/models/keyword_attribute.rb +179 -0
- data/app/models/knowledge.rb +94 -0
- data/app/models/knowledge_backup.rb +32 -0
- data/app/models/knowledge_figure.rb +16 -0
- data/app/models/knowledge_figure_backup.rb +16 -0
- data/app/models/knowledge_parser.rb +392 -0
- data/app/models/node.rb +605 -0
- data/app/models/node_entity_abstract.rb +112 -0
- data/app/models/node_lineage.rb +6 -0
- data/app/models/node_relation.rb +4 -0
- data/app/models/path_node.rb +60 -0
- data/app/models/query.rb +193 -0
- data/app/models/query_history.rb +12 -0
- data/app/models/results.rb +48 -0
- data/app/models/sign_up_user.rb +25 -0
- data/app/models/spatial_and_time_attribute.rb +11 -0
- data/app/models/user.rb +115 -0
- data/app/models/user_mailer.rb +48 -0
- data/app/models/value_type.rb +3 -0
- data/app/models/variable.rb +70 -0
- data/app/models/virtual_node.rb +457 -0
- data/app/views/analysis/__help_analysis_tab.en.html +57 -0
- data/app/views/analysis/__help_draw_share.en.html +12 -0
- data/app/views/analysis/__help_draw_tab.en.html +6 -0
- data/app/views/analysis/_analysis_function_settings.rhtml +61 -0
- data/app/views/analysis/_analysis_settings.rhtml +28 -0
- data/app/views/analysis/_diagram.rhtml +70 -0
- data/app/views/analysis/_dimension_option.rhtml +59 -0
- data/app/views/analysis/_draw_general_settings.rhtml +217 -0
- data/app/views/analysis/_draw_settings.rhtml +73 -0
- data/app/views/analysis/_history.rhtml +19 -0
- data/app/views/analysis/_popular_diagrams.rhtml +42 -0
- data/app/views/analysis/_save_form.rhtml +44 -0
- data/app/views/analysis/_variables.rhtml +66 -0
- data/app/views/analysis/_variables_order.rhtml +56 -0
- data/app/views/analysis/index.rhtml +195 -0
- data/app/views/analysis/preview.rhtml +3 -0
- data/app/views/analysis/save.rhtml +73 -0
- data/app/views/analysis/show_diagram.rhtml +42 -0
- data/app/views/cross/_display_map.rhtml +201 -0
- data/app/views/cross/_result.rhtml +205 -0
- data/app/views/cross/_show_result_tree.rhtml +40 -0
- data/app/views/cross/_show_results.rhtml +80 -0
- data/app/views/cross/_style.rhtml +21 -0
- data/app/views/cross/index.rhtml +271 -0
- data/app/views/draw_method/_edit_form.rhtml +110 -0
- data/app/views/draw_method/create.rhtml +8 -0
- data/app/views/draw_method/details.rhtml +113 -0
- data/app/views/draw_method/edit.rhtml +8 -0
- data/app/views/draw_method/list.rhtml +80 -0
- data/app/views/explorer/_display_map.rhtml +199 -0
- data/app/views/explorer/_show_result_tree.rhtml +40 -0
- data/app/views/explorer/_show_results.rhtml +101 -0
- data/app/views/explorer/_style.rhtml +21 -0
- data/app/views/explorer/index.rhtml +214 -0
- data/app/views/finder/_children.html.erb +84 -0
- data/app/views/finder/_children_details.html.erb +74 -0
- data/app/views/finder/_children_details_tr.html.erb +196 -0
- data/app/views/finder/create_tree.html.erb +15 -0
- data/app/views/finder/flex.html.erb +52 -0
- data/app/views/finder/index.html.erb +47 -0
- data/app/views/finder/show_details.html.erb +3 -0
- data/app/views/finder/show_images.html.erb +3 -0
- data/app/views/function/_edit_form.rhtml +106 -0
- data/app/views/function/create.rhtml +8 -0
- data/app/views/function/details.rhtml +96 -0
- data/app/views/function/edit.rhtml +8 -0
- data/app/views/function/list.rhtml +80 -0
- data/app/views/group/add_member.rhtml +13 -0
- data/app/views/group/change_owner.rhtml +15 -0
- data/app/views/group/create.rhtml +11 -0
- data/app/views/group/delete_member.rhtml +14 -0
- data/app/views/group/list.rhtml +63 -0
- data/app/views/knowledge/_backup.rhtml +135 -0
- data/app/views/knowledge/_category.rhtml +58 -0
- data/app/views/knowledge/_category_list.rhtml +34 -0
- data/app/views/knowledge/_category_table.rhtml +23 -0
- data/app/views/knowledge/_comment.rhtml +64 -0
- data/app/views/knowledge/_comment_input_form.rhtml +19 -0
- data/app/views/knowledge/_comments.rhtml +84 -0
- data/app/views/knowledge/_form.rhtml +139 -0
- data/app/views/knowledge/_group_figure_form.rhtml +187 -0
- data/app/views/knowledge/_layout_figure.rhtml +61 -0
- data/app/views/knowledge/_layout_figures_in_a_row_above_text.rhtml +42 -0
- data/app/views/knowledge/_layout_figures_under_text.rhtml +45 -0
- data/app/views/knowledge/_layout_one_figure_above_text.rhtml +28 -0
- data/app/views/knowledge/_summary.rhtml +21 -0
- data/app/views/knowledge/edit.rhtml +37 -0
- data/app/views/knowledge/list.rhtml +287 -0
- data/app/views/knowledge/new.rhtml +23 -0
- data/app/views/knowledge/new_from_analysis.rhtml +21 -0
- data/app/views/knowledge/show.rhtml +196 -0
- data/app/views/layouts/gfdnavi.rhtml +105 -0
- data/app/views/nodes/_ancestors.html.erb +89 -0
- data/app/views/nodes/_description_methods_table.html.erb +75 -0
- data/app/views/nodes/_mode.html.erb +16 -0
- data/app/views/nodes/description.html.erb +181 -0
- data/app/views/nodes/description_methods.html.erb +1 -0
- data/app/views/nodes/edit.html.erb +73 -0
- data/app/views/nodes/index.html.erb +25 -0
- data/app/views/nodes/show.html.erb +20 -0
- data/app/views/search/_children_details_mapsearch.rhtml +68 -0
- data/app/views/search/_children_details_tr.rhtml +205 -0
- data/app/views/search/_show_grouplist.rhtml +74 -0
- data/app/views/search/_show_results.rhtml +43 -0
- data/app/views/search/_show_results_global.rhtml +36 -0
- data/app/views/search/_show_results_partial.rhtml +39 -0
- data/app/views/search/_show_results_partial_groupbyfile.rhtml +50 -0
- data/app/views/search/_show_variablelist.rhtml +28 -0
- data/app/views/search/mapsearch.rhtml +176 -0
- data/app/views/search/remapsearch.rjs +18 -0
- data/app/views/search/show_details.rhtml +3 -0
- data/app/views/user/add_user.rhtml +30 -0
- data/app/views/user/change_password.rhtml +25 -0
- data/app/views/user/edit.html.erb +50 -0
- data/app/views/user/index.rhtml +162 -0
- data/app/views/user/login.rhtml +41 -0
- data/app/views/user/logout.rhtml +4 -0
- data/app/views/user/signup.rhtml +36 -0
- data/app/views/user/signup_succeeded.rhtml +36 -0
- data/app/views/user_mailer/authorization_inform.rhtml +15 -0
- data/app/views/user_mailer/signup_accepted.rhtml +12 -0
- data/app/views/user_mailer/signup_confirm.rhtml +14 -0
- data/app/views/user_mailer/signup_inform.rhtml +13 -0
- data/app/views/user_mailer/signup_rejected.rhtml +11 -0
- data/app/views/work_flow/_push_wsdls.rhtml +55 -0
- data/app/views/work_flow/index.rhtml +46 -0
- data/config/database.yml.example +35 -0
- data/config/environment.rb +68 -0
- data/config/gfdnavi.yml.example +95 -0
- data/config/load_config.rb +151 -0
- data/config/routes.rb +35 -0
- data/consistency_checker.rb +129 -0
- data/data/gfdnavi_docs/how_to_draw_multiple_images.knlge +68 -0
- data/data/gfdnavi_docs/how_to_knowledge.knlge +138 -0
- data/data/gfdnavi_docs/how_to_write_document_about_Gfdnavi.knlge +30 -0
- data/data/samples/jmadata.SIGEN +8 -0
- data/data/samples/jmadata.yml +6 -0
- data/data/samples/jmadata/MSM-P/2006.nc.yml +2 -0
- data/data/samples/jmadata/MSM-P/2006.yml +17 -0
- data/data/samples/jmadata/MSM-P/2006/0101.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/0101.nc.yml +13 -0
- data/data/samples/jmadata/MSM-P/2006/0102.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/0103.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/0104.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/0105.nc +0 -0
- data/data/samples/jmadata/MSM-P/2006/010[1-3].nc.yml +2 -0
- data/data/samples/jmadata/MSM-P/2006/skip_data.rb +96 -0
- data/data/samples/jmadata/MSM-P/2006/skip_data.sh +6 -0
- data/data/samples/reanalysis.SIGEN +8 -0
- data/data/samples/reanalysis/era40.SIGEN +8 -0
- data/data/samples/reanalysis/era40.yml +2 -0
- data/data/samples/reanalysis/era40/t.jan.nc +0 -0
- data/data/samples/reanalysis/era40/t.jan.nc.yml +1 -0
- data/data/samples/reanalysis/ncep.SIGEN +9 -0
- data/data/samples/reanalysis/ncep/T.jan.100hPa.png +0 -0
- data/data/samples/reanalysis/ncep/T.jan.100hPa.png.yml +43 -0
- data/data/samples/reanalysis/ncep/T.jan.nc +0 -0
- data/data/samples/reanalysis/ncep/T.jan.zonal_mean.nc +0 -0
- data/data/samples/reanalysis/ncep/T.jan.zonal_mean.nc.yml +8 -0
- data/data/samples/reanalysis/ncep/T.jan_only_root.nc +0 -0
- data/data/samples/reanalysis/ncep/T.jan_only_root.nc.yml +4 -0
- data/data/samples/reanalysis/ncep/UV.jan.nc +0 -0
- data/data/samples/reanalysis/ncep/UV.jan.nc.yml +10 -0
- data/data/samples/reanalysis/ncep/UV.jan.nc.yml.ja +11 -0
- data/data/samples/sonde_operational.yml +5 -0
- data/data/samples/sonde_operational/std_plev.yml +12 -0
- data/data/samples/sonde_operational/std_plev/41256.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/42410.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/43333.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/43346.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/48698.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/61641.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/63741.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/67083.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/72261.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/76805.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/82193.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/91165.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/91610.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/91948.spl.nc +0 -0
- data/data/samples/sonde_operational/std_plev/94294.spl.nc +0 -0
- data/db/NetCDFparser.rb +406 -0
- data/db/create_derived_spatial_attributes.sql +12 -0
- data/db/draw_methods/line.yml +6 -0
- data/db/draw_methods/scatter.yml +38 -0
- data/db/draw_methods/tone.yml +64 -0
- data/db/draw_methods/vector.yml +19 -0
- data/db/dump_db.rb +43 -0
- data/db/functions/additions.yml +10 -0
- data/db/functions/cut.yml +10 -0
- data/db/functions/division.yml +10 -0
- data/db/functions/mean.yml +28 -0
- data/db/functions/multiplication.yml +10 -0
- data/db/functions/stddev.yml +28 -0
- data/db/functions/subtraction.yml +10 -0
- data/db/migrate/001_initial_scheme.rb +289 -0
- data/db/migrate/002_add_open_id_authentication_tables.rb +20 -0
- data/db/register_directory_tree.rb +760 -0
- data/db/restore_db.rb +60 -0
- data/gfdnavi-install +828 -0
- data/install.rb +828 -0
- data/lib/activerecord_gfdnavi.rb +31 -0
- data/lib/basic_authorization.rb +50 -0
- data/lib/create_activeresources.rb +108 -0
- data/lib/execute_analysis.rb +472 -0
- data/lib/file_gfdnavi.rb +38 -0
- data/lib/gphys_gfdnavi.rb +81 -0
- data/lib/localdir.rb +110 -0
- data/lib/login_system.rb +110 -0
- data/lib/multibytes.rb +20 -0
- data/lib/narray_yaml.rb +58 -0
- data/lib/no_rdb_base.rb +40 -0
- data/lib/opendapdir.rb +171 -0
- data/lib/tar.rb +127 -0
- data/lib/tasks/clean.rake +65 -0
- data/lib/tasks/setup.rake +316 -0
- data/lib/tasks/update.rake +62 -0
- data/lib/vizshot_gfdnavi.rb +224 -0
- data/public/crossdomain.xml +4 -0
- data/public/flex/NodeTreeDescriptor.as +55 -0
- data/public/flex/TreeNode.as +253 -0
- data/public/flex/finder.mxml +304 -0
- data/public/flex/finder.swf +0 -0
- data/public/flex/gfdnavi.mxml +52 -0
- data/public/flex/gfdnavi.swf +0 -0
- data/public/images/Help_S-shots/dir_tree_with_add.jpg +0 -0
- data/public/images/analyze.gif +0 -0
- data/public/images/circle.gif +0 -0
- data/public/images/create_from_analysis_button.png +0 -0
- data/public/images/delete.png +0 -0
- data/public/images/down.png +0 -0
- data/public/images/drawbutton.gif +0 -0
- data/public/images/gfdnavi_home_logo.png +0 -0
- data/public/images/gfdnavi_logo_big.png +0 -0
- data/public/images/gfdnavi_logo_med.png +0 -0
- data/public/images/gfdnavi_logo_mini.png +0 -0
- data/public/images/gfdnavi_logo_nobg_big.png +0 -0
- data/public/images/gfdnavi_logo_nobg_med.png +0 -0
- data/public/images/gfdnavi_logo_nobg_small.png +0 -0
- data/public/images/gfdnavi_logo_small.png +0 -0
- data/public/images/gfdnavi_logo_xsmall.png +0 -0
- data/public/images/hbar.png +0 -0
- data/public/images/helpmark16.png +0 -0
- data/public/images/helpmark18.png +0 -0
- data/public/images/kikyu_g.gif +0 -0
- data/public/images/kikyu_r.gif +0 -0
- data/public/images/map_icon_g.gif +0 -0
- data/public/images/map_icon_r.gif +0 -0
- data/public/images/new_knowledge.png +0 -0
- data/public/images/openid.png +0 -0
- data/public/images/read_in_the_form.png +0 -0
- data/public/images/slider_f.gif +0 -0
- data/public/images/slider_f_red.gif +0 -0
- data/public/images/star1.gif +0 -0
- data/public/images/star2.gif +0 -0
- data/public/images/startanim.gif +0 -0
- data/public/images/stopanim.gif +0 -0
- data/public/images/tree/DL.png +0 -0
- data/public/images/tree/anal_viz.png +0 -0
- data/public/images/tree/analyze_visualize_checked_items.png +0 -0
- data/public/images/tree/binary.png +0 -0
- data/public/images/tree/details.png +0 -0
- data/public/images/tree/download_checked_items.png +0 -0
- data/public/images/tree/folder.png +0 -0
- data/public/images/tree/folder_close.gif +0 -0
- data/public/images/tree/image2.png +0 -0
- data/public/images/tree/knowledge.png +0 -0
- data/public/images/tree/knowledges.png +0 -0
- data/public/images/tree/last.gif +0 -0
- data/public/images/tree/last.png +0 -0
- data/public/images/tree/minus.gif +0 -0
- data/public/images/tree/minus_simple.gif +0 -0
- data/public/images/tree/none.gif +0 -0
- data/public/images/tree/none.png +0 -0
- data/public/images/tree/plus.gif +0 -0
- data/public/images/tree/plus_simple.gif +0 -0
- data/public/images/tree/show.png +0 -0
- data/public/images/tree/show_checked_items.png +0 -0
- data/public/images/tree/t.gif +0 -0
- data/public/images/tree/t.png +0 -0
- data/public/images/tree/tate.gif +0 -0
- data/public/images/tree/tate.png +0 -0
- data/public/images/up.png +0 -0
- data/public/images/vbar.png +0 -0
- data/public/images/white.bmp +0 -0
- data/public/images/x.gif +0 -0
- data/public/index.html +100 -0
- data/public/javascripts/AC_OETags.js +269 -0
- data/public/javascripts/analysis.js +751 -0
- data/public/javascripts/application.js +29 -0
- data/public/javascripts/directory_tree.js +102 -0
- data/public/javascripts/draw_method.js +83 -0
- data/public/javascripts/excanvas.js +704 -0
- data/public/javascripts/function.js +107 -0
- data/public/javascripts/gfdnavi.js +175 -0
- data/public/javascripts/knowledge.js +384 -0
- data/public/javascripts/mapsearch.js +313 -0
- data/public/javascripts/progress.js +42 -0
- data/public/javascripts/resizable_box.js +164 -0
- data/public/javascripts/slider.js +260 -0
- data/public/javascripts/tab.js +17 -0
- data/public/javascripts/work_flow.js +452 -0
- data/public/stylesheets/analysis.css +111 -0
- data/public/stylesheets/description.css +71 -0
- data/public/stylesheets/gfdnavi.css +141 -0
- data/public/stylesheets/knowledge.css +218 -0
- data/public/stylesheets/search.css +184 -0
- data/public/stylesheets/tree.css +45 -0
- data/public/stylesheets/tree_for_ie.css +3 -0
- data/public/stylesheets/work_flow.css +78 -0
- data/script/cleaner +11 -0
- data/script/server_ssl +131 -0
- data/test/fixtures/diagram_cache_data.yml +5 -0
- data/test/fixtures/diagram_cache_sessions.yml +6 -0
- data/test/fixtures/diagram_caches.yml +6 -0
- data/test/fixtures/directories.yml +57 -0
- data/test/fixtures/draw_parameters.yml +6 -0
- data/test/fixtures/function_arguments.yml +15 -0
- data/test/fixtures/function_outputs.yml +15 -0
- data/test/fixtures/functions.yml +29 -0
- data/test/fixtures/group_members.yml +33 -0
- data/test/fixtures/groups.yml +25 -0
- data/test/fixtures/images.yml +12 -0
- data/test/fixtures/keyword_attributes.yml +73 -0
- data/test/fixtures/knowledges.yml +10 -0
- data/test/fixtures/node_relations.yml +11 -0
- data/test/fixtures/nodes.yml +298 -0
- data/test/fixtures/sign_up_users.yml +8 -0
- data/test/fixtures/spatial_and_time_attributes.yml +29 -0
- data/test/fixtures/user_mailer/authorization_inform +11 -0
- data/test/fixtures/user_mailer/signup_accepted +10 -0
- data/test/fixtures/user_mailer/signup_confirm +17 -0
- data/test/fixtures/user_mailer/signup_inform +10 -0
- data/test/fixtures/user_mailer/signup_rejected +9 -0
- data/test/fixtures/users.yml +31 -0
- data/test/fixtures/value_types.yml +10 -0
- data/test/fixtures/variables.yml +17 -0
- data/test/functional/analysis_controller_test.rb +169 -0
- data/test/functional/description_controller_test.rb +18 -0
- data/test/functional/function_controller_test.rb +18 -0
- data/test/functional/group_controller_test.rb +18 -0
- data/test/functional/search_controller_test.rb +83 -0
- data/test/functional/user_controller_test.rb +77 -0
- data/test/functional/webservice_analysis_api_test.rb +12 -0
- data/test/functional/work_flow_controller_test.rb +18 -0
- data/test/test_helper.rb +28 -0
- data/test/unit/diagram_cache_datum_test.rb +10 -0
- data/test/unit/diagram_cache_session_test.rb +10 -0
- data/test/unit/diagram_cache_test.rb +10 -0
- data/test/unit/directory_test.rb +49 -0
- data/test/unit/draw_parameter_test.rb +10 -0
- data/test/unit/function_argument_test.rb +10 -0
- data/test/unit/function_output_test.rb +10 -0
- data/test/unit/function_test.rb +10 -0
- data/test/unit/group_test.rb +48 -0
- data/test/unit/image_test.rb +13 -0
- data/test/unit/keyword_attribute_test.rb +33 -0
- data/test/unit/knowledge_test.rb +13 -0
- data/test/unit/node_relation_test.rb +20 -0
- data/test/unit/node_test.rb +85 -0
- data/test/unit/sign_up_user_test.rb +20 -0
- data/test/unit/spatial_and_time_attribute_test.rb +29 -0
- data/test/unit/user_mailer_test.rb +101 -0
- data/test/unit/user_test.rb +134 -0
- data/test/unit/value_type_test.rb +10 -0
- data/test/unit/variable_test.rb +35 -0
- data/vendor/plugins/acts_as_list/README +23 -0
- data/vendor/plugins/acts_as_list/init.rb +3 -0
- data/vendor/plugins/acts_as_list/lib/active_record/acts/list.rb +256 -0
- data/vendor/plugins/acts_as_list/test/list_test.rb +332 -0
- data/vendor/plugins/acts_as_tree/README +26 -0
- data/vendor/plugins/acts_as_tree/Rakefile +22 -0
- data/vendor/plugins/acts_as_tree/init.rb +1 -0
- data/vendor/plugins/acts_as_tree/lib/active_record/acts/tree.rb +96 -0
- data/vendor/plugins/acts_as_tree/test/abstract_unit.rb +0 -0
- data/vendor/plugins/acts_as_tree/test/acts_as_tree_test.rb +219 -0
- data/vendor/plugins/acts_as_tree/test/database.yml +0 -0
- data/vendor/plugins/acts_as_tree/test/fixtures/mixin.rb +0 -0
- data/vendor/plugins/acts_as_tree/test/fixtures/mixins.yml +0 -0
- data/vendor/plugins/acts_as_tree/test/schema.rb +0 -0
- data/vendor/plugins/will_paginate/CHANGELOG +92 -0
- data/vendor/plugins/will_paginate/LICENSE +18 -0
- data/vendor/plugins/will_paginate/README.rdoc +131 -0
- data/vendor/plugins/will_paginate/Rakefile +62 -0
- data/vendor/plugins/will_paginate/examples/apple-circle.gif +0 -0
- data/vendor/plugins/will_paginate/examples/index.haml +69 -0
- data/vendor/plugins/will_paginate/examples/index.html +92 -0
- data/vendor/plugins/will_paginate/examples/pagination.css +90 -0
- data/vendor/plugins/will_paginate/examples/pagination.sass +91 -0
- data/vendor/plugins/will_paginate/init.rb +1 -0
- data/vendor/plugins/will_paginate/lib/will_paginate.rb +86 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/array.rb +16 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/collection.rb +145 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/core_ext.rb +32 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/finder.rb +247 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/named_scope.rb +132 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/named_scope_patch.rb +39 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/version.rb +9 -0
- data/vendor/plugins/will_paginate/lib/will_paginate/view_helpers.rb +373 -0
- data/vendor/plugins/will_paginate/will_paginate.gemspec +21 -0
- metadata +586 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
page << "EOF"
|
|
2
|
+
var restext = "";
|
|
3
|
+
var c = map.getPane(G_MAP_MAP_PANE).firstChild;
|
|
4
|
+
while(c!=null){
|
|
5
|
+
var nxt = c.nextSibling;
|
|
6
|
+
restext += c.id+","
|
|
7
|
+
if( c.id.match(/group/i) || c.id=="window"){
|
|
8
|
+
map.getPane(G_MAP_MAP_PANE).removeChild(c);
|
|
9
|
+
}
|
|
10
|
+
c = nxt;
|
|
11
|
+
}
|
|
12
|
+
EOF
|
|
13
|
+
|
|
14
|
+
page.update_html "grouplist", render(:partial=>"show_grouplist")
|
|
15
|
+
|
|
16
|
+
@objs.each{|obj|
|
|
17
|
+
page << "drawGroup(#{obj[:gid]}, #{obj[:radius]}, new GLatLng(#{obj[:posx]},#{obj[:posy]}), #{obj[:size]}, #{obj[:num]}, #{obj[:mode]});"
|
|
18
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
<% form_tag do %>
|
|
2
|
+
|
|
3
|
+
<h3>Add user</h3>
|
|
4
|
+
<%= error_messages_for 'user' %><br/>
|
|
5
|
+
|
|
6
|
+
<label for="user_login">Login name:</label><br/>
|
|
7
|
+
<%= text_field "user", "login", :size => 10 %><br/>
|
|
8
|
+
|
|
9
|
+
<label for="user_full_name">Full name:</label><br/>
|
|
10
|
+
<%= text_field "user", "full_name", :size => 30 %><br/>
|
|
11
|
+
|
|
12
|
+
<label for="user_email_address">Email address:</label><br/>
|
|
13
|
+
<%= text_field "user", "email_address", :size => 30 %><br/>
|
|
14
|
+
|
|
15
|
+
<label for="user_affiliation">Affiliation:</label><br/>
|
|
16
|
+
<%= text_field "user", "affiliation", :size => 50 %><br/>
|
|
17
|
+
|
|
18
|
+
<label for="user_password">Password:</label><br/>
|
|
19
|
+
<%= password_field "user", "password", :size => 30 %><br/>
|
|
20
|
+
|
|
21
|
+
<label for="user_password_confirmation">Confirm password:</label><br/>
|
|
22
|
+
<%= password_field "user", "password_confirmation", :size => 30 %><br/>
|
|
23
|
+
|
|
24
|
+
<%= submit_tag "Add user" %>
|
|
25
|
+
|
|
26
|
+
<% end %>
|
|
27
|
+
|
|
28
|
+
<script>
|
|
29
|
+
$('user_login').focus();
|
|
30
|
+
</script>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<% form_tag do %>
|
|
2
|
+
|
|
3
|
+
<h3>Change password of <%= h(@user.login) %></h3>
|
|
4
|
+
<%= error_messages_for 'user' %><br/>
|
|
5
|
+
|
|
6
|
+
<% unless @super %>
|
|
7
|
+
<label for="current_password">current password:</label><br/>
|
|
8
|
+
<%= password_field_tag "current_password", nil, :size => 30 %><br/>
|
|
9
|
+
<% end %>
|
|
10
|
+
<label for="new_password">New password:</label><br/>
|
|
11
|
+
<%= password_field_tag "new_password", nil, :size => 30 %><br/>
|
|
12
|
+
<label for="new_password_confirmation">Confirm new password:</label><br/>
|
|
13
|
+
<%= password_field_tag "new_password_confirmation", nil, :size => 30 %><br/>
|
|
14
|
+
|
|
15
|
+
<%= submit_tag "Change" %>
|
|
16
|
+
|
|
17
|
+
<% end %>
|
|
18
|
+
|
|
19
|
+
<script>
|
|
20
|
+
<% if @super %>
|
|
21
|
+
$('new_password').focus();
|
|
22
|
+
<% else %>
|
|
23
|
+
$('current_password').focus();
|
|
24
|
+
<% end %>
|
|
25
|
+
</script>
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
<% form_for :user, @user, :url => {:action => "edit" } do |f| %>
|
|
2
|
+
|
|
3
|
+
<table>
|
|
4
|
+
<% unless @super %>
|
|
5
|
+
<tr>
|
|
6
|
+
<th>
|
|
7
|
+
<label for="password">Password (to confirm)</label>
|
|
8
|
+
</th>
|
|
9
|
+
<td>
|
|
10
|
+
<input id="password" name="password" type="password" />
|
|
11
|
+
</td>
|
|
12
|
+
</tr>
|
|
13
|
+
<% end %>
|
|
14
|
+
|
|
15
|
+
<tr>
|
|
16
|
+
<th>
|
|
17
|
+
<%= f.label :full_name, "Full name" %>:
|
|
18
|
+
</th>
|
|
19
|
+
<td>
|
|
20
|
+
<%= f.text_field :full_name %><br/>
|
|
21
|
+
</td>
|
|
22
|
+
</tr>
|
|
23
|
+
|
|
24
|
+
<tr>
|
|
25
|
+
<th>
|
|
26
|
+
<%= f.label :email_address, "Email address" %>:
|
|
27
|
+
</th>
|
|
28
|
+
<td>
|
|
29
|
+
<%= f.text_field :email_address %><br/>
|
|
30
|
+
</td>
|
|
31
|
+
</tr>
|
|
32
|
+
|
|
33
|
+
<tr>
|
|
34
|
+
<th>
|
|
35
|
+
<%= f.label :affiliation, "Affiliation" %>:
|
|
36
|
+
</th>
|
|
37
|
+
<td>
|
|
38
|
+
<%= f.text_field :affiliation %><br/>
|
|
39
|
+
</td>
|
|
40
|
+
</tr>
|
|
41
|
+
|
|
42
|
+
</table>
|
|
43
|
+
|
|
44
|
+
<input type="hidden" name="name" value="<%= @user.login %>" />
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
<%= submit_tag 'Update' %>
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
<% end %>
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
<h2>User Information</h2>
|
|
2
|
+
<div class="user_info">
|
|
3
|
+
<table>
|
|
4
|
+
<tr>
|
|
5
|
+
<th>Item</th>
|
|
6
|
+
<th>Data</th>
|
|
7
|
+
</tr>
|
|
8
|
+
<tr>
|
|
9
|
+
<td class="user_info_field">Login Name</td>
|
|
10
|
+
<td><%= @user.login %></td><br>
|
|
11
|
+
</tr>
|
|
12
|
+
<tr>
|
|
13
|
+
<td class="user_info_field">Full Name</td>
|
|
14
|
+
<td><%= @user.full_name %></td><br>
|
|
15
|
+
</tr>
|
|
16
|
+
<tr>
|
|
17
|
+
<td class="user_info_field">E-mail Address</td>
|
|
18
|
+
<td><%= @user.email_address %></td>
|
|
19
|
+
</tr>
|
|
20
|
+
<tr>
|
|
21
|
+
<td class="user_info_field">Affiliation</td>
|
|
22
|
+
<td><%= @user.affiliation %></td>
|
|
23
|
+
</tr>
|
|
24
|
+
<tr>
|
|
25
|
+
<td class="user_info_field">Belonging Groups</td>
|
|
26
|
+
<td>
|
|
27
|
+
<% @user.belonging_groups.each do |group| %>
|
|
28
|
+
<%= h group.name %>
|
|
29
|
+
<% end %>
|
|
30
|
+
</td>
|
|
31
|
+
</tr>
|
|
32
|
+
<tr>
|
|
33
|
+
<td class="user_info_field">User Type</td>
|
|
34
|
+
<td>
|
|
35
|
+
<% if @user.super_user %>
|
|
36
|
+
Super User
|
|
37
|
+
<% end %>
|
|
38
|
+
</td>
|
|
39
|
+
</tr>
|
|
40
|
+
</table>
|
|
41
|
+
</div>
|
|
42
|
+
|
|
43
|
+
<% if @user.internal_user? %>
|
|
44
|
+
<h2>Menu</h2>
|
|
45
|
+
<div class="user_info">
|
|
46
|
+
<table>
|
|
47
|
+
<tr><td><%= link_to("change password", :action => "change_password") %></td></tr>
|
|
48
|
+
<tr><td><%= link_to("edit user information", :action => "edit") %></td><br></tr>
|
|
49
|
+
<tr><td><%= link_to("manage groups", :controller => "group", :action => "list") %></td></tr>
|
|
50
|
+
<tr><td><%= link_to("manage functions", :controller => "function", :action => "list") %></td></tr>
|
|
51
|
+
<tr><td><%= link_to("manage draw methods", :controller => "draw_method", :action => "list") %></td></tr>
|
|
52
|
+
<% if @user.super_user? %>
|
|
53
|
+
<tr><td><%= link_to("add user", :controller => "user", :action => "add_user") %></td></tr>
|
|
54
|
+
<% end %>
|
|
55
|
+
</table>
|
|
56
|
+
</div>
|
|
57
|
+
<% end %>
|
|
58
|
+
|
|
59
|
+
<% if @user.super_user? %>
|
|
60
|
+
<br>
|
|
61
|
+
<hr>
|
|
62
|
+
<h2>Super user list</h2>
|
|
63
|
+
<div class="user_info">
|
|
64
|
+
<table>
|
|
65
|
+
<thead>
|
|
66
|
+
<tr>
|
|
67
|
+
<th>login name</th>
|
|
68
|
+
<th>full name</th>
|
|
69
|
+
<th>email address</th>
|
|
70
|
+
<th>affiliation</th>
|
|
71
|
+
<th></th>
|
|
72
|
+
</tr>
|
|
73
|
+
</thead>
|
|
74
|
+
<tbody>
|
|
75
|
+
<%
|
|
76
|
+
for user in User.find(:all, :conditions => ["super_user = ?", true])
|
|
77
|
+
name = h(user.login)
|
|
78
|
+
%>
|
|
79
|
+
<tr>
|
|
80
|
+
<td><%= name %></td>
|
|
81
|
+
<td><%= h(user.full_name) %></td>
|
|
82
|
+
<td><%= h(user.email_address) %></td>
|
|
83
|
+
<td><%= h(user.affiliation) %></td>
|
|
84
|
+
<td>
|
|
85
|
+
<%= link_to("edit", :action=>"edit", :name => name) %>
|
|
86
|
+
<%= link_to("change_password", :action=>"change_password", :name => name) %>
|
|
87
|
+
<% unless name == "root" %>
|
|
88
|
+
<%= link_to("downgrade to non-super user", {:action => "unset_super_user", :name => name}, :confirm => "Are you sure to set #{name} non-super user?") %>
|
|
89
|
+
<% end %>
|
|
90
|
+
</td>
|
|
91
|
+
</tr>
|
|
92
|
+
<% end %>
|
|
93
|
+
</tbody>
|
|
94
|
+
</table>
|
|
95
|
+
</div>
|
|
96
|
+
|
|
97
|
+
<h2>Non-super user list</h2>
|
|
98
|
+
<div class="user_info">
|
|
99
|
+
<table>
|
|
100
|
+
<thead>
|
|
101
|
+
<tr>
|
|
102
|
+
<th>login name</th>
|
|
103
|
+
<th>full name</th>
|
|
104
|
+
<th>email address</th>
|
|
105
|
+
<th>affiliation</th>
|
|
106
|
+
<th></th>
|
|
107
|
+
</tr>
|
|
108
|
+
</thead>
|
|
109
|
+
<tbody>
|
|
110
|
+
<%
|
|
111
|
+
for user in User.find(:all, :conditions => ["super_user = ?", false])
|
|
112
|
+
name = h(user.login)
|
|
113
|
+
%>
|
|
114
|
+
<tr>
|
|
115
|
+
<td><%= name %></td>
|
|
116
|
+
<td><%= h(user.full_name) %></td>
|
|
117
|
+
<td><%= h(user.email_address) %></td>
|
|
118
|
+
<td><%= h(user.affiliation) %></td>
|
|
119
|
+
<td>
|
|
120
|
+
<%= link_to("edit", :action=>"edit", :name => name) %>
|
|
121
|
+
<%= link_to("change password", :action => "change_password", :name => name) %>
|
|
122
|
+
<%= link_to("delete", {:action => "delete", :name => name}, :confirm => "Are you sure to delete #{name}?") %>
|
|
123
|
+
<%= link_to("upgrade to super user", {:action => "set_super_user", :name => name}, :confirm => "Are you sure that #{name} is really trusted as super user?") %>
|
|
124
|
+
</td>
|
|
125
|
+
</tr>
|
|
126
|
+
<% end %>
|
|
127
|
+
</tbody>
|
|
128
|
+
</table>
|
|
129
|
+
</div>
|
|
130
|
+
|
|
131
|
+
<div class="user_info">
|
|
132
|
+
<h2>Unauthorized user list</h2>
|
|
133
|
+
<table style="border-spacing:20px 0px">
|
|
134
|
+
<thead>
|
|
135
|
+
<tr>
|
|
136
|
+
<th>login name</th>
|
|
137
|
+
<th>full name</th>
|
|
138
|
+
<th>email address</th>
|
|
139
|
+
<th></th>
|
|
140
|
+
</tr>
|
|
141
|
+
</thead>
|
|
142
|
+
<tbody>
|
|
143
|
+
<%
|
|
144
|
+
for user in SignUpUser.find(:all)
|
|
145
|
+
id = user.id
|
|
146
|
+
%>
|
|
147
|
+
<tr>
|
|
148
|
+
<td><%= h(user.login) %></td>
|
|
149
|
+
<td><%= h(user.full_name) %></td>
|
|
150
|
+
<td><%= h(user.email_address) %></td>
|
|
151
|
+
<td>
|
|
152
|
+
<%= link_to("accept", {:action => "accept_signup", :id => id}, :confirm => "Are you sure to accept signup of #{h(user.login)}?") %>
|
|
153
|
+
<%= link_to("reject", {:action => "reject_signup", :id => id}, :confirm => "Are you sure to reject signup of #{h(user.login)}?") %>
|
|
154
|
+
</td>
|
|
155
|
+
</tr>
|
|
156
|
+
<% end %>
|
|
157
|
+
</tbody>
|
|
158
|
+
</table>
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
<% end %>
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<% form_tag(:action=> "login") do %>
|
|
2
|
+
|
|
3
|
+
<h3>Please login</h3>
|
|
4
|
+
|
|
5
|
+
<% if @message %>
|
|
6
|
+
<div id="message"><%= @message %></div>
|
|
7
|
+
<% end %>
|
|
8
|
+
|
|
9
|
+
<label for="user_login">Login:</label><br/>
|
|
10
|
+
<%= text_field "user", "login", :size => 30 %><br/>
|
|
11
|
+
|
|
12
|
+
<label for="user_password">Password:</label><br/>
|
|
13
|
+
<%= password_field "user", "password", :size => 30 %><br/>
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
<br/>
|
|
17
|
+
<%= submit_tag "login" %>
|
|
18
|
+
|
|
19
|
+
<%= link_to "signup", :action => "signup" %>
|
|
20
|
+
|
|
21
|
+
<% end %>
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
<!--
|
|
25
|
+
<br>
|
|
26
|
+
<h3>Please login using OpenID</h3>
|
|
27
|
+
<% form_tag(:action=> "openid_login") do %>
|
|
28
|
+
<% if @message %>
|
|
29
|
+
<div id="message"><%= @message %></div>
|
|
30
|
+
<% end %>
|
|
31
|
+
|
|
32
|
+
<%= text_field_tag "openid_url", "", :size => 50, :style => "background: transparent url(/images/openid.png) no-repeat scroll 0pt center; padding-left: 18px;" %><br><br>
|
|
33
|
+
<%= submit_tag "login by OpenID" %>
|
|
34
|
+
<% end %>
|
|
35
|
+
|
|
36
|
+
-->
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
<script>
|
|
40
|
+
$('user_login').focus();
|
|
41
|
+
</script>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<% form_tag do %>
|
|
2
|
+
|
|
3
|
+
<h3>Signup</h3>
|
|
4
|
+
<%= error_messages_for 'sign_up_user' %><br/>
|
|
5
|
+
|
|
6
|
+
<label for="sign_up_user_login">Desired login name:</label><br/>
|
|
7
|
+
<%= text_field "sign_up_user", "login", :size => 10 %><br/>
|
|
8
|
+
|
|
9
|
+
<label for="sign_up_user_full_name">Full name:</label><br/>
|
|
10
|
+
<%= text_field "sign_up_user", "full_name", :size => 30 %><br/>
|
|
11
|
+
|
|
12
|
+
<label for="sign_up_user_email_address">Email address:</label><br/>
|
|
13
|
+
<%= text_field "sign_up_user", "email_address", :size => 30 %><br/>
|
|
14
|
+
|
|
15
|
+
<label for="sign_up_user_affiliation">Affiliation:</label><br/>
|
|
16
|
+
<%= text_field "sign_up_user", "affiliation", :size => 50 %><br/>
|
|
17
|
+
|
|
18
|
+
<label for="sign_up_user_password">Password (more than 5 characters):</label><br/>
|
|
19
|
+
<%= password_field "sign_up_user", "password", :size => 30 %><br/>
|
|
20
|
+
|
|
21
|
+
<label for="sign_up_user_password_confirmation">Confirm password:</label><br/>
|
|
22
|
+
<%= password_field "sign_up_user", "password_confirmation", :size => 30 %><br/>
|
|
23
|
+
|
|
24
|
+
<!--
|
|
25
|
+
<label for="sign_up_user_openid">OpenID URL:</label><br/>
|
|
26
|
+
<%#= text_field "sign_up_user", "openid", :size => 50 %><br/>
|
|
27
|
+
-->
|
|
28
|
+
|
|
29
|
+
<%= submit_tag "Signup" %>
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
<% end %>
|
|
33
|
+
|
|
34
|
+
<script>
|
|
35
|
+
$('sign_up_user_login').focus();
|
|
36
|
+
</script>
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
<p>
|
|
2
|
+
Your signup request was successfully received.
|
|
3
|
+
<br/>
|
|
4
|
+
After authorization by the administrator, you will be able to login.
|
|
5
|
+
<br/>
|
|
6
|
+
The authorization may take some days.
|
|
7
|
+
If you do not have received a email informing that you are authorized or not by the admin in some weeks,
|
|
8
|
+
you request might be lost.
|
|
9
|
+
Then please send email to <%= GFDNAVI_ADMIN_EMAIL %>.
|
|
10
|
+
<br/>
|
|
11
|
+
Thank you for your signup for "gfdnavi".
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<br/>
|
|
15
|
+
|
|
16
|
+
<p>
|
|
17
|
+
Your information:
|
|
18
|
+
<br/>
|
|
19
|
+
<table>
|
|
20
|
+
<tr>
|
|
21
|
+
<td>login name</td>
|
|
22
|
+
<td><%= h(@sign_up_user.login) %></td>
|
|
23
|
+
</tr>
|
|
24
|
+
<tr>
|
|
25
|
+
<td>full name</td>
|
|
26
|
+
<td><%= h(@sign_up_user.full_name) %></td>
|
|
27
|
+
</tr>
|
|
28
|
+
<tr>
|
|
29
|
+
<td>email address</td>
|
|
30
|
+
<td><%= h(@sign_up_user.email_address) %></td>
|
|
31
|
+
</tr>
|
|
32
|
+
<tr>
|
|
33
|
+
<td>affiliation</td>
|
|
34
|
+
<td><%= h(@sign_up_user.affiliation) %></td>
|
|
35
|
+
</tr>
|
|
36
|
+
</table>
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
Dear gfdnavi administrators
|
|
2
|
+
|
|
3
|
+
<%= @suser.login %>(<%= @suser.full_name %>) has made decision on the request of following user to sign up for gfdnavi.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
URL: <%= @url %>
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Result: <%= @result %>
|
|
10
|
+
|
|
11
|
+
User's information:
|
|
12
|
+
login name: <%= @user.login %>
|
|
13
|
+
full name: <%= @user.full_name %>
|
|
14
|
+
email address: <%= @user.email_address %>
|
|
15
|
+
affiliation: <%= @user.affiliation %>
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
Dear <%= @user.full_name %>
|
|
2
|
+
|
|
3
|
+
Your request to sign up gfdnavi was accepted.
|
|
4
|
+
Let's go to <%=@url%> at once.
|
|
5
|
+
Enjoy "gfdnavi"!
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Your account information:
|
|
9
|
+
login name: <%= @user.login %>
|
|
10
|
+
full name: <%= @user.full_name %>
|
|
11
|
+
email address: <%= @user.email_address %>
|
|
12
|
+
affiliation: <%= @user.affiliation %>
|