From 368d755499e5cb34cd8ad5c150c14e09a6e933fd Mon Sep 17 00:00:00 2001
From: lizanle <491823689@qq.com>
Date: Thu, 12 Nov 2015 18:41:10 +0800
Subject: [PATCH 1/9] =?UTF-8?q?=E6=94=B9=E4=B8=BA=E7=AE=A1=E7=90=86?=
=?UTF-8?q?=E4=BA=BA=E5=91=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/organizations/_org_member_list.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/organizations/_org_member_list.html.erb b/app/views/organizations/_org_member_list.html.erb
index 23a31fab3..3a27965c0 100644
--- a/app/views/organizations/_org_member_list.html.erb
+++ b/app/views/organizations/_org_member_list.html.erb
@@ -13,7 +13,7 @@
<% if User.current.language == "zh" %>
<% if role.id == 11 %>
- 组织管理员
+ 管理人员
<% elsif role.id == 12 %>
组织成员
<% end %>
From 6fd76eb62282eebde06546379dce68d76714842c Mon Sep 17 00:00:00 2001
From: lizanle <491823689@qq.com>
Date: Thu, 12 Nov 2015 19:02:00 +0800
Subject: [PATCH 2/9] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=88=90=E5=91=98?=
=?UTF-8?q?=E8=A6=81=E5=81=9A=E7=A1=AE=E8=AE=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/organizations/_org_member_list.html.erb | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/app/views/organizations/_org_member_list.html.erb b/app/views/organizations/_org_member_list.html.erb
index 3a27965c0..fdaf9ff8d 100644
--- a/app/views/organizations/_org_member_list.html.erb
+++ b/app/views/organizations/_org_member_list.html.erb
@@ -37,7 +37,8 @@
diff --git a/db/schema.rb b/db/schema.rb
index 90f58aa3c..1f48eaf02 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -293,16 +293,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
t.boolean "diff_all"
end
- create_table "columns_priv", :id => false, :force => true do |t|
- t.string "Host", :limit => 60, :default => "", :null => false
- t.string "Db", :limit => 64, :default => "", :null => false
- t.string "User", :limit => 16, :default => "", :null => false
- t.string "Table_name", :limit => 64, :default => "", :null => false
- t.string "Column_name", :limit => 64, :default => "", :null => false
- t.timestamp "Timestamp", :null => false
- t.string "Column_priv", :limit => 0, :default => "", :null => false
- end
-
create_table "comments", :force => true do |t|
t.string "commented_type", :limit => 30, :default => "", :null => false
t.integer "commented_id", :default => 0, :null => false
@@ -501,33 +491,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
add_index "custom_values", ["custom_field_id"], :name => "index_custom_values_on_custom_field_id"
add_index "custom_values", ["customized_type", "customized_id"], :name => "custom_values_customized"
- create_table "db", :id => false, :force => true do |t|
- t.string "Host", :limit => 60, :default => "", :null => false
- t.string "Db", :limit => 64, :default => "", :null => false
- t.string "User", :limit => 16, :default => "", :null => false
- t.string "Select_priv", :limit => 1, :default => "N", :null => false
- t.string "Insert_priv", :limit => 1, :default => "N", :null => false
- t.string "Update_priv", :limit => 1, :default => "N", :null => false
- t.string "Delete_priv", :limit => 1, :default => "N", :null => false
- t.string "Create_priv", :limit => 1, :default => "N", :null => false
- t.string "Drop_priv", :limit => 1, :default => "N", :null => false
- t.string "Grant_priv", :limit => 1, :default => "N", :null => false
- t.string "References_priv", :limit => 1, :default => "N", :null => false
- t.string "Index_priv", :limit => 1, :default => "N", :null => false
- t.string "Alter_priv", :limit => 1, :default => "N", :null => false
- t.string "Create_tmp_table_priv", :limit => 1, :default => "N", :null => false
- t.string "Lock_tables_priv", :limit => 1, :default => "N", :null => false
- t.string "Create_view_priv", :limit => 1, :default => "N", :null => false
- t.string "Show_view_priv", :limit => 1, :default => "N", :null => false
- t.string "Create_routine_priv", :limit => 1, :default => "N", :null => false
- t.string "Alter_routine_priv", :limit => 1, :default => "N", :null => false
- t.string "Execute_priv", :limit => 1, :default => "N", :null => false
- t.string "Event_priv", :limit => 1, :default => "N", :null => false
- t.string "Trigger_priv", :limit => 1, :default => "N", :null => false
- end
-
- add_index "db", ["User"], :name => "User"
-
create_table "delayed_jobs", :force => true do |t|
t.integer "priority", :default => 0, :null => false
t.integer "attempts", :default => 0, :null => false
@@ -565,26 +528,23 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
add_index "documents", ["created_on"], :name => "index_documents_on_created_on"
add_index "documents", ["project_id"], :name => "documents_project_id"
- create_table "dts", :primary_key => "Num", :force => true do |t|
- t.string "Defect", :limit => 50
- t.string "Category", :limit => 50
- t.string "File"
- t.string "Method"
- t.string "Module", :limit => 20
- t.string "Variable", :limit => 50
- t.integer "StartLine"
- t.integer "IPLine"
- t.string "IPLineCode", :limit => 200
- t.string "Judge", :limit => 15
- t.integer "Review", :limit => 1
+ create_table "dts", :force => true do |t|
+ t.string "IPLineCode"
t.string "Description"
- t.text "PreConditions", :limit => 2147483647
- t.text "TraceInfo", :limit => 2147483647
- t.text "Code", :limit => 2147483647
+ t.string "Num"
+ t.string "Variable"
+ t.string "TraceInfo"
+ t.string "Method"
+ t.string "File"
+ t.string "IPLine"
+ t.string "Review"
+ t.string "Category"
+ t.string "Defect"
+ t.string "PreConditions"
+ t.string "StartLine"
t.integer "project_id"
- t.datetime "created_at"
- t.datetime "updated_at"
- t.integer "id", :null => false
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
end
create_table "enabled_modules", :force => true do |t|
@@ -609,31 +569,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
add_index "enumerations", ["id", "type"], :name => "index_enumerations_on_id_and_type"
add_index "enumerations", ["project_id"], :name => "index_enumerations_on_project_id"
- create_table "event", :id => false, :force => true do |t|
- t.string "db", :limit => 64, :default => "", :null => false
- t.string "name", :limit => 64, :default => "", :null => false
- t.binary "body", :limit => 2147483647, :null => false
- t.string "definer", :limit => 77, :default => "", :null => false
- t.datetime "execute_at"
- t.integer "interval_value"
- t.string "interval_field", :limit => 18
- t.timestamp "created", :null => false
- t.timestamp "modified", :null => false
- t.datetime "last_executed"
- t.datetime "starts"
- t.datetime "ends"
- t.string "status", :limit => 18, :default => "ENABLED", :null => false
- t.string "on_completion", :limit => 8, :default => "DROP", :null => false
- t.string "sql_mode", :limit => 0, :default => "", :null => false
- t.string "comment", :limit => 64, :default => "", :null => false
- t.integer "originator", :null => false
- t.string "time_zone", :limit => 64, :default => "SYSTEM", :null => false
- t.string "character_set_client", :limit => 32
- t.string "collation_connection", :limit => 32
- t.string "db_collation", :limit => 32
- t.binary "body_utf8", :limit => 2147483647
- end
-
create_table "first_pages", :force => true do |t|
t.string "web_title"
t.string "title"
@@ -685,21 +620,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
t.integer "locked"
end
- create_table "func", :primary_key => "name", :force => true do |t|
- t.boolean "ret", :default => false, :null => false
- t.string "dl", :limit => 128, :default => "", :null => false
- t.string "type", :limit => 9, :null => false
- end
-
- create_table "general_log", :id => false, :force => true do |t|
- t.timestamp "event_time", :null => false
- t.text "user_host", :limit => 16777215, :null => false
- t.integer "thread_id", :null => false
- t.integer "server_id", :null => false
- t.string "command_type", :limit => 64, :null => false
- t.text "argument", :limit => 16777215, :null => false
- end
-
create_table "groups_users", :id => false, :force => true do |t|
t.integer "group_id", :null => false
t.integer "user_id", :null => false
@@ -707,35 +627,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
add_index "groups_users", ["group_id", "user_id"], :name => "groups_users_ids", :unique => true
- create_table "help_category", :primary_key => "help_category_id", :force => true do |t|
- t.string "name", :limit => 64, :null => false
- t.integer "parent_category_id", :limit => 2
- t.text "url", :null => false
- end
-
- add_index "help_category", ["name"], :name => "name", :unique => true
-
- create_table "help_keyword", :primary_key => "help_keyword_id", :force => true do |t|
- t.string "name", :limit => 64, :null => false
- end
-
- add_index "help_keyword", ["name"], :name => "name", :unique => true
-
- create_table "help_relation", :id => false, :force => true do |t|
- t.integer "help_topic_id", :null => false
- t.integer "help_keyword_id", :null => false
- end
-
- create_table "help_topic", :primary_key => "help_topic_id", :force => true do |t|
- t.string "name", :limit => 64, :null => false
- t.integer "help_category_id", :limit => 2, :null => false
- t.text "description", :null => false
- t.text "example", :null => false
- t.text "url", :null => false
- end
-
- add_index "help_topic", ["name"], :name => "name", :unique => true
-
create_table "homework_attaches", :force => true do |t|
t.integer "bid_id"
t.integer "user_id"
@@ -758,12 +649,13 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
t.text "description"
t.date "publish_time"
t.date "end_time"
- t.integer "homework_type", :default => 1
+ t.integer "homework_type", :default => 1
t.string "late_penalty"
t.integer "course_id"
- t.datetime "created_at", :null => false
- t.datetime "updated_at", :null => false
- t.integer "teacher_priority", :default => 1
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
+ t.integer "teacher_priority", :default => 1
+ t.integer "anonymous_comment", :default => 0
end
create_table "homework_detail_manuals", :force => true do |t|
@@ -820,29 +712,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
t.datetime "updated_at", :null => false
end
- create_table "host", :id => false, :force => true do |t|
- t.string "Host", :limit => 60, :default => "", :null => false
- t.string "Db", :limit => 64, :default => "", :null => false
- t.string "Select_priv", :limit => 1, :default => "N", :null => false
- t.string "Insert_priv", :limit => 1, :default => "N", :null => false
- t.string "Update_priv", :limit => 1, :default => "N", :null => false
- t.string "Delete_priv", :limit => 1, :default => "N", :null => false
- t.string "Create_priv", :limit => 1, :default => "N", :null => false
- t.string "Drop_priv", :limit => 1, :default => "N", :null => false
- t.string "Grant_priv", :limit => 1, :default => "N", :null => false
- t.string "References_priv", :limit => 1, :default => "N", :null => false
- t.string "Index_priv", :limit => 1, :default => "N", :null => false
- t.string "Alter_priv", :limit => 1, :default => "N", :null => false
- t.string "Create_tmp_table_priv", :limit => 1, :default => "N", :null => false
- t.string "Lock_tables_priv", :limit => 1, :default => "N", :null => false
- t.string "Create_view_priv", :limit => 1, :default => "N", :null => false
- t.string "Show_view_priv", :limit => 1, :default => "N", :null => false
- t.string "Create_routine_priv", :limit => 1, :default => "N", :null => false
- t.string "Alter_routine_priv", :limit => 1, :default => "N", :null => false
- t.string "Execute_priv", :limit => 1, :default => "N", :null => false
- t.string "Trigger_priv", :limit => 1, :default => "N", :null => false
- end
-
create_table "invite_lists", :force => true do |t|
t.integer "project_id"
t.integer "user_id"
@@ -945,6 +814,16 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
add_index "journal_details", ["journal_id"], :name => "journal_details_journal_id"
+ create_table "journal_details_copy", :force => true do |t|
+ t.integer "journal_id", :default => 0, :null => false
+ t.string "property", :limit => 30, :default => "", :null => false
+ t.string "prop_key", :limit => 30, :default => "", :null => false
+ t.text "old_value"
+ t.text "value"
+ end
+
+ add_index "journal_details_copy", ["journal_id"], :name => "journal_details_journal_id"
+
create_table "journal_replies", :id => false, :force => true do |t|
t.integer "journal_id"
t.integer "user_id"
@@ -1072,15 +951,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
add_index "messages", ["last_reply_id"], :name => "index_messages_on_last_reply_id"
add_index "messages", ["parent_id"], :name => "messages_parent_id"
- create_table "ndb_binlog_index", :primary_key => "epoch", :force => true do |t|
- t.integer "Position", :limit => 8, :null => false
- t.string "File", :null => false
- t.integer "inserts", :limit => 8, :null => false
- t.integer "updates", :limit => 8, :null => false
- t.integer "deletes", :limit => 8, :null => false
- t.integer "schemaops", :limit => 8, :null => false
- end
-
create_table "news", :force => true do |t|
t.integer "project_id"
t.string "title", :limit => 60, :default => "", :null => false
@@ -1204,8 +1074,10 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
end
create_table "org_members", :force => true do |t|
- t.integer "user_id"
- t.integer "organization_id"
+ t.integer "user_id"
+ t.integer "organization_id"
+ t.datetime "created_at", :null => false
+ t.datetime "updated_at", :null => false
end
create_table "org_projects", :force => true do |t|
@@ -1232,10 +1104,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
t.datetime "updated_at", :null => false
end
- create_table "plugin", :primary_key => "name", :force => true do |t|
- t.string "dl", :limit => 128, :default => "", :null => false
- end
-
create_table "poll_answers", :force => true do |t|
t.integer "poll_question_id"
t.text "answer_text"
@@ -1311,42 +1179,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
t.datetime "updated_at", :null => false
end
- create_table "proc", :id => false, :force => true do |t|
- t.string "db", :limit => 64, :default => "", :null => false
- t.string "name", :limit => 64, :default => "", :null => false
- t.string "type", :limit => 9, :null => false
- t.string "specific_name", :limit => 64, :default => "", :null => false
- t.string "language", :limit => 3, :default => "SQL", :null => false
- t.string "sql_data_access", :limit => 17, :default => "CONTAINS_SQL", :null => false
- t.string "is_deterministic", :limit => 3, :default => "NO", :null => false
- t.string "security_type", :limit => 7, :default => "DEFINER", :null => false
- t.binary "param_list", :null => false
- t.binary "returns", :limit => 2147483647, :null => false
- t.binary "body", :limit => 2147483647, :null => false
- t.string "definer", :limit => 77, :default => "", :null => false
- t.timestamp "created", :null => false
- t.timestamp "modified", :null => false
- t.string "sql_mode", :limit => 0, :default => "", :null => false
- t.text "comment", :null => false
- t.string "character_set_client", :limit => 32
- t.string "collation_connection", :limit => 32
- t.string "db_collation", :limit => 32
- t.binary "body_utf8", :limit => 2147483647
- end
-
- create_table "procs_priv", :id => false, :force => true do |t|
- t.string "Host", :limit => 60, :default => "", :null => false
- t.string "Db", :limit => 64, :default => "", :null => false
- t.string "User", :limit => 16, :default => "", :null => false
- t.string "Routine_name", :limit => 64, :default => "", :null => false
- t.string "Routine_type", :limit => 9, :null => false
- t.string "Grantor", :limit => 77, :default => "", :null => false
- t.string "Proc_priv", :limit => 0, :default => "", :null => false
- t.timestamp "Timestamp", :null => false
- end
-
- add_index "procs_priv", ["Grantor"], :name => "Grantor"
-
create_table "project_infos", :force => true do |t|
t.integer "project_id"
t.integer "user_id"
@@ -1421,18 +1253,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
add_index "projects_trackers", ["project_id", "tracker_id"], :name => "projects_trackers_unique", :unique => true
add_index "projects_trackers", ["project_id"], :name => "projects_trackers_project_id"
- create_table "proxies_priv", :id => false, :force => true do |t|
- t.string "Host", :limit => 60, :default => "", :null => false
- t.string "User", :limit => 16, :default => "", :null => false
- t.string "Proxied_host", :limit => 60, :default => "", :null => false
- t.string "Proxied_user", :limit => 16, :default => "", :null => false
- t.boolean "With_grant", :default => false, :null => false
- t.string "Grantor", :limit => 77, :default => "", :null => false
- t.timestamp "Timestamp", :null => false
- end
-
- add_index "proxies_priv", ["Grantor"], :name => "Grantor"
-
create_table "queries", :force => true do |t|
t.integer "project_id"
t.string "name", :default => "", :null => false
@@ -1546,17 +1366,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
t.integer "is_teacher_score", :default => 0
end
- create_table "servers", :primary_key => "Server_name", :force => true do |t|
- t.string "Host", :limit => 64, :default => "", :null => false
- t.string "Db", :limit => 64, :default => "", :null => false
- t.string "Username", :limit => 64, :default => "", :null => false
- t.string "Password", :limit => 64, :default => "", :null => false
- t.integer "Port", :default => 0, :null => false
- t.string "Socket", :limit => 64, :default => "", :null => false
- t.string "Wrapper", :limit => 64, :default => "", :null => false
- t.string "Owner", :limit => 64, :default => "", :null => false
- end
-
create_table "settings", :force => true do |t|
t.string "name", :default => "", :null => false
t.text "value"
@@ -1577,20 +1386,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
t.string "description"
end
- create_table "slow_log", :id => false, :force => true do |t|
- t.timestamp "start_time", :null => false
- t.text "user_host", :limit => 16777215, :null => false
- t.time "query_time", :null => false
- t.time "lock_time", :null => false
- t.integer "rows_sent", :null => false
- t.integer "rows_examined", :null => false
- t.string "db", :limit => 512, :null => false
- t.integer "last_insert_id", :null => false
- t.integer "insert_id", :null => false
- t.integer "server_id", :null => false
- t.text "sql_text", :limit => 16777215, :null => false
- end
-
create_table "softapplications", :force => true do |t|
t.string "name"
t.text "description"
@@ -1672,19 +1467,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
t.string "subject"
end
- create_table "tables_priv", :id => false, :force => true do |t|
- t.string "Host", :limit => 60, :default => "", :null => false
- t.string "Db", :limit => 64, :default => "", :null => false
- t.string "User", :limit => 16, :default => "", :null => false
- t.string "Table_name", :limit => 64, :default => "", :null => false
- t.string "Grantor", :limit => 77, :default => "", :null => false
- t.timestamp "Timestamp", :null => false
- t.string "Table_priv", :limit => 0, :default => "", :null => false
- t.string "Column_priv", :limit => 0, :default => "", :null => false
- end
-
- add_index "tables_priv", ["Grantor"], :name => "Grantor"
-
create_table "taggings", :force => true do |t|
t.integer "tag_id"
t.integer "taggable_id"
@@ -1734,32 +1516,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
add_index "time_entries", ["project_id"], :name => "time_entries_project_id"
add_index "time_entries", ["user_id"], :name => "index_time_entries_on_user_id"
- create_table "time_zone", :primary_key => "Time_zone_id", :force => true do |t|
- t.string "Use_leap_seconds", :limit => 1, :default => "N", :null => false
- end
-
- create_table "time_zone_leap_second", :primary_key => "Transition_time", :force => true do |t|
- t.integer "Correction", :null => false
- end
-
- create_table "time_zone_name", :primary_key => "Name", :force => true do |t|
- t.integer "Time_zone_id", :null => false
- end
-
- create_table "time_zone_transition", :id => false, :force => true do |t|
- t.integer "Time_zone_id", :null => false
- t.integer "Transition_time", :limit => 8, :null => false
- t.integer "Transition_type_id", :null => false
- end
-
- create_table "time_zone_transition_type", :id => false, :force => true do |t|
- t.integer "Time_zone_id", :null => false
- t.integer "Transition_type_id", :null => false
- t.integer "Offset", :default => 0, :null => false
- t.integer "Is_DST", :limit => 1, :default => 0, :null => false
- t.string "Abbreviation", :limit => 8, :default => "", :null => false
- end
-
create_table "tokens", :force => true do |t|
t.integer "user_id", :default => 0, :null => false
t.string "action", :limit => 30, :default => "", :null => false
@@ -1778,51 +1534,6 @@ ActiveRecord::Schema.define(:version => 20151110011003) do
t.integer "fields_bits", :default => 0
end
- create_table "user", :id => false, :force => true do |t|
- t.string "Host", :limit => 60, :default => "", :null => false
- t.string "User", :limit => 16, :default => "", :null => false
- t.string "Password", :limit => 41, :default => "", :null => false
- t.string "Select_priv", :limit => 1, :default => "N", :null => false
- t.string "Insert_priv", :limit => 1, :default => "N", :null => false
- t.string "Update_priv", :limit => 1, :default => "N", :null => false
- t.string "Delete_priv", :limit => 1, :default => "N", :null => false
- t.string "Create_priv", :limit => 1, :default => "N", :null => false
- t.string "Drop_priv", :limit => 1, :default => "N", :null => false
- t.string "Reload_priv", :limit => 1, :default => "N", :null => false
- t.string "Shutdown_priv", :limit => 1, :default => "N", :null => false
- t.string "Process_priv", :limit => 1, :default => "N", :null => false
- t.string "File_priv", :limit => 1, :default => "N", :null => false
- t.string "Grant_priv", :limit => 1, :default => "N", :null => false
- t.string "References_priv", :limit => 1, :default => "N", :null => false
- t.string "Index_priv", :limit => 1, :default => "N", :null => false
- t.string "Alter_priv", :limit => 1, :default => "N", :null => false
- t.string "Show_db_priv", :limit => 1, :default => "N", :null => false
- t.string "Super_priv", :limit => 1, :default => "N", :null => false
- t.string "Create_tmp_table_priv", :limit => 1, :default => "N", :null => false
- t.string "Lock_tables_priv", :limit => 1, :default => "N", :null => false
- t.string "Execute_priv", :limit => 1, :default => "N", :null => false
- t.string "Repl_slave_priv", :limit => 1, :default => "N", :null => false
- t.string "Repl_client_priv", :limit => 1, :default => "N", :null => false
- t.string "Create_view_priv", :limit => 1, :default => "N", :null => false
- t.string "Show_view_priv", :limit => 1, :default => "N", :null => false
- t.string "Create_routine_priv", :limit => 1, :default => "N", :null => false
- t.string "Alter_routine_priv", :limit => 1, :default => "N", :null => false
- t.string "Create_user_priv", :limit => 1, :default => "N", :null => false
- t.string "Event_priv", :limit => 1, :default => "N", :null => false
- t.string "Trigger_priv", :limit => 1, :default => "N", :null => false
- t.string "Create_tablespace_priv", :limit => 1, :default => "N", :null => false
- t.string "ssl_type", :limit => 9, :default => "", :null => false
- t.binary "ssl_cipher", :null => false
- t.binary "x509_issuer", :null => false
- t.binary "x509_subject", :null => false
- t.integer "max_questions", :default => 0, :null => false
- t.integer "max_updates", :default => 0, :null => false
- t.integer "max_connections", :default => 0, :null => false
- t.integer "max_user_connections", :default => 0, :null => false
- t.string "plugin", :limit => 64, :default => ""
- t.text "authentication_string"
- end
-
create_table "user_activities", :force => true do |t|
t.string "act_type"
t.integer "act_id"
diff --git a/public/stylesheets/org.css b/public/stylesheets/org.css
index 3857b53e2..46083ea08 100644
--- a/public/stylesheets/org.css
+++ b/public/stylesheets/org.css
@@ -20,8 +20,8 @@ a.saveBtn {padding:3px 5px; background-color:#269ac9; color:#ffffff;}
a.saveBtn:hover {background-color:#297fb8;}
.orgMemberList {width:410px; float:left;}
.orgListRow {border-bottom:1px solid #e4e4e4; padding-bottom:5px;}
-.orgListUser {width:125px; float:left;}
-.orgListRole {width:285px; float:left;}
+.orgListUser {width:119px; float:left;}
+.orgListRole {width:180px; float:left;}
.orgMemContainer {width:278px;}
.orgMemberAdd {float:right; width:240px;}
.orgAddSearch {border:1px solid #dddddd; outline:none; width:180px; height:22px; color:#9b9b9b;}
From c2e783d78b73363c50fec4763dde37346607b475 Mon Sep 17 00:00:00 2001
From: lizanle <491823689@qq.com>
Date: Thu, 12 Nov 2015 19:19:01 +0800
Subject: [PATCH 4/9] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20=E5=88=A0=E9=99=A4=20?=
=?UTF-8?q?=E7=BC=96=E8=BE=91=E6=8C=89=E9=92=AE=E5=81=9A=E6=88=90=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E4=B8=80=E6=A0=B7=E7=9A=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/organizations/_org_member_list.html.erb | 4 ++--
public/stylesheets/org.css | 2 ++
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/app/views/organizations/_org_member_list.html.erb b/app/views/organizations/_org_member_list.html.erb
index 46403094f..dcbd98451 100644
--- a/app/views/organizations/_org_member_list.html.erb
+++ b/app/views/organizations/_org_member_list.html.erb
@@ -25,10 +25,10 @@
<% end %>
<%= hidden_field_tag 'membership[role_ids][]', '' %>
diff --git a/public/stylesheets/org.css b/public/stylesheets/org.css
index 46083ea08..9b44be938 100644
--- a/public/stylesheets/org.css
+++ b/public/stylesheets/org.css
@@ -32,6 +32,8 @@ a.saveBtn:hover {background-color:#297fb8;}
padding: 2px 5px;
border: 1px solid #EAEAEA;}
+a.org_member_btn{ padding:1px 5px; background:#15bccf; color:#fff;}
+
/*项目关联css*/
.relateOrg {width:335px;}
.relatedList {width:335px;}
From df0051cdd4ba33c98a88ab5838b0cb02a9e0cd0c Mon Sep 17 00:00:00 2001
From: lizanle <491823689@qq.com>
Date: Thu, 12 Nov 2015 19:26:39 +0800
Subject: [PATCH 5/9] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=20=E5=88=A0=E9=99=A4=20?=
=?UTF-8?q?=E7=BC=96=E8=BE=91=E6=8C=89=E9=92=AE=E5=81=9A=E6=88=90=E9=A1=B9?=
=?UTF-8?q?=E7=9B=AE=E4=B8=80=E6=A0=B7=E7=9A=84?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/organizations/_org_member_list.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/organizations/_org_member_list.html.erb b/app/views/organizations/_org_member_list.html.erb
index dcbd98451..0ac43d12e 100644
--- a/app/views/organizations/_org_member_list.html.erb
+++ b/app/views/organizations/_org_member_list.html.erb
@@ -36,7 +36,7 @@
<% if ( (User.current.id == member.organization.creator_id || member.roles[0].name == "orgManager" ) && member.user_id != member.organization.creator_id )%>
-
编辑
+
编辑
<%= link_to '删除', org_member_path(member.id),:method=>'delete',:style=>'color: #0781B4;margin-left: 30px;float: left',:confirm=>'您确定要删除么?', :remote => true %><% end %>
From f1b61c1581010fd3646575827316b3eb25f02897 Mon Sep 17 00:00:00 2001
From: lizanle <491823689@qq.com>
Date: Thu, 12 Nov 2015 19:32:15 +0800
Subject: [PATCH 6/9] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E7=BF=BB=E9=A1=B5?=
=?UTF-8?q?=E5=90=8E=E5=B0=86=E4=B8=A2=E5=A4=B1=E6=95=B0=E6=8D=AE?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/org_member/org_member_autocomplete.js.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/org_member/org_member_autocomplete.js.erb b/app/views/org_member/org_member_autocomplete.js.erb
index b1672038a..05cf3947c 100644
--- a/app/views/org_member/org_member_autocomplete.js.erb
+++ b/app/views/org_member/org_member_autocomplete.js.erb
@@ -1,5 +1,5 @@
<% if @org%>
- var checked = $("#not_org_members input:checked").size();
+ var checked = $("#principals_for_new_member input:checked").size();
if(checked > 0)
{
alert('翻页或搜索后将丢失当前选择的用户数据!');
From e265047ba96e1a81617fa4241d09fac393a47955 Mon Sep 17 00:00:00 2001
From: lizanle <491823689@qq.com>
Date: Thu, 12 Nov 2015 19:37:28 +0800
Subject: [PATCH 7/9] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=88=90=E5=91=98?=
=?UTF-8?q?=E7=BF=BB=E9=A1=B5=E9=9D=A0=E5=8F=B3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/helpers/org_member_helper.rb | 2 +-
app/helpers/organizations_helper.rb | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/app/helpers/org_member_helper.rb b/app/helpers/org_member_helper.rb
index 08313f4e9..fd70a0516 100644
--- a/app/helpers/org_member_helper.rb
+++ b/app/helpers/org_member_helper.rb
@@ -11,6 +11,6 @@ module OrgMemberHelper
links = pagination_links_full(@obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true){|text, parameters, options|
link_to text, org_member_autocomplete_org_member_index_path(parameters.merge(:q => params[:q],:flag => true,:org=> org, :format => 'js')), :remote => true
}
- s + content_tag('ul', links,:class => 'wlist', :id => "org_member_pagination_links" )
+ s + content_tag('ul', links,:class => 'wlist',:style=>'float:left !important', :id => "org_member_pagination_links" )
end
end
diff --git a/app/helpers/organizations_helper.rb b/app/helpers/organizations_helper.rb
index 33d5dea6e..55a7a5d42 100644
--- a/app/helpers/organizations_helper.rb
+++ b/app/helpers/organizations_helper.rb
@@ -14,7 +14,7 @@ module OrganizationsHelper
links = pagination_links_full(@obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true){|text, parameters, options|
link_to text, org_member_autocomplete_org_member_index_path( parameters.merge(:q => params[:q],:flag => true,:org=>org, :format => 'js')), :remote => true
}
- s + content_tag('ul', links,:class => 'wlist', :id => "org_member_pagination_links" )
+ s + content_tag('ul', links,:class => 'wlist',:style=>'float:left !important', :id => "org_member_pagination_links" )
end
end
From 99637924b4ce69e17a052285ddd33f3446c7b7cf Mon Sep 17 00:00:00 2001
From: lizanle <491823689@qq.com>
Date: Thu, 12 Nov 2015 19:52:46 +0800
Subject: [PATCH 8/9] =?UTF-8?q?=E6=96=87=E7=AB=A0=E6=A0=87=E9=A2=98?=
=?UTF-8?q?=E9=99=90=E5=88=B6=E9=95=BF=E5=BA=A6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/org_document_comments/_new.html.erb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/app/views/org_document_comments/_new.html.erb b/app/views/org_document_comments/_new.html.erb
index 91bcad2a9..b7a9b3a0f 100644
--- a/app/views/org_document_comments/_new.html.erb
+++ b/app/views/org_document_comments/_new.html.erb
@@ -15,7 +15,7 @@
<%= form_tag organization_org_document_comments_path(:organization_id => @organization.id), :id => 'new_org_document_form' do |f| %>