From 51bf1cd678f0d1fb40b71e5d1d4be39c3a27c5e1 Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Sat, 29 Aug 2015 09:53:16 +0800 Subject: [PATCH 01/37] =?UTF-8?q?=E4=BD=9C=E4=B8=9A=E6=90=9C=E7=B4=A2?= =?UTF-8?q?=E6=94=AF=E6=8C=81enter=E9=94=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/_show_user_homeworks.html.erb | 8 ++++---- config/routes.rb | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/app/views/users/_show_user_homeworks.html.erb b/app/views/users/_show_user_homeworks.html.erb index 09413ddce..c14278de3 100644 --- a/app/views/users/_show_user_homeworks.html.erb +++ b/app/views/users/_show_user_homeworks.html.erb @@ -4,10 +4,10 @@
-
- - -
+ <%= form_tag user_search_homeworks_user_path(User.current.id), :multipart => true, :remote => true, :class => "coursesSearchBox" do%> + + + <% end%>
<%= form_tag(user_select_homework_users_path, :multipart => true,:remote => true,:name=>"select_homework_form",:id=>'select_homework_form') do %>
diff --git a/config/routes.rb b/config/routes.rb index 7237787bd..be1a0a263 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -328,7 +328,7 @@ RedmineApp::Application.routes.draw do match 'user_visitorlist', :to => 'users#user_visitorlist', :via => :get match 'user_homeworks', :to => 'users#user_homeworks', :via => :get get 'user_import_homeworks' - get 'user_search_homeworks' + post 'user_search_homeworks' get 'user_import_resource' match 'watch_projects', :to => 'users#watch_projects', :via => :get # From f2a909f0e5c0cdbf1ad66cd0033a3e28ac9dbb27 Mon Sep 17 00:00:00 2001 From: lizanle <491823689@qq.com> Date: Sat, 29 Aug 2015 10:00:04 +0800 Subject: [PATCH 02/37] =?UTF-8?q?=E8=B5=84=E6=BA=90=E7=A7=BB=E5=8A=A8?= =?UTF-8?q?=E5=BC=B9=E5=87=BA=E6=A1=86=E6=90=9C=E7=B4=A2=E5=A4=84=E9=BC=A0?= =?UTF-8?q?=E6=A0=87=E6=82=AC=E6=B5=AE=E8=A6=81=E6=89=8B=E5=9E=8B=E5=85=89?= =?UTF-8?q?=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/stylesheets/new_user.css | 1 + 1 file changed, 1 insertion(+) diff --git a/public/stylesheets/new_user.css b/public/stylesheets/new_user.css index 93237f697..a41e631fb 100644 --- a/public/stylesheets/new_user.css +++ b/public/stylesheets/new_user.css @@ -438,6 +438,7 @@ a.uploadIcon {background:url(images/resource_icon_list.png) 8px -60px no-repeat; .resourcesSearchBox {border:1px solid #e6e6e6; width:225px; height:25px; background-color:#ffffff; margin-top:12px; margin-bottom:15px;} .searchResourcePopup {border:none; outline:none; background-color:#ffffff; width:184px; height:25px; padding-left:10px; display:inline-block; float:left;} .searchIconPopup{width:31px; height:25px; background-color:#ffffff; background:url(images/resource_icon_list.png) -40px -18px no-repeat; display:inline-block; float:left;} +.searchIconPopup:hover {cursor: pointer} .courseSend {width:260px; height:15px; line-height:15px; margin-bottom:10px;} .courseSendCheckbox {padding:0px; margin:0px; width:12px; height:12px; margin-right:10px; display:inline-block; margin-top:2px;} .sendCourseName {font-size:12px; color:#5f6060;} From a23ec96508a456c6e30ea0d92d3df46000d9ec6d Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Sat, 29 Aug 2015 10:07:36 +0800 Subject: [PATCH 03/37] =?UTF-8?q?=E5=AD=A6=E6=A0=A1=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E6=8A=A5404?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index be1a0a263..8451b7365 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -42,7 +42,7 @@ RedmineApp::Application.routes.draw do end - resources :school do + resources :school, :except => [:show] do collection do end From ada04e5e635ad4286c2aa0366021a3cd1c581407 Mon Sep 17 00:00:00 2001 From: suntao <719450423@qq.com> Date: Sat, 29 Aug 2015 10:13:32 +0800 Subject: [PATCH 04/37] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5?= =?UTF-8?q?=E5=A4=B4=E5=83=8F=E6=A8=A1=E5=9D=97=E6=94=B9=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/layouts/new_base_user.html.erb | 16 +++++++++------- public/images/avatars/User/0 | Bin 4208 -> 2756 bytes public/stylesheets/new_user.css | 18 +++++++++--------- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/app/views/layouts/new_base_user.html.erb b/app/views/layouts/new_base_user.html.erb index 9ab29ba8b..a34daabbb 100644 --- a/app/views/layouts/new_base_user.html.erb +++ b/app/views/layouts/new_base_user.html.erb @@ -30,8 +30,8 @@
-
- <%= image_tag(url_to_avatar(@user),width:"206", height: "206", :id=>'nh_user_tx') %> +
+ <%= image_tag(url_to_avatar(@user),width:"78", height: "78", :id=>'nh_user_tx') %> <% if User.current.logged?%> <% if is_current_user%>
@@ -46,16 +46,18 @@ <% end %> <% end%>
-
- +

