From ed3be27687d32398fd0d9ccaecede8c804d6fb0c Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Wed, 26 Aug 2015 18:07:31 +0800 Subject: [PATCH 01/30] =?UTF-8?q?=E6=B6=88=E6=81=AF=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/users/user_messages.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/users/user_messages.html.erb b/app/views/users/user_messages.html.erb index 97a159884..7e42d8332 100644 --- a/app/views/users/user_messages.html.erb +++ b/app/views/users/user_messages.html.erb @@ -1,5 +1,5 @@ -
尊敬的用户,您好!
diff --git a/app/views/layouts/_footer.html.erb b/app/views/layouts/_footer.html.erb
index 5aeb0031f..720ff3e8f 100644
--- a/app/views/layouts/_footer.html.erb
+++ b/app/views/layouts/_footer.html.erb
@@ -1,11 +1,11 @@
E_FgS+X$dZ2Y(2O07I`f5w0w!`Ru0d6!li
<%= render :partial => 'layouts/user_brief_introduction', :locals => {:user => @user} %>
}7WOs`ESGeuMyy&X~|VYXuA3(4!9Z))#@Wyc|s5L6qs
zSW6Z2ICUj?Y%t^0?7!j%r8thpWgXg#C}A~&)4(j4V_=NM^^rleP?}jBxIH_=OXMj|
ztV)lIOS3-bMPj_
zduaX2Yji{FxJU54*Ybht>-nsY*6+_={mL8o#>Tmy0wphg)g|Pf?bOX5NLu1OD7n8D
z)0*@>DY%h)bq(>|fOt(SY125s+h0p1ues!O2STpAlAH_$QnZ$l8EFFNWAn!k8o^!|
z#T5<_kHpXXw!Yd9Yy6hXM1mE(_(;m-bUxEcg)#EE`^qFi!vPPDmlk)rkjABVBpd9h
zes+*q9gn~&MpeiCnI5z4tF)4&h9fT)XWns2A3K>{VHUD=J$dgEO7I^=#=mc83~7gx
zd0jrSXi&8k-`p`3?8G=ZqjUbYt2B!kA$ojv!r0PQaA&*Bx{uccJ-sVEtx~W0f@T1E
z)%J=hbO$|MvK`a>$?iUy{SL$hVPXa=zTi`^x6R(?nfVR51xsOjiW#j#Q6M;#vJ0?3
z3oSX|BWUHqp}$G6Jxg&6^o=$OftWVJw3nBQ;XWj29yr0|@;qkNGNt>+m{l^NIctS7
zQJcWy08A?CWm)!(FBx`fo#KEJV8A_LGS|woM%ZI|dmj_-Myx`sL7SOr)pJdiI?VSI
zV4A?R_!!5F9vN1V&7$i?i=SM?Fqwj%dP`b>Xa^ZN=UXbo7=}$o3uTEts3k3$;jM{E
zcF=-jTs{11K+J6X)7EQ)=vv}7AGW9nrDb3dTH@-3;aLep81^OuZx+uJS1H}5P@H7j
zq|(jtn=GAeh@Uw&7%>q_tS;2~hvJvx5>2L{c2EDkQH!vUXDV;I$hKcc7VVVbdwu;!
zUV4AP9ko0~r;yhZ#w@eVA
zetd5vbW|N14kFTe2aY;^k^svEF=OrHQX8jE4SLeq06eBMX0Z}kr?uavxlW@+mR6rO
z!o
1#u{gAk?Q|db>zl2n%aVOJDyw=
zjB2|Q)ONJEdFUM$!gGkL77V
@@ -62,7 +62,7 @@
@@ -29,6 +28,8 @@
");
-$('#ajax-modal').parent().css("top","20%").css("left","25%");
+$('#ajax-modal').parent().css("top","20%").css("left","25%").css("position","fixed");
diff --git a/app/views/users/user_import_resource.js.erb b/app/views/users/user_import_resource.js.erb
new file mode 100644
index 000000000..ce70d68ad
--- /dev/null
+++ b/app/views/users/user_import_resource.js.erb
@@ -0,0 +1,7 @@
+$('#ajax-modal').html('<%= escape_javascript(render :partial => 'users/show_user_homeworks') %>');
+showModal('ajax-modal', '580px');
+$('#ajax-modal').css('height','300px').css("width","580px");
+$('#ajax-modal').siblings().remove();
+$('#ajax-modal').before("" +
+"
");
+$('#ajax-modal').parent().css("top","20%").css("left","25%").css("position","fixed");
\ No newline at end of file
diff --git a/config/routes.rb b/config/routes.rb
index 634fb6d27..7237787bd 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -329,6 +329,7 @@ RedmineApp::Application.routes.draw do
match 'user_homeworks', :to => 'users#user_homeworks', :via => :get
get 'user_import_homeworks'
get 'user_search_homeworks'
+ get 'user_import_resource'
match 'watch_projects', :to => 'users#watch_projects', :via => :get
#
# added by bai
From bbb8e5a0627b485ff0c34d416488d06c020550de Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Fri, 28 Aug 2015 16:56:09 +0800
Subject: [PATCH 26/30] =?UTF-8?q?=E8=80=81=E5=B8=88=E5=8F=91=E5=B8=83?=
=?UTF-8?q?=E4=BD=9C=E4=B8=9A=E5=8F=96=E6=B6=88=E5=8A=9F=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/views/users/_user_homework_form.html.erb | 2 +-
app/views/users/user_homeworks.html.erb | 8 ++++++++
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/app/views/users/_user_homework_form.html.erb b/app/views/users/_user_homework_form.html.erb
index 2d4c7eb49..3c4358b95 100644
--- a/app/views/users/_user_homework_form.html.erb
+++ b/app/views/users/_user_homework_form.html.erb
@@ -38,7 +38,7 @@
-
-
+
-
+
-
-
- <% end %>
- <% if ma.course_message_type == "Comment" %>
-
-
- <% end %>
- <% if ma.course_message_type == "HomeworkCommon" %>
-
-
- <% end %>
- <% if ma.course_message_type == "Poll" %>
-
-
- <% end %>
- <% if ma.course_message_type == "Message" %>
-
-
- <% end %>
- <% if ma.course_message_type == "StudentWorksScore" %>
-
-
- <% end %>
- <% if ma.course_message_type == "JournalsForMessage" %>
-
-
- <% end %>
+
+
+
+
+
<% end %>
-
- <% if ma.class == ForgeMessage %>
- <% if ma.forge_message_type == "Issue" %>
-
-
- <% end %>
- <% if ma.forge_message_type == "Journal" %>
-
-
- <% end %>
- <% if ma.forge_message_type == "Message" %>
-
-
<% end %>
-
- <% if ma.class == MemoMessage %>
- <% if ma.memo_type == "Memo" %>
-
+
+ <% end %>
+ <% if ma.course_message_type == "HomeworkCommon" %>
+
+
+ <% end %>
+ <% if ma.course_message_type == "Poll" %>
+
+
+ <% end %>
+ <% if ma.course_message_type == "Message" %>
+
+
- <% end %>
- <% if ma.forge_message_type == "News" %>
-
-
- <% end %>
- <% if ma.forge_message_type == "Comment" %>
-
-
- <% end %>
+
-
+
- <% end %>
<% end %>
-
- <% if ma.class == UserFeedbackMessage %>
- <% if ma.journals_for_message_type == "JournalsForMessage" %>
-
-
- <% end %>
+ <% if ma.course_message_type == "JournalsForMessage" %>
+
+
+ <% end %>
+ <% end %>
+
+ <% if ma.class == ForgeMessage %>
+ <% if ma.forge_message_type == "Issue" %>
+
+
+ <% end %>
+ <% if ma.forge_message_type == "Journal" %>
+
+
+ <% end %>
+ <% if ma.forge_message_type == "Message" %>
+
+
+ <% end %>
+ <% if ma.forge_message_type == "News" %>
+
+
+ <% end %>
+ <% if ma.forge_message_type == "Comment" %>
+
+
+ <% end %>
+ <% end %>
+
+ <% if ma.class == MemoMessage %>
+ <% if ma.memo_type == "Memo" %>
+
+
+ <% end %>
+ <% end %>
+
+ <% if ma.class == UserFeedbackMessage %>
+ <% if ma.journals_for_message_type == "JournalsForMessage" %>
+
+
<% end %>
<% end %>
-
- <%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
-
<% end %>
-
-
- <% else %>
-
+ <%= pagination_links_full @obj_pages, @obj_count, :per_page_links => false, :remote => false, :flag => true%>
+
<% end %>
-
-