Changeset 5721
- Timestamp:
- 03/24/08 10:13:21 (8 months ago)
- Files:
-
- components/todo_list/trunk/todo_list/_install/component_info.rb (modified) (3 diffs)
- components/todo_list/trunk/todo_list/_install/db/001_todo_list_schema_001.rb (modified) (1 diff)
- components/todo_list/trunk/todo_list/_install/db/002_todo_list_schema_002.rb (added)
- components/todo_list/trunk/todo_list/_install/images/bin_closed.png (deleted)
- components/todo_list/trunk/todo_list/_install/images/calendar.gif (deleted)
- components/todo_list/trunk/todo_list/_install/images/icon_alert.gif (deleted)
- components/todo_list/trunk/todo_list/_install/images/icon_delete.gif (deleted)
- components/todo_list/trunk/todo_list/_install/images/icon_down_arrow.gif (deleted)
- components/todo_list/trunk/todo_list/_install/images/icon_entry.gif (deleted)
- components/todo_list/trunk/todo_list/_install/images/icon_right_arrow.gif (deleted)
- components/todo_list/trunk/todo_list/_install/images/icon_white.gif (deleted)
- components/todo_list/trunk/todo_list/_install/images/pin-blue.gif (deleted)
- components/todo_list/trunk/todo_list/_install/images/pin-red.gif (deleted)
- components/todo_list/trunk/todo_list/_install/images/pin-yellow.gif (deleted)
- components/todo_list/trunk/todo_list/_install/images/reopen.gif (deleted)
- components/todo_list/trunk/todo_list/_install/images/todo_check_false.gif (deleted)
- components/todo_list/trunk/todo_list/_install/images/todo_check_true.gif (deleted)
- components/todo_list/trunk/todo_list/_install/javascripts (added)
- components/todo_list/trunk/todo_list/_install/javascripts/src_todo.js (added)
- components/todo_list/trunk/todo_list/_install/javascripts/todo.js (added)
- components/todo_list/trunk/todo_list/_install/stylesheets/todo.css (modified) (2 diffs)
- components/todo_list/trunk/todo_list/admin/_main_edit_content.rhtml (modified) (2 diffs)
- components/todo_list/trunk/todo_list/admin/_main_read_content.rhtml (modified) (1 diff)
- components/todo_list/trunk/todo_list/admin/main.rhtml (modified) (1 diff)
- components/todo_list/trunk/todo_list/admin_controller.rb (modified) (1 diff)
- components/todo_list/trunk/todo_list/admin_helper.rb (added)
- components/todo_list/trunk/todo_list/block (added)
- components/todo_list/trunk/todo_list/block/index.rhtml (added)
- components/todo_list/trunk/todo_list/block/list.rhtml (added)
- components/todo_list/trunk/todo_list/block/update.rjs (added)
- components/todo_list/trunk/todo_list/block_controller.rb (added)
- components/todo_list/trunk/todo_list/common (added)
- components/todo_list/trunk/todo_list/common/_todo_input_window.rhtml (added)
- components/todo_list/trunk/todo_list/common/input.rjs (added)
- components/todo_list/trunk/todo_list/common_controller.rb (added)
- components/todo_list/trunk/todo_list/common_helper.rb (added)
- components/todo_list/trunk/todo_list/component_plugins/reminder/init.rb (modified) (1 diff)
- components/todo_list/trunk/todo_list/index_controller.rb (added)
- components/todo_list/trunk/todo_list/languages/chinese.rb (modified) (1 diff)
- components/todo_list/trunk/todo_list/languages/english.rb (modified) (1 diff)
- components/todo_list/trunk/todo_list/languages/japanese.rb (modified) (1 diff)
- components/todo_list/trunk/todo_list/list_controller.rb (added)
- components/todo_list/trunk/todo_list/preload/_preload.rhtml (modified) (1 diff)
- components/todo_list/trunk/todo_list/remind_mail_cron.rb (modified) (2 diffs)
- components/todo_list/trunk/todo_list/todo (deleted)
- components/todo_list/trunk/todo_list/todo_controller.rb (deleted)
- components/todo_list/trunk/todo_list/todo_helper.rb (deleted)
- components/todo_list/trunk/todo_list/todo_list_category_box.rb (modified) (1 diff)
- components/todo_list/trunk/todo_list/todo_list_config.rb (modified) (2 diffs)
- components/todo_list/trunk/todo_list/todo_list_lib.rb (added)
- components/todo_list/trunk/todo_list/todo_list_mailer.rb (modified) (2 diffs)
- components/todo_list/trunk/todo_list/todo_list_todo.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
components/todo_list/trunk/todo_list/_install/component_info.rb
r5698 r5721 1 1 class TodoList::ComponentInfo < RubricksComponentInfo 2 2 def initialize 3 @display_name = '[_TodoList_ Title]'3 @display_name = '[_TodoList_Info_DisplayName]' 4 4 @version = '0.3.8' 5 @description = '[_TodoList_ Component_Description]'5 @description = '[_TodoList_Info_Description]' 6 6 @author = 'Rubricks.org' 7 7 @license = 'MIT' 8 8 @blocks = [ 9 9 { 10 :title => '[_Todo _Common_TodoReminder]',11 :controller => '/todo_list/ todo',12 :action => ' reminder_block',10 :title => '[_TodoList_Info_BlockTitleList]', 11 :controller => '/todo_list/block', 12 :action => 'index', 13 13 :function => 'access', 14 :description => '[_Todo _Block_Description]'14 :description => '[_TodoList_Info_BlockDescList]' 15 15 } 16 16 ] … … 19 19 { 20 20 :extend_page => 'main', 21 :title => '[_TodoList_ Menu]',22 :controller => '/todo_list/ todo',21 :title => '[_TodoList_Info_MenuTitleIndex]', 22 :controller => '/todo_list/index', 23 23 :function => 'access', 24 :description => 'Main Menu', 24 :description => '[_TodoList_Info_MenuDescIndex]', 25 }, 26 { 27 :extend_page => 'main', 28 :title => '[_TodoList_Info_MenuTitleList]', 29 :controller => '/todo_list/list', 30 :function => 'access', 31 :description => '[_TodoList_Info_MenuDescList]', 25 32 }, 26 33 { 27 34 :extend_page => 'admin', 28 :title => '[_Todo _Admin_Title]',35 :title => '[_TodoList_Info_MenuTitleAdmin]', 29 36 :controller => '/todo_list/admin', 30 37 :function => 'admin', 31 :description => ' Admin Menu',38 :description => '[_TodoList_Info_MenuDescAdmin]', 32 39 } 33 40 ] … … 35 42 { 36 43 :record_type => 'read', 37 :examples => '[_Todo _TrailRead]'44 :examples => '[_TodoList_Info_TrailRead]' 38 45 }, 39 46 { 40 47 :record_type => 'update', 41 :examples => '[_Todo _TrailUpdate]'48 :examples => '[_TodoList_Info_TrailUpdate]' 42 49 }, 43 50 ] components/todo_list/trunk/todo_list/_install/db/001_todo_list_schema_001.rb
r4145 r5721 5 5 #################################################################################################################### 6 6 create_table :todo_list_todos, :force => true do |t| 7 t.column :title, :string, :limit => 90, :default => '', :null => false 8 t.column :content, :text 9 t.column :category, :string, :limit => 90 10 t.column :created_on, :datetime, :null => false 11 t.column :updated_on, :datetime, :null => false 12 t.column :start_on, :datetime 13 t.column :close_on, :datetime 14 t.column :closed_on, :datetime 15 t.column :this_order, :integer, :limit => 1, :default => 2, :null => false 7 t.column :closed_flag, :integer, :limit => 1, :default => 0, :null => false 8 t.column :delete_flag, :integer, :limit => 1, :default => 0, :null => false 9 t.column :reminder_flag, :integer, :limit => 1, :default => 0, :null => false 10 t.column :sync_calendar_flag, :integer, :limit => 1, :default => 0, :null => false 16 11 t.column :order_in_box, :integer, :limit => 255, :default => 1, :null => false 17 12 t.column :progress, :integer, :limit => 2, :default => 0, :null => false 18 t.column :closed_flag, :integer, :limit => 1, :default => 0, :null => false19 t.column :delete_flag, :integer, :limit => 1, :default => 0, :null => false20 13 t.column :rubricks_user_id_owner, :integer, :default => 0, :null => false 21 14 t.column :rubricks_user_id_from, :integer, :default => 0, :null => false 22 15 t.column :rubricks_user_id_to, :integer 23 t.column :todo_id, :integer, :limit => 1024 t.column :reminder_flag, :integer, :limit => 1, :default => 0, :null => false25 16 t.column :reminder_delay, :integer, :limit => 1, :default => 0, :null => false 26 17 t.column :reminder_every, :integer, :limit => 1, :default => 0, :null => false 18 t.column :this_order, :integer, :limit => 1, :default => 2, :null => false 19 t.column :todo_id, :integer, :limit => 10 27 20 t.column :todo_list_category_box_id, :integer, :null => false 28 t.column :sync_calendar_flag, :integer, :limit => 1, :default => 0, :null => false 21 t.column :category, :string, :limit => 90 22 t.column :title, :string, :limit => 90, :default => '', :null => false 23 t.column :content, :text 24 t.column :close_on, :datetime 25 t.column :closed_on, :datetime 26 t.column :created_on, :datetime, :null => false 27 t.column :start_on, :datetime 28 t.column :updated_on, :datetime, :null => false 29 29 end 30 30 31 31 create_table :todo_list_category_boxes, :force => true do |t| 32 t.column :box_no, :integer, :default => 1, :null => false 33 t.column :rubricks_user_id, :integer, :null => false 32 34 t.column :title, :string, :limit => 90, :default => '', :null => false 33 t.column :box_no, :integer, :limit => 1, :default => 1, :null => false34 t.column :rubricks_user_id, :integer, :null => false35 35 end 36 36 37 37 create_table :todo_list_configs, :force => true do |t| 38 t.column :site_reminder_flag, :integer, :limit => 1,:default => 0, :null => false39 t.column :site_remind_hour, :integer, :limit => 24,:default => 0, :null => false40 t.column :site_remind_min, :integer, :limit => 60,:default => 0, :null => false38 t.column :site_reminder_flag, :integer, :default => 0, :null => false 39 t.column :site_remind_hour, :integer, :default => 0, :null => false 40 t.column :site_remind_min, :integer, :default => 0, :null => false 41 41 end 42 42 components/todo_list/trunk/todo_list/_install/stylesheets/todo.css
r5698 r5721 1 /*-------------------------*/ 2 /* style of list */ 3 /*-------------------------*/ 4 .todo_label_dateCompleted { 5 background-repeat: no-repeat; 6 padding-left: 20px; 7 } 8 .todo_label_dateWarning { 9 background-repeat: no-repeat; 10 padding: 1px 0px 1px 20px; 11 } 12 .todo_list_priority_icon { 13 background-repeat: no-repeat; 14 background-position: right; 15 width: 5px; 16 padding: 0; 17 margin: 0; 18 } 19 .todo_list_colb { 20 padding: 2px; 21 border-collapse: collapse; 22 margin: 0; 23 } 24 .todo_list_colb_text{ 25 padding: 0; 26 margin: 0; 27 border: none; 28 border-collapse: collapse; 29 text-align: left; 30 } 31 .todo_list_colh{ 32 padding: 2px; 33 border-collapse: collapse; 34 margin: 0; 35 } 36 .todo_list_colh_text{ 37 padding: 0; 38 margin: 0; 39 border: none; 40 border-collapse: collapse; 41 text-align: center; 42 } 43 .todo_list_coln1_right{ 44 background-repeat: no-repeat; 45 border: none; 46 padding: 2px; 47 border-collapse: collapse; 48 margin: 0; 49 } 50 .todo_list_rowb { 51 padding: 0; 52 border-collapse: collapse; 53 margin: auto; 54 width: 98%; 55 } 56 .todo_list_rowb:hover { 57 padding: 0; 58 border-collapse: collapse; 59 margin: auto; 60 width: 98%; 61 background-color: #ffffcc; 62 filter: alpha(opacity=90); /*IE*/ 63 } 64 .todo_list_tbody { 65 filter: alpha(opacity=90); /*IE*/ 66 } 67 .todo_list_tbody_hover { 68 background-color: #ffffcc; 69 filter: alpha(opacity=90); /*IE*/ 70 } 71 .todo_list_rowb_print { 72 padding: 0; 73 border-collapse: collapse; 74 margin: auto; 75 width: 98%; 76 } 77 .todo_list_rowh { 78 padding: 0; 79 border-collapse: collapse; 80 margin: auto; 81 position: relative; 82 width: 98%; 1 /*--[Settings for Common]-------------*/ 2 .todo_validate_msg { 3 height: 18px; 4 line-height: 18px; 5 margin-top: 2px; 83 6 } 84 7 85 /*-------------------------*/ 86 /* Common */ 87 /*-------------------------*/ 88 .todo_input_style { 89 margin: 10px; 8 /*--[Settings for Tyle Style]---------*/ 9 div.todo_area { 10 margin: 10px 0; 90 11 } 12 td.todo_category_box { 13 padding: 0; 14 text-align: center; 15 vertical-align: top; 16 width: 30%; 17 } 18 div.todo_category_box { 19 float: left; 20 min-height: 300px; 21 width: 100%; 22 } 23 div.todo_tile { 24 border-style: solid; 25 border-width: 1px; 26 margin: 3px auto; 27 padding: 3px; 28 text-align: left; 29 width: 95%; 30 } 31 table.todo_tile { 32 table-layout: fixed; 33 width: 100%; 34 } 35 table.todo_tile tr td { 36 border: none; 37 padding: 0; 38 } 39 .todo_tile_buttons { 40 height: 21px; 41 line-height: 21px; 42 width: 75px; 43 } 44 img.todo_tile_dummy { 45 float: left; 46 height: 300px; 47 width: 1px; 48 } 49 div.todo_tile_priority_1 { 50 border-right: 5px solid #66cc00; 51 } 52 div.todo_tile_priority_2 { 53 border-right: 5px solid #ffcc00; 54 } 55 div.todo_tile_priority_3 { 56 border-right: 5px solid #ff3333; 57 } 58 59 /*--[Settings for Progress Bar]-------*/ 91 60 .todo_progress { 92 61 font-size: 1px; 93 62 height: 10px; 94 63 padding: 0; 95 width: 60px;96 64 } 97 65 .todo_progress_done { … … 104 72 background-color: #bbbbff; 105 73 } 106 .todo_tile_icon_delete {107 border: none;108 padding: 0;109 margin: 0;110 cursor: pointer;111 }112 .todo_tile_icon_edit {113 border: none;114 padding: 0;115 margin: 0;116 cursor: pointer;117 }118 .todo_tile_icon_not_completed {119 border: none;120 padding: 0;121 margin: 0;122 cursor: pointer;123 }124 .todo_tile_icon_reopen {125 border: none;126 padding: 0;127 margin: 0;128 cursor: pointer;129 }components/todo_list/trunk/todo_list/admin/_main_edit_content.rhtml
r5698 r5721 1 1 <% validate_page do %> 2 <% render_detail('00', hl('[_Todo _Admin_Frame_Title]')) do %>2 <% render_detail('00', hl('[_TodoList_Common_TodoConfig]')) do %> 3 3 <% validate_form('update_button') do %> 4 4 <% form_main_tag(:url=>{:controller => '/todo_list/admin', :action => 'update'}, :html => {:id => 'todo_edit_form'}) do %> 5 5 <% render_float_button('float_button_area_admin_edit') do %> 6 6 <div class="float_button_right_inactive swap"> 7 <span id="todo_admin_edit_cancel_button" class="buttons icon_cancel" onclick="rubricks.todo_list. change_read_mode();"><%= hl('[_Common_Cancel]') %></span>7 <span id="todo_admin_edit_cancel_button" class="buttons icon_cancel" onclick="rubricks.todo_list.admin_change_read_mode();"><%= hl('[_Common_Cancel]') %></span> 8 8 </div> 9 9 <div class="float_button_right_inactive swap"> … … 13 13 <table class="rubricks_general_table"> 14 14 <tr class="rubricks_general_table_even"> 15 <td style="width:30%;"><%= hl('[_Todo _Common_Reminder]')%></td>15 <td style="width:30%;"><%= hl('[_TodoList_Common_Reminder]')%></td> 16 16 <td style="width:70%;"> 17 <input type="radio" id="todo_config_site_reminder_flag_use" name="todo_config[site_reminder_flag]" class="check" value=" 1" onclick="rubricks.todo_list.toggle_admin_calendar_flag();" <%= (@todo_config.site_reminder_flag == 1) ? 'checked="checked"' : '' %> />17 <input type="radio" id="todo_config_site_reminder_flag_use" name="todo_config[site_reminder_flag]" class="check" value="true" onclick="rubricks.todo_list.admin_toggle_reminder_flag();" <%= (@tlc.site_reminder_flag) ? 'checked="checked"' : '' %> /> 18 18 <label for="todo_config_site_reminder_flag_use"><%= hl('[_Common_Use]') %></label> 19 <input type="radio" id="todo_config_site_reminder_flag_not_use" name="todo_config[site_reminder_flag]" class="check" value=" 0" onclick="rubricks.todo_list.toggle_admin_calendar_flag();" <%= (@todo_config.site_reminder_flag == 1) ? '' : 'checked="checked"' %> />19 <input type="radio" id="todo_config_site_reminder_flag_not_use" name="todo_config[site_reminder_flag]" class="check" value="false" onclick="rubricks.todo_list.admin_toggle_reminder_flag();" <%= (@tlc.site_reminder_flag) ? '' : 'checked="checked"' %> /> 20 20 <label for="todo_config_site_reminder_flag_not_use"><%= hl('[_Common_NotUse]') %></label> 21 21 </td> 22 22 </tr> 23 23 <tr id="todo_edit_area_time" class="rubricks_general_table_even"> 24 <td><%= hl('[_Todo_Admin_RemindTime]')%></td> 25 <td> 26 <%= select_number :name => 'todo_config[site_remind_hour]', :range => 0..23, :step => 1, :selected => @todo_config.site_remind_hour, :disabled => 1 %> 27 <%= hl('[_Common_Hour]')%> 28 <%= select_number :name => 'todo_config[site_remind_min]', :range => 0..59, :step => 30, :selected => @todo_config.site_remind_min, :disabled => 1 %> 29 <%= hl('[_Common_Minute]')%> 30 </td> 24 <td><%= hl('[_TodoList_Admin_RemindTime]')%></td> 25 <td><%= render_site_remind_time_select(@tlc) %></td> 31 26 </tr> 32 27 </table> components/todo_list/trunk/todo_list/admin/_main_read_content.rhtml
r5698 r5721 1 <% render_detail('00', hl('[_Todo _Admin_Frame_Title]')) do %>1 <% render_detail('00', hl('[_TodoList_Common_TodoConfig]')) do %> 2 2 <% render_float_button('float_button_area_read') do %> 3 3 <div id="todo_admin_edit_mode_form" class="float_button_right_inactive swap"> 4 <span id="todo_admin_edit_mode_button" class="buttons icon_edit" onclick="rubricks.todo_list. change_edit_mode();"><%= hl('[_Common_Edit]') %></span>4 <span id="todo_admin_edit_mode_button" class="buttons icon_edit" onclick="rubricks.todo_list.admin_change_edit_mode();"><%= hl('[_Common_Edit]') %></span> 5 5 </div> 6 6 <% end %> 7 7 <table class="rubricks_general_table"> 8 8 <tr class="rubricks_general_table_even"> 9 <td style="width:30%;"><%= hl('[_Todo_Common_Reminder]')%></td> 10 <td style="width:70%;"> 11 <%= (@todo_config.site_reminder_flag != 0) ? hl('[_Common_Use]') : hl('[_Common_NotUse]') %> 12 </td> 9 <td style="width:30%;"><%= hl('[_TodoList_Common_Reminder]')%></td> 10 <td style="width:70%;"><%= (@tlc.site_reminder_flag) ? hl('[_Common_Use]') : hl('[_Common_NotUse]') %></td> 13 11 </tr> 14 <tr class="rubricks_general_table_even" <%= (@todo_config.site_reminder_flag != 0) ? '' : 'style="display:none;"' %>> 15 <td><%= hl('[_Todo_Admin_RemindTime]')%></td> 16 <td> 17 <%= h(@todo_config.site_remind_hour) %> 18 <%= hl('[_Common_Hour]')%> 19 <%= h(@todo_config.site_remind_min) %> 20 <%= hl('[_Common_Minute]')%> 21 </td> 12 <tr class="rubricks_general_table_even" <%= (@tlc.site_reminder_flag) ? '' : 'style="display:none;"' %>> 13 <td><%= hl('[_TodoList_Admin_RemindTime]')%></td> 14 <td><%= sprintf('%02d', @tlc.site_remind_hour) %>:<%= sprintf('%02d', @tlc.site_remind_min) %></td> 22 15 </tr> 23 16 </table> components/todo_list/trunk/todo_list/admin/main.rhtml
r5698 r5721 17 17 <script type="text/javascript"> 18 18 rubricks.common.FormEditor.readMode('todo_edit_area'); 19 Object.extend(rubricks.todo_list, { 20 change_edit_mode: function() { 21 rubricks.common.Validator.refresh(); 22 rubricks.common.FormEditor.editMode('todo_edit_area'); 23 }, 24 change_read_mode: function() { 25 rubricks.common.FormEditor.readMode('todo_edit_area', 'todo_edit_form'); 26 this.toggle_admin_calendar_flag(); 27 }, 28 toggle_admin_calendar_flag: function() { 29 var sync_calendar_time_open_flag = ($('todo_config_site_reminder_flag_use').checked == true); 30 if(sync_calendar_time_open_flag){ 31 $('todo_edit_area_time').style.display = ''; 32 } else { 33 $('todo_edit_area_time').style.display = 'none'; 34 } 35 } 36 }); 37 rubricks.todo_list.toggle_admin_calendar_flag(); 19 rubricks.todo_list.admin_toggle_reminder_flag(); 38 20 </script> 39 21 <%= flash_for_feedback_msg(:todo_common) %> components/todo_list/trunk/todo_list/admin_controller.rb
r5698 r5721 2 2 define_page 3 3 uses_component_template_root 4 helper 'todo_list/todo'5 4 6 5 def main 7 @todo_config = TodoList::TodoListConfig.instance 8 if @todo_config.site_reminder_flag==1 9 rubricks_logger(:action_type => :detail, :data => { 10 RubricksLib.hl('[_Todo_TrailAdminUpdate_col1]') => (@todo_config.site_reminder_flag==1 ? RubricksLib.hl('[_Common_Use]') : RubricksLib.hl('[_Common_NotUse]')), 11 RubricksLib.hl('[_Todo_TrailAdminUpdate_col2]') => @todo_config.site_remind_hour, 12 RubricksLib.hl('[_Todo_TrailAdminUpdate_col3]') => @todo_config.site_remind_min 13 }) 14 else 15 rubricks_logger(:action_type => :detail, :data => { 16 RubricksLib.hl('[_Todo_TrailAdminUpdate_col1]') => (@todo_config.site_reminder_flag==1 ? RubricksLib.hl('[_Common_Use]') : RubricksLib.hl('[_Common_NotUse]')) 17 }) 18 end 6 @tlc = TodoList::TodoListConfig.instance 7 rubricks_logger(:action_type => :detail, :data => @tlc) 19 8 end 20 9 21 10 def update 22 @todo_config = TodoList::TodoListConfig.instance 23 if @todo_config.update_attributes(params[:todo_config]) 24 flash[:todo_common] = RubricksLib.hl('[_Todo_Admin_Updated]') 25 if @todo_config.site_reminder_flag==1 26 rubricks_logger(:action_type => :update, :data => { 27 RubricksLib.hl('[_Todo_TrailAdminUpdate_col1]') => (@todo_config.site_reminder_flag==1 ? RubricksLib.hl('[_Common_Use]') : RubricksLib.hl('[_Common_NotUse]')), 28 RubricksLib.hl('[_Todo_TrailAdminUpdate_col2]') => @todo_config.site_remind_hour, 29 RubricksLib.hl('[_Todo_TrailAdminUpdate_col3]') => @todo_config.site_remind_min 11 begin 12 ActiveRecord::Base.transaction do 13 @tlc = TodoList::TodoListConfig.instance 14 @tlc.update_attributes({ 15 :site_reminder_flag => params[:todo_config][:site_reminder_flag], 16 :site_remind_hour => params[:todo_config][:site_remind_hour], 17 :site_remind_min => params[:todo_config][:site_remind_min], 30 18 }) 31 else 32 rubricks_logger(:action_type => :update, :data => { 33 RubricksLib.hl('[_Todo_TrailAdminUpdate_col1]') => (@todo_config.site_reminder_flag==1 ? RubricksLib.hl('[_Common_Use]') : RubricksLib.hl('[_Common_NotUse]')) 34 }) 19 TodoList::TodoListLib.save_cron 35 20 end 36 else 37 flash[:todo_common] = RubricksLib.hl('[_Todo_Admin_NotUpdated]') 21 rescue Exception => ex 22 logger.error(ex.message) 23 logger.error(ex.backtrace.join("\n ")) 24 flash[:todo_update_error] = '[_TodoList_Admin_ErrorUpdate]' 38 25 end 39 save_cron 26 flash[:todo_update_message] = '[_TodoList_Admin_MessageUpdate]' 27 rubricks_logger(:action_type => :update, :data => @tlc) 40 28 redirect_to :action => 'main' 41 29 end 42 43 private44 def save_cron45 c = RubricksCron.count("name = 'todo_remind_mail'")46 if c == 047 new_cron = RubricksCron.new48 new_cron.name = 'todo_remind_mail'49 new_cron.hour = TodoList::TodoListConfig.instance.site_remind_hour50 new_cron.min = TodoList::TodoListConfig.instance.site_remind_min51 new_cron.args = '[]'52 new_cron.command_class_name = 'TodoList::RemindMailCron'53 new_cron.loop = 154 new_cron.save!55 else56 current_cron = RubricksCron.find_by_name('todo_remind_mail')57 current_cron.hour = TodoList::TodoListConfig.instance.site_remind_hour58 current_cron.min = TodoList::TodoListConfig.instance.site_remind_min59 current_cron.save!60 end61 end62 30 end components/todo_list/trunk/todo_list/component_plugins/reminder/init.rb
r4142 r5721 1 c = RubricksCron.count("name = 'todo_remind_mail'") 2 3 if c == 0 4 new_cron = RubricksCron.new 5 new_cron.name = 'todo_remind_mail' 6 new_cron.hour = TodoList::TodoListConfig.instance.site_remind_hour 7 new_cron.min = TodoList::TodoListConfig.instance.site_remind_min 8 new_cron.args = '[]' 9 new_cron.command_class_name = 'TodoList::RemindMailCron' 10 new_cron.loop = 1 11 new_cron.save 12 else 13 current_cron = RubricksCron.find_by_name('todo_remind_mail') 14 current_cron.hour = TodoList::TodoListConfig.instance.site_remind_hour 15 current_cron.min = TodoList::TodoListConfig.instance.site_remind_min 16 current_cron.save 17 end 1 TodoList::TodoListLib.save_cron components/todo_list/trunk/todo_list/languages/chinese.rb
r5705 r5721 1 1 module RubricksLanguage 2 2 def define_lang 3 lang('chinese')['_TodoList_Title'] = 'ToDo' 4 lang('chinese')['_TodoList_Component_Description'] = 'ToDo管ççå·¥å 5 ·' 6 7 lang('chinese')['_TodoList_Menu'] = 'ToDoå衚' 8 lang('chinese')['_TodoList_Frame_Title'] = 'ToDo' 9 10 lang('chinese')['_Todo_TrailRead'] = 'æ¥çToDo' 11 lang('chinese')['_Todo_TrailUpdate'] = 'ToDoçæ°å»ºã»ä¿®æ¹ã»å é€' 12 13 lang('chinese')['_Todo_TrailUpdate_Note_CatChange'] = 'æŽæ¢åç±»' 14 lang('chinese')['_Todo_TrailUpdate_Note_CatNameChange'] = 'ä¿®æ¹åç±»åç§°' 15 lang('chinese')['_Todo_TrailUpdate_Note_TodoClose'] = 'ä»»å¡å®æ' 16 lang('chinese')['_Todo_TrailList_Note_TileView'] = 'ToDoçå衚æŸç€ºåºåïŒ' 17 18 lang('chinese')['_Todo_TrailAdminUpdate_col1'] = 'æ¯åŠå¯ä»¥äœ¿çšToDoæé' 19 lang('chinese')['_Todo_TrailAdminUpdate_col2'] = 'ToDoæéåä¿¡ïŒæ¶ïŒ' 20 lang('chinese')['_Todo_TrailAdminUpdate_col3'] = 'ToDoæéåä¿¡ïŒåïŒ' 21 22 lang('chinese')['_Todo_Admin_Title'] = 'ToDo讟眮' 23 lang('chinese')['_Todo_Admin_Frame_Title'] = 'ToDo讟眮' 24 lang('chinese')['_Todo_Admin_Updated'] = 'ToDo讟眮修æ¹å®æ¯ã' 25 lang('chinese')['_Todo_Admin_NotUpdated'] = 'ToDo讟眮修æ¹å€±èŽ¥ã' 26 lang('chinese')['_Todo_Common_Reminder'] = 'ToDoæé' 27 lang('chinese')['_Todo_Common_TodoReminder'] = 'ToDoæé' 28 lang('chinese')['_Todo_Admin_RemindTime'] = 'æéé®ä»¶åéæ¶éŽ' 29 lang('chinese')['_Todo_Common_Todo'] = 'ToDo' 30 31 lang('chinese')['_Todo_Block_Description'] = 'æŸç€ºåšæéæéŽçToDoä»»å¡ççåã' 32 33 lang('chinese')['_Todo_Com_tabMenu1'] = 'æªå®æ' 34 lang('chinese')['_Todo_Com_tabMenu2'] = '宿' 35 lang('chinese')['_Todo_Com_tabMenu3'] = 'å 36 šéš' 37 38 lang('chinese')['_Todo_Com_CategoryBoxName'] = 'åç±»åç§°' 39 lang('chinese')['_Todo_Com_labelViewStyle'] = 'ToDoçæŸç€ºæ¹åŒ' 40 lang('chinese')['_Todo_Com_optionViewStyle1'] = 'å衚' 41 lang('chinese')['_Todo_Com_optionViewStyle2'] = 'å¹³éº' 42 43 lang('chinese')['_Todo_Com_btn_done'] = '宿' 44 lang('chinese')['_Todo_Com_btn_view'] = '诊ç»' 45 lang('chinese')['_Todo_Com_btn_edit'] = 'çŒèŸ' 46 lang('chinese')['_Todo_Com_btn_delete'] = 'å é€' 47 lang('chinese')['_Todo_Com_btn_reopen'] = 'æ¹äžºæªå®æ' 48 49 # lang('chinese')['_Todo_Com_this_order_0'] = 'æªæå®' 50 lang('chinese')['_Todo_Com_this_order_1'] = 'äœ' 51 lang('chinese')['_Todo_Com_this_order_2'] = 'æ®é' 52 lang('chinese')['_Todo_Com_this_order_3'] = 'é«' 53 54 lang('chinese')['_Todo_Main_msg_delete_confirm'] = 'ç¡®å®èŠå é€åïŒ' 55 lang('chinese')['_Todo_Main_msg_done_confirm'] = 'ç¡®å®èŠæç¶ææ¹äžºå®æïŒè¿åºŠ100%ïŒåïŒ' 56 lang('chinese')['_Todo_Main_MsgReopenConfirm'] = 'ç¡®å®èŠæç¶ææ¹äžºæªå®æåïŒ' 57 58 lang('chinese')['_Todo_Main_Created'] = 'ToDoåå»ºå®æ¯ã' 59 lang('chinese')['_Todo_Main_Updated'] = 'ToDoä¿®æ¹å®æ¯ã' 60 lang('chinese')['_Todo_Main_Completed'] = 'ToDoç¶ææ¹äžºå®æã' 61 lang('chinese')['_Todo_Main_Deleted'] = 'ToDoå é€å®æ¯ã' 62 63 lang('chinese')['_Todo_Main_SearchNotFound'] = '没æç¬Šåæ¡ä»¶çToDoã' 64 lang('chinese')['_Todo_Main_msg_cannot_complete'] = 'å€äºå¯ä»¥ä¿åçç¶æåã请æäžå®ææé®ã' 65 66 lang('chinese')['_Todo_Main_msg_dateTermConfirm1'] = 'æéŽåŒå§æ¥æäžèœåšæéŽç»ææ¥æä¹åã' 67 lang('chinese')['_Todo_Main_msg_dateTermConfirm2'] = 'æéŽç»ææ¥æäžèœåšæéŽåŒå§æ¥æä¹åã' 68 69 70 lang('chinese')['_Todo_ListView_title'] = 'æ é¢' 71 lang('chinese')['_Todo_ListView_content'] = 'å 72 容' 73 lang('chinese')['_Todo_ListView_this_order'] = 'äŒå 74 级å«' 75 lang('chinese')['_Todo_ListView_progress'] = 'è¿åºŠ' 76 lang('chinese')['_Todo_ListView_created_on'] = 'å建æ¥' 77 lang('chinese')['_Todo_ListView_start_on'] = 'é¢å®åŒå§æ¥' 78 lang('chinese')['_Todo_ListView_close_on'] = 'é¢å®å®ææ¥' 79 lang('chinese')['_Todo_ListView_closed_on'] = '宿æ¥' 80 lang('chinese')['_Todo_ListView_dot'] = 'ã»' 81 lang('chinese')['_Todo_ListView_semi'] = 'ïŒ' 82 83 lang('chinese')['_Todo_Reminder_NotFound'] = 'æéäžååšã' 84 lang('chinese')['_Todo_Reminder_Off'] = 'æ ¹æ®ç®¡çè 85 ç讟眮ïŒäžèœäœ¿çšToDoçæéåèœã' 86 lang('chinese')['_Todo_Reminder_BeforeDay'] = '䞺%d倩ä¹å' 87 lang('chinese')['_Todo_Reminder_JustToday'] = 'ä»å€©æªæ¢' 88 lang('chinese')['_Todo_Reminder_AfterDay'] = 'å·²è¿%d倩' 89 lang('chinese')['_Todo_Reminder_ToHome'] = 'ToDo' 90 lang('chinese')['_Todo_Reminder_Detail'] = 'ToDo诊ç»' 91 lang('chinese')['_Todo_Admin_RunDruby'] = 'â»åŠé䜿çšè¯·å¯åšbackgrounDrb' 92 93 lang('chinese')['_Todo_EditDlg_label_title'] = 'ToDoçŒèŸç»é¢' 94 lang('chinese')['_Todo_EditDlg_label_title_new'] = 'æ°å»ºToDo' 95 lang('chinese')['_Todo_EditDlg_label_title_update'] = 'ToDoçŒèŸ' 96 lang('chinese')['_Todo_EditDlg_msg_on_serverError'] = 'äžèœä¿®æ¹ToDoã确讀èŸå 97 ¥å 98 容åïŒéæ°æ§è¡è¯¥æäœã' 99 lang('chinese')['_Todo_EditDlg_msg_required'] = '(*å¿ 100 é¡»)' 101 lang('chinese')['_Todo_EditDlg_msg_dateFmtRule'] = 'èŸå 102 ¥æ ŒåŒïŒ(幎4äœ/æ/æ¥)' 103 lang('chinese')['_Todo_EditDlg_label_save'] = 'ä¿å' 104 lang('chinese')['_Todo_EditDlg_label_save_option'] = 'ä¿åçåæ¶å°ToDoæ¹äžºå®æ' 105 lang('chinese')['_Todo_EditDlg_label_cancel'] = 'åæ¶' 106 lang('chinese')['_Todo_EditDlg_msg_dateConfirm'] = '请èŸå 107 ¥æ ŒåŒäžºyyyy/MM/ddçæ¥æã' 108 lang('chinese')['_Todo_EditDlg_msg_dateTermConfirm1'] = 'é¢å®åŒå§æ¥äžèœåšé¢å®å®ææ¥ä¹åã' 109 lang('chinese')['_Todo_EditDlg_msg_dateTermConfirm2'] = 'é¢å®å®ææ¥äžèœåšé¢å®åŒå§æ¥ä¹åã' 110 lang('chinese')['_Todo_EditDlg_msg_progressConfirm'] = 'è¯·éæ©è¿åºŠã' 111 lang('chinese')['_Todo_EditDlg_msg_dateInvalid'] = 'è¯¥æ¥æäžååšã' 112 113 lang('chinese')['_Todo_EditDlg_title'] = 'æ é¢' 114 lang('chinese')['_Todo_EditDlg_content'] = 'å 115 容' 116 lang('chinese')['_Todo_EditDlg_this_order'] = 'äŒå 117 级å«' 118 lang('chinese')['_Todo_EditDlg_progress'] = 'è¿åºŠ' 119 lang('chinese')['_Todo_EditDlg_created_on'] = 'å建æ¥' 120 lang('chinese')['_Todo_EditDlg_start_on'] = 'é¢å®åŒå§æ¥' 121 lang('chinese')['_Todo_EditDlg_close_on'] = 'é¢å®å®ææ¥' 122 lang('chinese')['_Todo_EditDlg_closed_on'] = '宿æ¥' 123 lang('chinese')['_Todo_EditDlg_rubricks_user_id_from'] = 'å建è 124 ' 125 126 lang('chinese')['_Todo_EditDlg_CalendarSync'] = '忥åèåš' 127 lang('chinese')['_Todo_EditDlg_CalendarRegisterTime'] = 'å建æ¶éŽ ' 128 lang('chinese')['_Todo_EditDlg_CalendarHour'] = 'æ¶' 129 lang('chinese')['_Todo_EditDlg_CalendarMin'] = 'å' 130 lang('chinese')['_Todo_EditDlg_SendReminder'] = 'åéæé' 131 lang('chinese')['_Todo_EditDlg_FromCompleteDate'] = 'é¢å®å®ææ¥æç' 132 lang('chinese')['_Todo_EditDlg_Today'] = 'åœå€©' 133 lang('chinese')['_Todo_EditDlg_ToCompleteDate'] = 'åŒå§' 134 lang('chinese')['_Todo_EditDlg_Everyday'] = 'æ¯å€©' 135 lang('chinese')['_Todo_EditDlg_AtOnce'] = 'ä» 136 1次' 137 lang('chinese')['_Todo_EditDlg_Notify'] = 'æé' 138 139 lang('chinese')['_Todo_TileView_label_priority3'] = 'æ£åšå€ççä»»å¡' 140 lang('chinese')['_Todo_TileView_label_priority2'] = 'çåŸ 141 å€ççä»»å¡' 142 lang('chinese')['_Todo_TileView_label_priority1'] = 'æªæç®å€ççä»»å¡' 143 lang('chinese')['_Todo_TileView_label_closeOn'] = 'æªæ¢æ¥' 144 lang('chinese')['_Todo_TileView_cssTitle_category_box'] = 'å¯ä»¥çŒèŸåç±»åç§°' 145 146 lang('chinese')['_filter_target1'] = 'æ é¢' 147 lang('chinese')['_filter_target2'] = 'å 148 容' 149 lang('chinese')['_filter_target3'] = 'äŒå 150 级å«' 151 lang('chinese')['_filter_target4'] = 'é¢å®åŒå§æ¥' 152 lang('chinese')['_filter_target5'] = 'é¢å®å®ææ¥' 153 154 lang('chinese')['_filter1_kind'] = 'åé¢å¹é 155 ' 156 157 lang('chinese')['_filter3_order1'] = 'äœ' 158 lang('chinese')['_filter3_order2'] = 'æ®é' 159 lang('chinese')['_filter3_order3'] = 'é«' 160 161 lang('chinese')['_filter_target_label'] = 'æ£çŽ¢å¯¹è±¡ïŒ' <