diff --git a/public/images/avatars/User/0 b/public/images/avatars/User/0 index a4cc45467b6270c6fecc02e21fe8e8836bbc9f9a..bd2597dd2a623d59dea9b37ed4452281a69496d3 100644 GIT binary patch literal 2756 zcmbVN3s6&68a~Ml1Tpeh&_zMLhV_96$qh*$DUSdF1qa0-!dm2Ea)lU@8 zcd&ykQe8DFTk0xLi^8nnD$vSSs}{TX1aUxlDCHqOW>vuK&CP>$%XD`3Ofvb;|9{{A zI{!H_-8c0BuNbX#3jlF(%YhS^TBaf3F3cCp3IGXEaCImErXC2((P)%>21B6^%#vW6 z(LgaKXK1sO3?z`r0HG0DWtLcmYT(Uiwp0;DAHCQ_hozD*dI~3jnV^hDbEKC!F(f*{o*JVFIF&h0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yp}A>BufAGoz(YXr2JuI5jyR4PoxA#!tuM!J@D({B-LfnM(Q)$Ea=Aow zxG0Js2;d+{@lrgnkqjTA8U(>FzxDQcTIon?Z0_?x;|(FNx3x~}WGptOh~fH|=2 z+u)h8kC^ur7d=lokmt!!X|8->DA)j*`~Kb=}{7`wikL*<2sZ z|C8-6bClYWk-2z%eN{@WRx8;itfV817!s05GXHfb?{?i%r<=N@nbG>Y*yq`{E$WD} zER!hxbK)Sl7_FF0cCxt$pT$=m0MJ7+=_&qLyMB-hZ7AyD<KW znDYN0G|xaE`joA~^Z6Vdu3gvtNOgcN6h)zBhaMhQIbZ1bVkxr>6-mkaSDlOetp3s9 z|4HkSn6i8x43ZdzVZ!&4Y)KnqE49h#b#AAeTXs8M(`PrOJV%XFh^Y+}Sv?CD|GQ4n z0GhfW@3d`OuWZoVP&VVsSeB-b`e#6CbqxJ+=MSzN`nfDVkhM_#l;L1tMQ(OV zy3F?-0rZjBg^6QGq-F27Xb@}8H0&R>BmYVZJ)kxK>FYx!M-R34|M=q%d3X&DdqG|s zB_ybdz@!$I#~UBRVma%Oh(l4Z4v8gch$SBCGI=CS|2F`OBa!h;f;pi80000 Date: Sat, 29 Aug 2015 10:16:04 +0800 Subject: [PATCH 05/37] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5?= =?UTF-8?q?=E6=8A=A5500=E3=80=81=E5=8A=A8=E6=80=81=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=94=99=E4=BD=8D=E7=9A=84bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/users_controller.rb | 2 +- app/views/users/_course_message.html.erb | 2 +- app/views/users/_course_news.html.erb | 2 +- app/views/users/_project_issue.html.erb | 2 +- app/views/users/_project_message.html.erb | 2 +- app/views/users/_user_activities.html.erb | 18 +++++++++--------- app/views/users/show.html.erb | 6 +++--- 7 files changed, 17 insertions(+), 17 deletions(-) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 555c67d13..1f5d38e25 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -649,7 +649,7 @@ class UsersController < ApplicationController @user_activities = UserActivity.where("container_type = 'Project' and container_id in #{user_project_ids} and act_type = 'Message'").order('created_at desc').limit(10).offset(@page * 10) else @user_activities = UserActivity.where("(container_type = 'Project' and container_id in #{user_project_ids} and act_type in #{project_types}) or (container_type = 'Course' and container_id in #{user_course_ids}) and act_type in #{course_types}").order('created_at desc').limit(10).offset(@page * 10) - end + end else @user_activities = UserActivity.where("(container_type = 'Project' and container_id in #{user_project_ids} and act_type in #{project_types}) or (container_type = 'Course' and container_id in #{user_course_ids}) and act_type in #{course_types}").order('created_at desc').limit(10).offset(@page * 10) end diff --git a/app/views/users/_course_message.html.erb b/app/views/users/_course_message.html.erb index 0f0a145e3..ff7e43105 100644 --- a/app/views/users/_course_message.html.erb +++ b/app/views/users/_course_message.html.erb @@ -106,7 +106,7 @@ ) if reply.course_destroyable_by?(User.current) %>

-
<%= reply.content.html_safe %>
+
<%= reply.content.html_safe %>
diff --git a/app/views/users/_course_news.html.erb b/app/views/users/_course_news.html.erb index 5e538c65e..603901ae4 100644 --- a/app/views/users/_course_news.html.erb +++ b/app/views/users/_course_news.html.erb @@ -83,7 +83,7 @@ :data => {:confirm => l(:text_are_you_sure)}, :method => :delete, :title => l(:button_delete) %>
-
<%= comment.comments.html_safe %>
+
<%= comment.comments.html_safe %>
diff --git a/app/views/users/_project_issue.html.erb b/app/views/users/_project_issue.html.erb index eb0341607..0ee4f30fb 100644 --- a/app/views/users/_project_issue.html.erb +++ b/app/views/users/_project_issue.html.erb @@ -119,7 +119,7 @@
<%= string %>
<% end %> <% else %> -
<%= reply.notes.html_safe %>
+
<%= reply.notes.html_safe %>
<% end %>
diff --git a/app/views/users/_project_message.html.erb b/app/views/users/_project_message.html.erb index 3bdbda412..e60676ac6 100644 --- a/app/views/users/_project_message.html.erb +++ b/app/views/users/_project_message.html.erb @@ -103,7 +103,7 @@ ) if reply.course_destroyable_by?(User.current) %>
-
<%= reply.content.html_safe %>
+
<%= reply.content.html_safe %>
diff --git a/app/views/users/_user_activities.html.erb b/app/views/users/_user_activities.html.erb index 1cfeb7ed8..b43d0d54e 100644 --- a/app/views/users/_user_activities.html.erb +++ b/app/views/users/_user_activities.html.erb @@ -3,16 +3,16 @@