<% @course_result.each do |sy| %>
<% sy_author = User.find(sy.tea_id) %>
@@ -63,7 +63,7 @@
<% elsif !@shixuns_result.blank? %>
<% @shixuns_result.each do |shixun| %>
-
+
<% if shixun.status == 2 %>
已发布
diff --git a/app/views/users/shixuns.html.erb b/app/views/users/shixuns.html.erb
index b75be4195..dc715d962 100644
--- a/app/views/users/shixuns.html.erb
+++ b/app/views/users/shixuns.html.erb
@@ -17,7 +17,7 @@
我挑战的
-
+ 新建
+
+ 新建
diff --git a/public/javascripts/edu/application.js b/public/javascripts/edu/application.js
index b90880a8a..6f0c828a7 100644
--- a/public/javascripts/edu/application.js
+++ b/public/javascripts/edu/application.js
@@ -66,7 +66,7 @@ $(function(){
$desc.show().css({
left:$(this).offset().left +30,
opacity:0.7,
- top:$(this).offset().top-$desc.height()/8
+ top:$(this).offset().top-($desc.height()-$(this).height())/2
});
});
$("[data-tip-left]").live("mouseenter",function(){
@@ -75,7 +75,7 @@ $(function(){
$desc.show().css({
left:$(this).offset().left-$desc.width()-10,
opacity:0.7,
- top:$(this).offset().top-$desc.height()/8
+ top:$(this).offset().top-($desc.height()-$(this).height())/2
});
});
From 9791cec00465425839044d87f927eba2710fdce2 Mon Sep 17 00:00:00 2001
From: XuCheng642 <287102909@qq.com>
Date: Mon, 18 Sep 2017 15:38:59 +0800
Subject: [PATCH 02/23] =?UTF-8?q?=E7=AE=A1=E7=90=86=E5=91=98=E7=95=8C?=
=?UTF-8?q?=E9=9D=A2issue=E8=A7=A3=E5=86=B3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/controllers/managements_controller.rb | 23 +++++++++++++------
.../_audit_pro_authentication_list.html.erb | 9 +++++++-
.../managements/_classroom_list.html.erb | 2 +-
.../_pro_authentication_list.html.erb | 9 +++++++-
app/views/managements/_user_list.html.erb | 2 +-
app/views/managements/users.html.erb | 2 +-
.../student_work/_shixun_work_show.html.erb | 2 +-
...912090828_update_user_id_to_courselists.rb | 8 -------
8 files changed, 36 insertions(+), 21 deletions(-)
delete mode 100644 db/migrate/20170912090828_update_user_id_to_courselists.rb
diff --git a/app/controllers/managements_controller.rb b/app/controllers/managements_controller.rb
index 3d60ed6ec..1e71691b8 100644
--- a/app/controllers/managements_controller.rb
+++ b/app/controllers/managements_controller.rb
@@ -693,7 +693,7 @@ end
if params[:school_id] && params[:school_id] != ''
@school_id = params[:school_id]
- @courses = Course.joins("join users u on courses.tea_id = u.id").joins("join user_extensions ue on u.id = ue.user_id").where("ue.school_id = #{params[:school_id]}")
+ @courses = @courses.joins("join users u on courses.tea_id = u.id").joins("join user_extensions ue on u.id = ue.user_id").where("ue.school_id = #{params[:school_id]}")
end
if params[:homepage_show]
@@ -859,12 +859,13 @@ end
@users = User.where("status = #{status} and #{condition} like '%#{params[:research_contents]}%'").order("#{@order_key} #{@us_order}").all
end
end
-
- school_name = params[:school]
- school = School.where("name like '%#{school_name}%'")
- school_id = school.map(&:id)
- user_id = UserExtensions.where(:school_id => school_id).map(&:user_id)
- @users = User.where(:id => user_id)
+ if params[:school] && params[:school] != ''
+ school_name = params[:school]
+ school = School.where("name like '%#{school_name}%'")
+ school_id = school.map(&:id)
+ user_id = UserExtensions.where(:school_id => school_id).map(&:user_id)
+ @users = User.where(:id => user_id)
+ end
@users_count = @users.count
@limit = 20
@@ -1196,6 +1197,7 @@ end
# @unapproved_user = ApplyUserAuthentication.where(:status => @type, :user_id => user_id, :auth_type => 1).find_by_sql("SELECT s.*, TIMESTAMPDIFF(SECOND, s.updated_at, now()) diff FROM `apply_user_authentications` s order by diff asc")
@unapproved_user = ApplyUserAuthentication.where(:status => @type, :user_id => user_id, :auth_type => 1).order("updated_at desc")
+
@unapproved_user_count = @unapproved_user.count
@limit = 15
@is_remote = true
@@ -1216,6 +1218,13 @@ end
user_id = User.find_by_sql("select id from users where concat(lastname,firstname) like '%#{params[:name]}%'")
# @unapproved_user = ApplyUserAuthentication.where(:status => @type, :user_id => user_id, :auth_type => 2).find_by_sql("SELECT s.*, TIMESTAMPDIFF(SECOND, s.updated_at, now()) diff FROM `apply_user_authentications` s order by diff asc")
@unapproved_user = ApplyUserAuthentication.where(:status => @type, :user_id => user_id, :auth_type => 2).order("updated_at desc")
+
+ @unapproved_user_count = @unapproved_user.count
+ @limit = 15
+ @is_remote = true
+ @unapproved_user_pages = Paginator.new @unapproved_user_count, @limit, params['page'] || 1
+ @offset ||= @unapproved_user_pages.offset
+ @unapproved_user = paginateHelper @unapproved_user, @limit
respond_to do |format|
format.html
format.js
diff --git a/app/views/managements/_audit_pro_authentication_list.html.erb b/app/views/managements/_audit_pro_authentication_list.html.erb
index cf0bbe687..e9aba882b 100644
--- a/app/views/managements/_audit_pro_authentication_list.html.erb
+++ b/app/views/managements/_audit_pro_authentication_list.html.erb
@@ -34,7 +34,14 @@
<% end %>
-
+
+
+
+ <%= pagination_links_full @unapproved_user_pages, @unapproved_user_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true %>
+
+
+
+
\ No newline at end of file
diff --git a/app/views/my/account.js.erb b/app/views/my/account.js.erb
new file mode 100644
index 000000000..fe3592b63
--- /dev/null
+++ b/app/views/my/account.js.erb
@@ -0,0 +1 @@
+alert("修改成功");
\ No newline at end of file
diff --git a/app/views/users/_user_journalsformessage.html.erb b/app/views/users/_user_journalsformessage.html.erb
index fcffcb1ec..448069e02 100644
--- a/app/views/users/_user_journalsformessage.html.erb
+++ b/app/views/users/_user_journalsformessage.html.erb
@@ -40,7 +40,8 @@
留言时间:<%= format_time(activity.created_on) %>
- 更新时间:<%= format_time(PrincipalActivity.where("principal_act_type='#{activity.class}' and principal_act_id =#{activity.id}").first.updated_at) %>
+ <% update_time = PrincipalActivity.where("principal_act_type='#{activity.class}' and principal_act_id =#{activity.id}").first %>
+ 更新时间:<%= format_time(update_time.try(:updated_at).nil? ? update_time.try(:updated_on) : update_time.try(:updated_at)) %>
<% if activity.user == User.current || User.current.admin?%>
diff --git a/config/routes.rb b/config/routes.rb
index e0d3ef6bf..4491f98de 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -209,6 +209,7 @@ RedmineApp::Application.routes.draw do
get 'agree_authentication'
match 'users', :via => [:get, :post]
get 'users_trial'
+ get 'auto_users_trial'
match 'users_authorization_agree'
match 'users_authorization_cancel'
get 'update_webssh'
@@ -237,11 +238,15 @@ RedmineApp::Application.routes.draw do
get 'create_departments'
post 'add_department'
get 'shixun_feedback'
+ get 'shixun_feedback_message'
+ get 'leave_message'
+ get 'messages_list'
match 'update_user',:via=>[:get,:post]
post 'support_shixuns_search'
match 'export_excel', :via => [:get, :post]
get 'add_departments_part'
post 'save_school'
+ post 'update_user_message'
end
end
# Enable Grack support
diff --git a/public/javascripts/edu/account.js b/public/javascripts/edu/account.js
index 01f68bf80..ad58a5737 100644
--- a/public/javascripts/edu/account.js
+++ b/public/javascripts/edu/account.js
@@ -520,6 +520,7 @@ $(function(){
$("#user_email_addr").blur(function (event) {
if (/^[a-zA-Z0-9]+([._\\]*[a-z0-9])*@([a-z0-9]+[-a-z0-9]*[a-z0-9]+.){1,63}[a-z0-9]+$/.test(this.value) == false){
+ $('#user_phone_hint').show();
$('#user_phone_notice').html('邮箱地址格式不对');
$('#user_phone_notice').parent().show();
$("#user_email_check").removeClass("fa-check-circle").removeClass("color-light-green").addClass("fa-times-circle").addClass("color-orange");
diff --git a/public/plugin_assets/redmine_code_review/stylesheets/window_js/mac_os_x.css b/public/plugin_assets/redmine_code_review/stylesheets/window_js/mac_os_x.css
index 24751f868..fdff45d8e 100644
--- a/public/plugin_assets/redmine_code_review/stylesheets/window_js/mac_os_x.css
+++ b/public/plugin_assets/redmine_code_review/stylesheets/window_js/mac_os_x.css
@@ -1,333 +1,333 @@
-/* Focused windows */
-.overlay_mac_os_x {
- background-color: #85BBEF;
- filter:alpha(opacity=60);
- -moz-opacity: 0.6;
- opacity: 0.6;
-}
-
-.mac_os_x_nw {
- background: transparent url(mac_os_x/TL_Main.png) no-repeat 0 0;
- width:24px;
- height:30px;
-}
-
-.mac_os_x_n {
- background: transparent url(mac_os_x/T_Main.png) repeat-x 0 0;
- height:30px;
-}
-
-.mac_os_x_ne {
- background: transparent url(mac_os_x/TR_Main.png) no-repeat 0 0;
- width:31px;
- height:30px;
-}
-
-.mac_os_x_w {
- background: transparent url(mac_os_x/L_Main.png) repeat-y top left;
- width:16px;
-}
-
-.mac_os_x_e {
- background: transparent url(mac_os_x/R_Main.png) repeat-y top right;
- width:16px;
-}
-
-.mac_os_x_sw {
- background: transparent url(mac_os_x/BL_Main.png) no-repeat 0 0;
- width:31px;
- height:40px;
-}
-
-.mac_os_x_s {
- background: transparent url(mac_os_x/B_Main.png) repeat-x 0 0;
- height:40px;
-}
-
-.mac_os_x_se, .mac_os_x_sizer {
- background: transparent url(mac_os_x/BR_Main.png) no-repeat 0 0;
- width:31px;
- height:40px;
-}
-
-.mac_os_x_sizer {
- cursor:se-resize;
-}
-
-.mac_os_x_close {
- width: 19px;
- height: 19px;
- background: transparent url(mac_os_x/close.gif) no-repeat 0 0;
- position:absolute;
- top:12px;
- left:25px;
- cursor:pointer;
- z-index:1000;
-}
-
-.mac_os_x_minimize {
- width: 19px;
- height: 19px;
- background: transparent url(mac_os_x/minimize.gif) no-repeat 0 0;
- position:absolute;
- top:12px;
- left:45px;
- cursor:pointer;
- z-index:1000;
-}
-
-.mac_os_x_maximize {
- width: 19px;
- height: 19px;
- background: transparent url(mac_os_x/maximize.gif) no-repeat 0 0;
- position:absolute;
- top:12px;
- left:65px;
- cursor:pointer;
- z-index:1000;
-}
-
-.mac_os_x_title {
- float:left;
- height:14px;
- font-family: Tahoma, Arial, sans-serif;
- font-size:12px;
- text-align:center;
- margin-top:8px;
- width:100%;
- color:#000;
-}
-
-.mac_os_x_content {
- overflow:auto;
- color: #222;
- font-family: Tahoma, Arial, sans-serif;
- font-size: 10px;
- background:#FFF;
-}
-.mac_os_x_s .status_bar {
- padding-bottom:24px;
-}
-
-/* FOR IE */
-* html .mac_os_x_nw {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TL_Main.png", sizingMethod="crop");
-}
-
-* html .mac_os_x_n {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/T_Main.png", sizingMethod="scale");
-}
-
-* html .mac_os_x_ne {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TR_Main.png", sizingMethod="crop");
-}
-
-* html .mac_os_x_w {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/L_Main.png", sizingMethod="scale");
-}
-
-* html .mac_os_x_e {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/R_Main.png", sizingMethod="scale");
-}
-
-* html .mac_os_x_sw {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BL_Main.png", sizingMethod="crop");
-}
-
-* html .mac_os_x_s {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/B_Main.png", sizingMethod="scale");
-}
-
-* html .mac_os_x_se {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR_Main.png", sizingMethod="crop");
-}
-
-* html .mac_os_x_sizer {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR_Main.png", sizingMethod="crop");
-}
-
-
-/* Focused windows */
-.overlay_blur_os_x {
- background-color: #85BBEF;
- filter:alpha(opacity=60);
- -moz-opacity: 0.6;
- opacity: 0.6;
-}
-
-.blur_os_x_nw {
- background: transparent url(mac_os_x/TL.png) no-repeat 0 0;
- width:24px;
- height:30px;
-}
-
-.blur_os_x_n {
- background: transparent url(mac_os_x/T.png) repeat-x 0 0;
- height:30px;
-}
-
-.blur_os_x_ne {
- background: transparent url(mac_os_x/TR.png) no-repeat 0 0;
- width:31px;
- height:30px;
-}
-
-.blur_os_x_w {
- background: transparent url(mac_os_x/L.png) repeat-y top left;
- width:16px;
-}
-
-.blur_os_x_e {
- background: transparent url(mac_os_x/R.png) repeat-y top right;
- width:16px;
-}
-
-.blur_os_x_sw {
- background: transparent url(mac_os_x/BL.png) no-repeat 0 0;
- width:31px;
- height:40px;
-}
-
-.blur_os_x_s {
- background: transparent url(mac_os_x/B.png) repeat-x 0 0;
- height:40px;
-}
-
-.blur_os_x_se, .blur_os_x_sizer {
- background: transparent url(mac_os_x/BR.png) no-repeat 0 0;
- width:31px;
- height:40px;
-}
-
-.blur_os_x_sizer {
- cursor:se-resize;
-}
-
-.blur_os_x_close {
- width: 19px;
- height: 19px;
- background: transparent url(mac_os_x/close.gif) no-repeat 0 0;
- position:absolute;
- top:12px;
- left:25px;
- cursor:pointer;
- z-index:1000;
-}
-
-.blur_os_x_minimize {
- width: 19px;
- height: 19px;
- background: transparent url(mac_os_x/minimize.gif) no-repeat 0 0;
- position:absolute;
- top:12px;
- left:45px;
- cursor:pointer;
- z-index:1000;
-}
-
-.blur_os_x_maximize {
- width: 19px;
- height: 19px;
- background: transparent url(mac_os_x/maximize.gif) no-repeat 0 0;
- position:absolute;
- top:12px;
- left:65px;
- cursor:pointer;
- z-index:1000;
-}
-
-.blur_os_x_title {
- float:left;
- height:14px;
- font-family: Tahoma, Arial, sans-serif;
- font-size:12px;
- text-align:center;
- margin-top:8px;
- width:100%;
- color:#000;
-}
-
-.blur_os_x_content {
- overflow:auto;
- color: #222;
- font-family: Tahoma, Arial, sans-serif;
- font-size: 10px;
- background:#FFF;
-}
-.blur_os_x_s .status_bar {
- padding-bottom:24px;
-}
-
-/* FOR IE */
-* html .blur_os_x_nw {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TL.png", sizingMethod="crop");
-}
-
-* html .blur_os_x_n {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/T.png", sizingMethod="scale");
-}
-
-* html .blur_os_x_ne {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TR.png", sizingMethod="crop");
-}
-
-* html .blur_os_x_w {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/L.png", sizingMethod="scale");
-}
-
-* html .blur_os_x_e {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/R.png", sizingMethod="scale");
-}
-
-* html .blur_os_x_sw {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BL.png", sizingMethod="crop");
-}
-
-* html .blur_os_x_s {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/B.png", sizingMethod="scale");
-}
-
-* html .blur_os_x_se {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR.png", sizingMethod="crop");
-}
-
-* html .blur_os_x_sizer {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR.png", sizingMethod="crop");
-}
-
+/* Focused windows */
+.overlay_mac_os_x {
+ background-color: #85BBEF;
+ filter:alpha(opacity=60);
+ -moz-opacity: 0.6;
+ opacity: 0.6;
+}
+
+.mac_os_x_nw {
+ background: transparent url(mac_os_x/TL_Main.png) no-repeat 0 0;
+ width:24px;
+ height:30px;
+}
+
+.mac_os_x_n {
+ background: transparent url(mac_os_x/T_Main.png) repeat-x 0 0;
+ height:30px;
+}
+
+.mac_os_x_ne {
+ background: transparent url(mac_os_x/TR_Main.png) no-repeat 0 0;
+ width:31px;
+ height:30px;
+}
+
+.mac_os_x_w {
+ background: transparent url(mac_os_x/L_Main.png) repeat-y top left;
+ width:16px;
+}
+
+.mac_os_x_e {
+ background: transparent url(mac_os_x/R_Main.png) repeat-y top right;
+ width:16px;
+}
+
+.mac_os_x_sw {
+ background: transparent url(mac_os_x/BL_Main.png) no-repeat 0 0;
+ width:31px;
+ height:40px;
+}
+
+.mac_os_x_s {
+ background: transparent url(mac_os_x/B_Main.png) repeat-x 0 0;
+ height:40px;
+}
+
+.mac_os_x_se, .mac_os_x_sizer {
+ background: transparent url(mac_os_x/BR_Main.png) no-repeat 0 0;
+ width:31px;
+ height:40px;
+}
+
+.mac_os_x_sizer {
+ cursor:se-resize;
+}
+
+.mac_os_x_close {
+ width: 19px;
+ height: 19px;
+ background: transparent url(mac_os_x/close.gif) no-repeat 0 0;
+ position:absolute;
+ top:12px;
+ left:25px;
+ cursor:pointer;
+ z-index:1000;
+}
+
+.mac_os_x_minimize {
+ width: 19px;
+ height: 19px;
+ background: transparent url(mac_os_x/minimize.gif) no-repeat 0 0;
+ position:absolute;
+ top:12px;
+ left:45px;
+ cursor:pointer;
+ z-index:1000;
+}
+
+.mac_os_x_maximize {
+ width: 19px;
+ height: 19px;
+ background: transparent url(mac_os_x/maximize.gif) no-repeat 0 0;
+ position:absolute;
+ top:12px;
+ left:65px;
+ cursor:pointer;
+ z-index:1000;
+}
+
+.mac_os_x_title {
+ float:left;
+ height:14px;
+ font-family: Tahoma, Arial, sans-serif;
+ font-size:12px;
+ text-align:center;
+ margin-top:8px;
+ width:100%;
+ color:#000;
+}
+
+.mac_os_x_content {
+ overflow:auto;
+ color: #222;
+ font-family: Tahoma, Arial, sans-serif;
+ font-size: 10px;
+ background:#FFF;
+}
+.mac_os_x_s .status_bar {
+ padding-bottom:24px;
+}
+
+/* FOR IE */
+* html .mac_os_x_nw {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TL_Main.png", sizingMethod="crop");
+}
+
+* html .mac_os_x_n {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/T_Main.png", sizingMethod="scale");
+}
+
+* html .mac_os_x_ne {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TR_Main.png", sizingMethod="crop");
+}
+
+* html .mac_os_x_w {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/L_Main.png", sizingMethod="scale");
+}
+
+* html .mac_os_x_e {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/R_Main.png", sizingMethod="scale");
+}
+
+* html .mac_os_x_sw {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BL_Main.png", sizingMethod="crop");
+}
+
+* html .mac_os_x_s {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/B_Main.png", sizingMethod="scale");
+}
+
+* html .mac_os_x_se {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR_Main.png", sizingMethod="crop");
+}
+
+* html .mac_os_x_sizer {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR_Main.png", sizingMethod="crop");
+}
+
+
+/* Focused windows */
+.overlay_blur_os_x {
+ background-color: #85BBEF;
+ filter:alpha(opacity=60);
+ -moz-opacity: 0.6;
+ opacity: 0.6;
+}
+
+.blur_os_x_nw {
+ background: transparent url(mac_os_x/TL.png) no-repeat 0 0;
+ width:24px;
+ height:30px;
+}
+
+.blur_os_x_n {
+ background: transparent url(mac_os_x/T.png) repeat-x 0 0;
+ height:30px;
+}
+
+.blur_os_x_ne {
+ background: transparent url(mac_os_x/TR.png) no-repeat 0 0;
+ width:31px;
+ height:30px;
+}
+
+.blur_os_x_w {
+ background: transparent url(mac_os_x/L.png) repeat-y top left;
+ width:16px;
+}
+
+.blur_os_x_e {
+ background: transparent url(mac_os_x/R.png) repeat-y top right;
+ width:16px;
+}
+
+.blur_os_x_sw {
+ background: transparent url(mac_os_x/BL.png) no-repeat 0 0;
+ width:31px;
+ height:40px;
+}
+
+.blur_os_x_s {
+ background: transparent url(mac_os_x/B.png) repeat-x 0 0;
+ height:40px;
+}
+
+.blur_os_x_se, .blur_os_x_sizer {
+ background: transparent url(mac_os_x/BR.png) no-repeat 0 0;
+ width:31px;
+ height:40px;
+}
+
+.blur_os_x_sizer {
+ cursor:se-resize;
+}
+
+.blur_os_x_close {
+ width: 19px;
+ height: 19px;
+ background: transparent url(mac_os_x/close.gif) no-repeat 0 0;
+ position:absolute;
+ top:12px;
+ left:25px;
+ cursor:pointer;
+ z-index:1000;
+}
+
+.blur_os_x_minimize {
+ width: 19px;
+ height: 19px;
+ background: transparent url(mac_os_x/minimize.gif) no-repeat 0 0;
+ position:absolute;
+ top:12px;
+ left:45px;
+ cursor:pointer;
+ z-index:1000;
+}
+
+.blur_os_x_maximize {
+ width: 19px;
+ height: 19px;
+ background: transparent url(mac_os_x/maximize.gif) no-repeat 0 0;
+ position:absolute;
+ top:12px;
+ left:65px;
+ cursor:pointer;
+ z-index:1000;
+}
+
+.blur_os_x_title {
+ float:left;
+ height:14px;
+ font-family: Tahoma, Arial, sans-serif;
+ font-size:12px;
+ text-align:center;
+ margin-top:8px;
+ width:100%;
+ color:#000;
+}
+
+.blur_os_x_content {
+ overflow:auto;
+ color: #222;
+ font-family: Tahoma, Arial, sans-serif;
+ font-size: 10px;
+ background:#FFF;
+}
+.blur_os_x_s .status_bar {
+ padding-bottom:24px;
+}
+
+/* FOR IE */
+* html .blur_os_x_nw {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TL.png", sizingMethod="crop");
+}
+
+* html .blur_os_x_n {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/T.png", sizingMethod="scale");
+}
+
+* html .blur_os_x_ne {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/TR.png", sizingMethod="crop");
+}
+
+* html .blur_os_x_w {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/L.png", sizingMethod="scale");
+}
+
+* html .blur_os_x_e {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/R.png", sizingMethod="scale");
+}
+
+* html .blur_os_x_sw {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BL.png", sizingMethod="crop");
+}
+
+* html .blur_os_x_s {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/B.png", sizingMethod="scale");
+}
+
+* html .blur_os_x_se {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR.png", sizingMethod="crop");
+}
+
+* html .blur_os_x_sizer {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x/BR.png", sizingMethod="crop");
+}
+
diff --git a/public/plugin_assets/redmine_code_review/stylesheets/window_js/mac_os_x_dialog.css b/public/plugin_assets/redmine_code_review/stylesheets/window_js/mac_os_x_dialog.css
index e663e3c5e..4c89f602d 100644
--- a/public/plugin_assets/redmine_code_review/stylesheets/window_js/mac_os_x_dialog.css
+++ b/public/plugin_assets/redmine_code_review/stylesheets/window_js/mac_os_x_dialog.css
@@ -1,160 +1,160 @@
-.overlay_mac_os_x_dialog {
- background-color: #FF7224;
- filter:alpha(opacity=60);
- -moz-opacity: 0.6;
- opacity: 0.6;
-}
-
-.mac_os_x_dialog_nw {
- background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
- width:16px;
- height:16px;
-}
-
-.mac_os_x_dialog_n {
- background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
- height:18px;
-}
-
-.mac_os_x_dialog_ne {
- background: transparent url(mac_os_x_dialog/R.png) repeat-y top left;
- width:16px;
- height:16px;
-}
-
-.mac_os_x_dialog_w {
- background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
- width:16px;
-}
-
-.mac_os_x_dialog_e {
- background: transparent url(mac_os_x_dialog/R.png) repeat-y top right;
- width:16px;
-}
-
-.mac_os_x_dialog_sw {
- background: transparent url(mac_os_x_dialog/BL.png) no-repeat 0 0;
- width:31px;
- height:40px;
-}
-
-.mac_os_x_dialog_s {
- background: transparent url(mac_os_x_dialog/B.png) repeat-x 0 0;
- height:40px;
-}
-
-.mac_os_x_dialog_se, .mac_os_x_dialog_sizer {
- background: transparent url(mac_os_x_dialog/BR.png) no-repeat 0 0;
- width:31px;
- height:40px;
-}
-
-.mac_os_x_dialog_sizer {
- cursor:se-resize;
-}
-
-.mac_os_x_dialog_close {
- width: 19px;
- height: 19px;
- background: transparent url(mac_os_x_dialog/close.gif) no-repeat 0 0;
- position:absolute;
- top:12px;
- left:25px;
- cursor:pointer;
- z-index:1000;
-}
-
-.mac_os_x_dialog_minimize {
- width: 19px;
- height: 19px;
- background: transparent url(mac_os_x_dialog/minimize.gif) no-repeat 0 0;
- position:absolute;
- top:12px;
- left:45px;
- cursor:pointer;
- z-index:1000;
-}
-
-.mac_os_x_dialog_maximize {
- width: 19px;
- height: 19px;
- background: transparent url(mac_os_x_dialog/maximize.gif) no-repeat 0 0;
- position:absolute;
- top:12px;
- left:65px;
- cursor:pointer;
- z-index:1000;
-}
-
-.mac_os_x_dialog_title {
- float:left;
- height:14px;
- font-family: Tahoma, Arial, sans-serif;
- font-size:12px;
- text-align:center;
- margin-top:6px;
- width:100%;
- color:#000;
-}
-
-.mac_os_x_dialog_content {
- overflow:auto;
- color: #222;
- font-family: Tahoma, Arial, sans-serif;
- font-size: 10px;
- background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
-}
-
-.mac_os_x_dialog_buttons {
- text-align: center;
-}
-/* FOR IE */
-* html .mac_os_x_dialog_nw {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
-}
-
-
-* html .mac_os_x_dialog_ne {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
-}
-
-* html .mac_os_x_dialog_w {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
-}
-
-* html .mac_os_x_dialog_e {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
-}
-
-* html .mac_os_x_dialog_sw {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BL.png", sizingMethod="crop");
-}
-
-* html .mac_os_x_dialog_s {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/B.png", sizingMethod="scale");
-}
-
-* html .mac_os_x_dialog_se {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
-}
-
-* html .mac_os_x_dialog_sizer {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
-}
-
+.overlay_mac_os_x_dialog {
+ background-color: #FF7224;
+ filter:alpha(opacity=60);
+ -moz-opacity: 0.6;
+ opacity: 0.6;
+}
+
+.mac_os_x_dialog_nw {
+ background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
+ width:16px;
+ height:16px;
+}
+
+.mac_os_x_dialog_n {
+ background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
+ height:18px;
+}
+
+.mac_os_x_dialog_ne {
+ background: transparent url(mac_os_x_dialog/R.png) repeat-y top left;
+ width:16px;
+ height:16px;
+}
+
+.mac_os_x_dialog_w {
+ background: transparent url(mac_os_x_dialog/L.png) repeat-y top left;
+ width:16px;
+}
+
+.mac_os_x_dialog_e {
+ background: transparent url(mac_os_x_dialog/R.png) repeat-y top right;
+ width:16px;
+}
+
+.mac_os_x_dialog_sw {
+ background: transparent url(mac_os_x_dialog/BL.png) no-repeat 0 0;
+ width:31px;
+ height:40px;
+}
+
+.mac_os_x_dialog_s {
+ background: transparent url(mac_os_x_dialog/B.png) repeat-x 0 0;
+ height:40px;
+}
+
+.mac_os_x_dialog_se, .mac_os_x_dialog_sizer {
+ background: transparent url(mac_os_x_dialog/BR.png) no-repeat 0 0;
+ width:31px;
+ height:40px;
+}
+
+.mac_os_x_dialog_sizer {
+ cursor:se-resize;
+}
+
+.mac_os_x_dialog_close {
+ width: 19px;
+ height: 19px;
+ background: transparent url(mac_os_x_dialog/close.gif) no-repeat 0 0;
+ position:absolute;
+ top:12px;
+ left:25px;
+ cursor:pointer;
+ z-index:1000;
+}
+
+.mac_os_x_dialog_minimize {
+ width: 19px;
+ height: 19px;
+ background: transparent url(mac_os_x_dialog/minimize.gif) no-repeat 0 0;
+ position:absolute;
+ top:12px;
+ left:45px;
+ cursor:pointer;
+ z-index:1000;
+}
+
+.mac_os_x_dialog_maximize {
+ width: 19px;
+ height: 19px;
+ background: transparent url(mac_os_x_dialog/maximize.gif) no-repeat 0 0;
+ position:absolute;
+ top:12px;
+ left:65px;
+ cursor:pointer;
+ z-index:1000;
+}
+
+.mac_os_x_dialog_title {
+ float:left;
+ height:14px;
+ font-family: Tahoma, Arial, sans-serif;
+ font-size:12px;
+ text-align:center;
+ margin-top:6px;
+ width:100%;
+ color:#000;
+}
+
+.mac_os_x_dialog_content {
+ overflow:auto;
+ color: #222;
+ font-family: Tahoma, Arial, sans-serif;
+ font-size: 10px;
+ background: transparent url(mac_os_x_dialog/bg.gif) repeat 0 0;
+}
+
+.mac_os_x_dialog_buttons {
+ text-align: center;
+}
+/* FOR IE */
+* html .mac_os_x_dialog_nw {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
+}
+
+
+* html .mac_os_x_dialog_ne {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
+}
+
+* html .mac_os_x_dialog_w {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/L.png", sizingMethod="scale");
+}
+
+* html .mac_os_x_dialog_e {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/R.png", sizingMethod="scale");
+}
+
+* html .mac_os_x_dialog_sw {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BL.png", sizingMethod="crop");
+}
+
+* html .mac_os_x_dialog_s {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/B.png", sizingMethod="scale");
+}
+
+* html .mac_os_x_dialog_se {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
+}
+
+* html .mac_os_x_dialog_sizer {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/mac_os_x_dialog/BR.png", sizingMethod="crop");
+}
+
diff --git a/public/plugin_assets/redmine_code_review/stylesheets/window_js/nuncio.css b/public/plugin_assets/redmine_code_review/stylesheets/window_js/nuncio.css
index 2c439bd00..e2700e5b7 100644
--- a/public/plugin_assets/redmine_code_review/stylesheets/window_js/nuncio.css
+++ b/public/plugin_assets/redmine_code_review/stylesheets/window_js/nuncio.css
@@ -1,164 +1,164 @@
-.overlay_nuncio img { border: none; }
-
-.overlay_nuncio {
- background-color: #666666;
-}
-
-.nuncio_nw {
- width: 12px;
- height: 28px;
- background: url(nuncio/top_left.png) no-repeat;
-}
-
-.nuncio_n {
- background: url(nuncio/top_mid.png) repeat-x;
- height: 28px;
-}
-
-.nuncio_ne {
- width: 21px;
- height: 28px;
- background: url(nuncio/top_right.png) no-repeat;
-}
-
-.nuncio_e {
- width: 21px;
- background: url(nuncio/center_right.png) repeat-y top right;
-}
-
-.nuncio_w {
- width: 12px;
- background: url(nuncio/center_left.png) repeat-y top left;
-}
-
-.nuncio_sw {
- width: 12px;
- height: 18px;
- background: url(nuncio/bottom_left.png) no-repeat;
-}
-
-.nuncio_s {
- background: url(nuncio/bottom_mid.png) repeat-x 0 0;
- height: 18px;
-}
-
-.nuncio_se, .nuncio_sizer {
- width: 21px;
- height: 18px;
- background: url(nuncio/bottom_right.png) no-repeat;
-}
-
-.nuncio_close {
- width: 14px;
- height: 14px;
- background: url(nuncio/close.png) no-repeat;
- position:absolute;
- top:10px;
- right:22px;
- cursor:pointer;
- z-index:2000;
-}
-
-.nuncio_minimize {
- width: 14px;
- height: 15px;
- background: url(nuncio/minimize.png) no-repeat;
- position:absolute;
- top:10px;
- right:40px;
- cursor:pointer;
- z-index:2000;
-}
-
-.nuncio_title {
- float:left;
- font-size:11px;
- font-weight: bold;
- font-style: italic;
- color: #fff;
- width: 100%
-}
-
-.nuncio_content {
- background: url(nuncio/overlay.png) repeat;
- overflow:auto;
- color: #ddd;
- font-family: Tahoma, Arial, "sans-serif";
- font-size: 10px;
-}
-
-.nuncio_sizer {
- cursor:se-resize;
-}
-
-
-.top_draggable, .bottom_draggable {
- cursor:move
-}
-/* FOR IE */
-* html .nuncio_nw {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_left.png", sizingMethod="crop");
-}
-
-* html .nuncio_n {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_mid.png", sizingMethod="scale");
-}
-
-* html .nuncio_ne {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_right.png", sizingMethod="crop");
-}
-
-* html .nuncio_w {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_left.png", sizingMethod="scale");
-}
-
-* html .nuncio_e {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_right.png", sizingMethod="scale");
-}
-
-* html .nuncio_sw {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_left.png", sizingMethod="crop");
-}
-
-* html .nuncio_s {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_mid.png", sizingMethod="scale");
-}
-
-* html .nuncio_se {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
-}
-
-* html .nuncio_sizer {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
-}
-
-* html .nuncio_close {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/close.png", sizingMethod="crop");
-}
-
-* html .nuncio_minimize {
- background-color: transparent;
- background-image: none;
- filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/minimize.png", sizingMethod="crop");
-}
-
+.overlay_nuncio img { border: none; }
+
+.overlay_nuncio {
+ background-color: #666666;
+}
+
+.nuncio_nw {
+ width: 12px;
+ height: 28px;
+ background: url(nuncio/top_left.png) no-repeat;
+}
+
+.nuncio_n {
+ background: url(nuncio/top_mid.png) repeat-x;
+ height: 28px;
+}
+
+.nuncio_ne {
+ width: 21px;
+ height: 28px;
+ background: url(nuncio/top_right.png) no-repeat;
+}
+
+.nuncio_e {
+ width: 21px;
+ background: url(nuncio/center_right.png) repeat-y top right;
+}
+
+.nuncio_w {
+ width: 12px;
+ background: url(nuncio/center_left.png) repeat-y top left;
+}
+
+.nuncio_sw {
+ width: 12px;
+ height: 18px;
+ background: url(nuncio/bottom_left.png) no-repeat;
+}
+
+.nuncio_s {
+ background: url(nuncio/bottom_mid.png) repeat-x 0 0;
+ height: 18px;
+}
+
+.nuncio_se, .nuncio_sizer {
+ width: 21px;
+ height: 18px;
+ background: url(nuncio/bottom_right.png) no-repeat;
+}
+
+.nuncio_close {
+ width: 14px;
+ height: 14px;
+ background: url(nuncio/close.png) no-repeat;
+ position:absolute;
+ top:10px;
+ right:22px;
+ cursor:pointer;
+ z-index:2000;
+}
+
+.nuncio_minimize {
+ width: 14px;
+ height: 15px;
+ background: url(nuncio/minimize.png) no-repeat;
+ position:absolute;
+ top:10px;
+ right:40px;
+ cursor:pointer;
+ z-index:2000;
+}
+
+.nuncio_title {
+ float:left;
+ font-size:11px;
+ font-weight: bold;
+ font-style: italic;
+ color: #fff;
+ width: 100%
+}
+
+.nuncio_content {
+ background: url(nuncio/overlay.png) repeat;
+ overflow:auto;
+ color: #ddd;
+ font-family: Tahoma, Arial, "sans-serif";
+ font-size: 10px;
+}
+
+.nuncio_sizer {
+ cursor:se-resize;
+}
+
+
+.top_draggable, .bottom_draggable {
+ cursor:move
+}
+/* FOR IE */
+* html .nuncio_nw {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_left.png", sizingMethod="crop");
+}
+
+* html .nuncio_n {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_mid.png", sizingMethod="scale");
+}
+
+* html .nuncio_ne {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/top_right.png", sizingMethod="crop");
+}
+
+* html .nuncio_w {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_left.png", sizingMethod="scale");
+}
+
+* html .nuncio_e {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/center_right.png", sizingMethod="scale");
+}
+
+* html .nuncio_sw {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_left.png", sizingMethod="crop");
+}
+
+* html .nuncio_s {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_mid.png", sizingMethod="scale");
+}
+
+* html .nuncio_se {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
+}
+
+* html .nuncio_sizer {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/bottom_right.png", sizingMethod="crop");
+}
+
+* html .nuncio_close {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/close.png", sizingMethod="crop");
+}
+
+* html .nuncio_minimize {
+ background-color: transparent;
+ background-image: none;
+ filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="../themes/nuncio/minimize.png", sizingMethod="crop");
+}
+
diff --git a/public/plugin_assets/redmine_code_review/stylesheets/window_js/spread.css b/public/plugin_assets/redmine_code_review/stylesheets/window_js/spread.css
index 9bda2a68d..d7d722e8a 100644
--- a/public/plugin_assets/redmine_code_review/stylesheets/window_js/spread.css
+++ b/public/plugin_assets/redmine_code_review/stylesheets/window_js/spread.css
@@ -1,108 +1,108 @@
-.overlay_spread {
- background-color: #85BBEF;
- filter:alpha(opacity=60);
- -moz-opacity: 0.6;
- opacity: 0.6;
-}
-
-.spread_nw {
- background: transparent url(spread/left-top.gif) no-repeat 0 0;
- width:10px;
- height:25px;
-}
-
-.spread_n {
- background: transparent url(spread/top-middle.gif) repeat-x 0 0;
- height:25px;
-}
-
-.spread_ne {
- background: transparent url(spread/right-top.gif) no-repeat 0 0;
- width:10px;
- height:25px;
-}
-
-.spread_w {
- background: transparent url(spread/frame-left.gif) repeat-y top left;
- width:7px;
-}
-
-.spread_e {
- background: transparent url(spread/frame-right.gif) repeat-y top right;
- width:7px;
-}
-
-.spread_sw {
- background: transparent url(spread/bottom-left-c.gif) no-repeat 0 0;
- width:7px;
- height:7px;
-}
-
-.spread_s {
- background: transparent url(spread/bottom-middle.gif) repeat-x 0 0;
- height:7px;
-}
-
-.spread_se, .spread_sizer {
- background: transparent url(spread/bottom-right-c.gif) no-repeat 0 0;
- width:7px;
- height:7px;
-}
-
-.spread_sizer {
- cursor:se-resize;
-}
-
-.spread_close {
- width: 23px;
- height: 23px;
- background: transparent url(spread/button-close-focus.gif) no-repeat 0 0;
- position:absolute;
- top:0px;
- right:11px;
- cursor:pointer;
- z-index:1000;
-}
-
-.spread_minimize {
- width: 23px;
- height: 23px;
- background: transparent url(spread/button-min-focus.gif) no-repeat 0 0;
- position:absolute;
- top:0px;
- right:55px;
- cursor:pointer;
- z-index:1000;
-}
-
-.spread_maximize {
- width: 23px;
- height: 23px;
- background: transparent url(spread/button-max-focus.gif) no-repeat 0 0;
- position:absolute;
- top:0px;
- right:33px;
- cursor:pointer;
- z-index:1000;
-}
-
-.spread_title {
- float:left;
- height:14px;
- font-family: Tahoma, Arial, sans-serif;
- font-size:14px;
- font-weight:bold;
- text-align:left;
- margin-top:2px;
- width:100%;
- color:#E47211;
-}
-
-.spread_content {
- overflow:auto;
- color: #222;
- font-family: Tahoma, Arial, sans-serif;
- font-size: 10px;
- background:#A9EA00;
-}
-
+.overlay_spread {
+ background-color: #85BBEF;
+ filter:alpha(opacity=60);
+ -moz-opacity: 0.6;
+ opacity: 0.6;
+}
+
+.spread_nw {
+ background: transparent url(spread/left-top.gif) no-repeat 0 0;
+ width:10px;
+ height:25px;
+}
+
+.spread_n {
+ background: transparent url(spread/top-middle.gif) repeat-x 0 0;
+ height:25px;
+}
+
+.spread_ne {
+ background: transparent url(spread/right-top.gif) no-repeat 0 0;
+ width:10px;
+ height:25px;
+}
+
+.spread_w {
+ background: transparent url(spread/frame-left.gif) repeat-y top left;
+ width:7px;
+}
+
+.spread_e {
+ background: transparent url(spread/frame-right.gif) repeat-y top right;
+ width:7px;
+}
+
+.spread_sw {
+ background: transparent url(spread/bottom-left-c.gif) no-repeat 0 0;
+ width:7px;
+ height:7px;
+}
+
+.spread_s {
+ background: transparent url(spread/bottom-middle.gif) repeat-x 0 0;
+ height:7px;
+}
+
+.spread_se, .spread_sizer {
+ background: transparent url(spread/bottom-right-c.gif) no-repeat 0 0;
+ width:7px;
+ height:7px;
+}
+
+.spread_sizer {
+ cursor:se-resize;
+}
+
+.spread_close {
+ width: 23px;
+ height: 23px;
+ background: transparent url(spread/button-close-focus.gif) no-repeat 0 0;
+ position:absolute;
+ top:0px;
+ right:11px;
+ cursor:pointer;
+ z-index:1000;
+}
+
+.spread_minimize {
+ width: 23px;
+ height: 23px;
+ background: transparent url(spread/button-min-focus.gif) no-repeat 0 0;
+ position:absolute;
+ top:0px;
+ right:55px;
+ cursor:pointer;
+ z-index:1000;
+}
+
+.spread_maximize {
+ width: 23px;
+ height: 23px;
+ background: transparent url(spread/button-max-focus.gif) no-repeat 0 0;
+ position:absolute;
+ top:0px;
+ right:33px;
+ cursor:pointer;
+ z-index:1000;
+}
+
+.spread_title {
+ float:left;
+ height:14px;
+ font-family: Tahoma, Arial, sans-serif;
+ font-size:14px;
+ font-weight:bold;
+ text-align:left;
+ margin-top:2px;
+ width:100%;
+ color:#E47211;
+}
+
+.spread_content {
+ overflow:auto;
+ color: #222;
+ font-family: Tahoma, Arial, sans-serif;
+ font-size: 10px;
+ background:#A9EA00;
+}
+
diff --git a/public/stylesheets/css/edu-common.css b/public/stylesheets/css/edu-common.css
index dff21d46b..328628c0f 100644
--- a/public/stylesheets/css/edu-common.css
+++ b/public/stylesheets/css/edu-common.css
@@ -98,7 +98,7 @@ a:hover.link-color-grey03{color:#3498db!important;}
/*通用内外边距*/
.mt-10{ margin-top:-10px;}.mt2{ margin-top:2px;}.mt3{ margin-top:3px;}.mt5{ margin-top:5px;}.mt6{ margin-top:6px;}.mt7{ margin-top:7px;}.mt8{ margin-top:8px;}.mt10{ margin-top:10px;}.mt12{ margin-top:12px;}.mt15{ margin-top:15px;}.mt20{ margin-top:20px;}.mt25{ margin-top:25px;}.mt30{ margin-top:30px;}.mt50{ margin-top:50px;}
.mb5{ margin-bottom: 5px;}.mb10{ margin-bottom: 10px;}.mb15{ margin-bottom: 15px;}.mb20{ margin-bottom: 20px;}.mb25{ margin-bottom: 25px;}.mb30{ margin-bottom: 30px;}.mb40{ margin-bottom: 40px;}.mb50{ margin-bottom: 50px;}
-.ml-3{ margin-left: -3px;}.ml5{ margin-left: 5px;}.ml6{ margin-left: 6px;}.ml10{ margin-left: 10px;}.ml15{ margin-left: 15px;}.ml20{ margin-left: 20px;}.ml25{ margin-left: 25px;}.ml30{ margin-left: 30px;}.ml33{ margin-left: 33px;}.ml35{ margin-left:35px;}.ml40{margin-left:40px;}.ml42{margin-left:42px;}.ml50{ margin-left: 50px;}.ml75{ margin-left: 75px;}.ml95{ margin-left: 95px;}.ml115{margin-left: 115px}.ml230{ margin-left: 230px;}
+.ml-3{ margin-left: -3px;}.ml5{ margin-left: 5px;}.ml6{ margin-left: 6px;}.ml10{ margin-left: 10px;}.ml15{ margin-left: 15px;}.ml18{ margin-left: 18px;}.ml20{ margin-left: 20px;}.ml25{ margin-left: 25px;}.ml30{ margin-left: 30px;}.ml33{ margin-left: 33px;}.ml35{ margin-left:35px;}.ml40{margin-left:40px;}.ml42{margin-left:42px;}.ml50{ margin-left: 50px;}.ml75{ margin-left: 75px;}.ml95{ margin-left: 95px;}.ml115{margin-left: 115px}.ml230{ margin-left: 230px;}
.mr3{margin-right: 3px}.mr5{ margin-right: 5px;}.mr10{ margin-right: 10px;}.mr15{ margin-right: 15px;}.mr18{ margin-right: 18px;}.mr20{ margin-right: 20px;}.mr25{ margin-right: 25px;}.mr30{ margin-right:30px;}.mr40{margin-right:40px;}.mr50{ margin-right: 50px;}.mr60{ margin-right:60px;}
.pt5{ padding-top:5px;}.pt10{ padding-top:10px;}.pt15{ padding-top:15px;}.pt20{ padding-top:20px;}.pt30{ padding-top:30px;}.pt40{ padding-top:40px;}
.pb5{ padding-bottom:5px;}.pb10{ padding-bottom:10px;}.pb15{ padding-bottom:15px;}.pb20{ padding-bottom:20px;}.pb30{ padding-bottom:30px;}
From 76a3026f97528e7a1d3dc7afe65fb90b97cc4c0e Mon Sep 17 00:00:00 2001
From: miss <994230062@qq.com>
Date: Fri, 22 Sep 2017 14:47:53 +0800
Subject: [PATCH 04/23] =?UTF-8?q?step3=E5=AD=A6=E5=91=98=E7=BB=9F=E8=AE=A1?=
=?UTF-8?q?=E6=9D=BF=E5=9D=97=EF=BC=8C=E4=BA=8C=E6=AC=A1=E5=9B=9E=E5=A4=8D?=
=?UTF-8?q?=E7=9A=84=E6=8F=90=E7=A4=BA=EF=BC=8C=E4=BD=9C=E5=93=81=E9=A1=B5?=
=?UTF-8?q?=E6=A0=B7=E5=BC=8F=E7=9A=84=E8=B0=83=E6=95=B4=EF=BC=8C=E5=AE=9E?=
=?UTF-8?q?=E8=AE=ADtpm=E9=85=8D=E7=BD=AE=E9=A1=B5=E9=9D=A2=E4=B8=8A?=
=?UTF-8?q?=E8=BE=B9=E7=BA=BF=E6=B2=A1=E6=9C=89=E9=98=B4=E5=BD=B1=E3=80=82?=
=?UTF-8?q?=E6=88=91=E7=9A=84=E5=85=B3=E6=B3=A8=E4=BB=A5=E5=8F=8A=E6=88=91?=
=?UTF-8?q?=E7=9A=84=E7=B2=89=E4=B8=9D=E9=A1=B5=E9=9D=A2=E6=A0=B7=E5=BC=8F?=
=?UTF-8?q?=E5=8F=8Atip=E9=97=AE=E9=A2=98=EF=BC=8C=E7=BC=96=E8=BE=91?=
=?UTF-8?q?=E4=BD=9C=E4=B8=9A=E7=BB=99=E5=87=BA=E7=9A=84=E9=94=99=E8=AF=AF?=
=?UTF-8?q?=E6=8F=90=E7=A4=BA=E6=A1=86=E6=97=A0=E6=B3=95=E5=85=B3=E9=97=AD?=
=?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98=EF=BC=8C=E6=96=B0=E5=BB=BA=E4=BD=9C?=
=?UTF-8?q?=E4=B8=9A=E6=97=B6=E6=98=BE=E7=A4=BA=E7=9A=84=E4=B8=8B=E6=8B=89?=
=?UTF-8?q?=E5=88=97=E8=A1=A8=E7=9A=84=E6=96=87=E5=AD=97=E9=94=99=E4=B9=B1?=
=?UTF-8?q?=E9=97=AE=E9=A2=98=EF=BC=8C=E6=88=91=E7=9A=84=E9=A2=98=E5=BA=93?=
=?UTF-8?q?=E8=AF=A6=E6=83=85=E9=A1=B5=E9=9D=A2=E7=9A=84=E8=8F=9C=E5=8D=95?=
=?UTF-8?q?=E6=8C=89=E9=92=AE=E7=9A=84=E4=BD=8D=E7=BD=AE=E8=B0=83=E6=95=B4?=
=?UTF-8?q?=EF=BC=8C=E7=8F=AD=E7=BA=A7=E6=89=80=E6=9C=89=E9=A1=B5=E9=9D=A2?=
=?UTF-8?q?=E7=9A=84=E9=98=B4=E5=BD=B1=E8=83=8C=E6=99=AF=E8=89=B2=E7=9A=84?=
=?UTF-8?q?=E4=BF=AE=E6=94=B9=E3=80=82=E4=B8=AA=E4=BA=BA=E4=B8=BB=E9=A1=B5?=
=?UTF-8?q?=EF=BC=8C=E5=AE=9E=E8=AE=AD=EF=BC=8C=E8=AF=BE=E7=A8=8B=E7=9A=84?=
=?UTF-8?q?tab=E7=9A=84=E7=BB=9F=E4=B8=80=EF=BC=8C=E7=8F=AD=E7=BA=A7?=
=?UTF-8?q?=E6=88=90=E5=91=98=E7=AE=A1=E7=90=86=E7=9A=84tip=E5=87=BA?=
=?UTF-8?q?=E7=8E=B0=E6=9D=A1=E4=BB=B6=E4=BB=A5=E5=8F=8A=E5=87=BA=E7=8E=B0?=
=?UTF-8?q?=E4=BD=8D=E7=BD=AE=E7=9A=84=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Gemfile | 2 +-
app/controllers/shixuns_controller.rb | 10 +
app/models/myshixun.rb | 15 ++
app/views/courses/_courseList.html.erb | 13 +-
.../courses/settings/_all_teacher_list_ul.erb | 2 +-
app/views/games/_game_show.html.erb | 5 +-
.../games/_shixun_comment_block.html.erb | 4 +-
app/views/games/_shixun_comment_list.html.erb | 18 +-
.../_new_common_homework.html.erb | 6 +-
.../_new_group_homework.html.erb | 6 +-
.../_new_program_homework.html.erb | 6 +-
app/views/homework_bank/new.html.erb | 6 +
app/views/homework_bank/show.html.erb | 65 ++---
app/views/layouts/base_shixun.html.erb | 2 +-
app/views/shixuns/settings.html.erb | 4 +-
app/views/shixuns/statistics.html.erb | 5 +-
.../shixuns/statistics_students.html.erb | 232 ++++--------------
.../student_work/_student_work_score.html.erb | 2 +-
app/views/student_work/show.html.erb | 4 +-
app/views/users/_user_fans_or_watch.html.erb | 12 +-
app/views/users/user_fanslist.html.erb | 2 +-
app/views/users/user_watchlist.html.erb | 2 +-
public/javascripts/edu/application.js | 43 ++--
public/stylesheets/css/edu-class.css | 6 +-
public/stylesheets/css/edu-common.css | 9 +-
public/stylesheets/css/edu-subject.css | 2 +-
public/stylesheets/css/ketang.css | 2 +-
public/stylesheets/css/taskstyle.css | 10 +-
28 files changed, 201 insertions(+), 294 deletions(-)
diff --git a/Gemfile b/Gemfile
index 9ba9eafd7..711032123 100644
--- a/Gemfile
+++ b/Gemfile
@@ -14,7 +14,7 @@ unless RUBY_PLATFORM =~ /w32/
gem 'nokogiri'
end
-#gem 'simple_xlsx_reader'
+gem 'simple_xlsx_reader'
gem 'wechat',path: 'lib/wechat'
gem 'grack', path:'lib/grack'
gem 'gitlab', path: 'lib/gitlab-cli'
diff --git a/app/controllers/shixuns_controller.rb b/app/controllers/shixuns_controller.rb
index 48edf6bf8..d640d0d3b 100644
--- a/app/controllers/shixuns_controller.rb
+++ b/app/controllers/shixuns_controller.rb
@@ -16,8 +16,16 @@ class ShixunsController < ApplicationController
def statistics_students
+ @statistics = @shixun.myshixuns
+ @statistics_count = @statistics.count
+ @limit = 10
+ @is_remote = true
+ @statistic_pages = Paginator.new @statistics_count, @limit, params['page'] || 1
+ @offset ||= @statistic_pages.offset
+ @statistics = paginateHelper @statistics, @limit
end
+
# push代码的时候会触发gitlab hook
def ghook
shixun_modify_status_without_publish(@shixun, 1)
@@ -130,6 +138,8 @@ class ShixunsController < ApplicationController
@latest_myshixuns = myshixuns.order("created_at desc").limit(4)
end
+
+
def autocompletion
end
diff --git a/app/models/myshixun.rb b/app/models/myshixun.rb
index 3986aedd1..9e7e2a0aa 100644
--- a/app/models/myshixun.rb
+++ b/app/models/myshixun.rb
@@ -16,6 +16,12 @@ class Myshixun < ActiveRecord::Base
def current_stage
game = self.games.where(:status => 0).first
+ position = game.blank? ? games.count : game.challenge.try(:position)
+ return position
+ end
+
+ def current_stages
+ game = self.games.where(:status => 1).first
position = game.blank? ? 1 : game.challenge.try(:position)
return position
end
@@ -72,4 +78,13 @@ class Myshixun < ActiveRecord::Base
rescue ActiveRecord::RecordNotFound
render_404
end
+
+ def score
+ game = self.games.where(:status => [0, 1]).first
+ unless game.blank?
+ score = game.challenge.try(:score)
+ end
+ return score
+ end
+
end
diff --git a/app/views/courses/_courseList.html.erb b/app/views/courses/_courseList.html.erb
index d0b376b82..426e0e380 100644
--- a/app/views/courses/_courseList.html.erb
+++ b/app/views/courses/_courseList.html.erb
@@ -10,15 +10,9 @@
<% sy_author = User.find(sy.tea_id) %>
- <% if sy.name.length > 32 %>
-
+
<%= sy.name %>
- <% else %>
-
- <%= sy.name %>
-
- <% end %>
<%= link_to image_tag(url_to_avatar(sy_author), :width => "60", :height => "60", :class => "panel-warp-img mr10 fl", :alt => "用户"), user_path(sy_author), :target => '_blank' %>
@@ -71,11 +65,6 @@
<% end %>
\ No newline at end of file
diff --git a/app/views/games/_shixun_comment_block.html.erb b/app/views/games/_shixun_comment_block.html.erb
index 53fc4caaf..37dcd2b26 100644
--- a/app/views/games/_shixun_comment_block.html.erb
+++ b/app/views/games/_shixun_comment_block.html.erb
@@ -1,8 +1,10 @@
-
\ No newline at end of file
diff --git a/app/views/homework_bank/_new_common_homework.html.erb b/app/views/homework_bank/_new_common_homework.html.erb
index 76a35b57f..5612a30fa 100644
--- a/app/views/homework_bank/_new_common_homework.html.erb
+++ b/app/views/homework_bank/_new_common_homework.html.erb
@@ -2,7 +2,7 @@
<%= edit_mode ? '编辑' : '新建' %>普通作业
-
×
+
×
有
3 处问题导致无法保存
@@ -71,4 +71,6 @@
-
全部评阅(<%= @student_work_scores.count %>)
@@ -51,11 +51,11 @@评测历史
- <%= link_to "用户列表", users_managements_path %>
- <%= link_to "试用授权列表", users_trial_managements_path %>
-
+ - <%= link_to "自动授权列表", auto_users_trial_managements_path %>
diff --git a/app/views/managements/_audit_pro_authentication_list.html.erb b/app/views/managements/_audit_pro_authentication_list.html.erb index e9aba882b..792ad8512 100644 --- a/app/views/managements/_audit_pro_authentication_list.html.erb +++ b/app/views/managements/_audit_pro_authentication_list.html.erb @@ -18,6 +18,7 @@ <% if user.user_extensions && user.user_extensions.identity %> <% if user.user_extensions.identity == 1 && user.user_extensions.try(:student_id) %> + <%= "学生" %> <%= user.user_extensions.try(:student_id) %> <% else %> <%= user.user_extensions.try(:technical_title) %> diff --git a/app/views/managements/_auto_users_authorization_list.html.erb b/app/views/managements/_auto_users_authorization_list.html.erb index cacbc5f4e..07a340803 100644 --- a/app/views/managements/_auto_users_authorization_list.html.erb +++ b/app/views/managements/_auto_users_authorization_list.html.erb @@ -5,21 +5,32 @@+ <%= pagination_links_full @schools_pages, @schools_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true %> +
+ +提示
' + str + '
确定'+ From 9b42441e50a0be5c37838fa8342d105543edc6be Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 22 Sep 2017 18:47:05 +0800 Subject: [PATCH 09/23] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E5=88=A0=E9=99=A4=EF=BC=8C=E6=97=A0=E6=B3=95=E5=B1=80=E9=83=A8?= =?UTF-8?q?=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/discusses_controller.rb | 1 + app/views/discusses/destroy.js.erb | 2 +- app/views/games/_shixun_comment_list.html.erb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/discusses_controller.rb b/app/controllers/discusses_controller.rb index e99d7b374..37f3bb165 100644 --- a/app/controllers/discusses_controller.rb +++ b/app/controllers/discusses_controller.rb @@ -22,6 +22,7 @@ class DiscussesController < ApplicationController @shixun = @discuss.dis end @discuss.destroy + @game_challenge = Challenge.find(params[:challenge_id]) end end diff --git a/app/views/discusses/destroy.js.erb b/app/views/discusses/destroy.js.erb index 971d4cc8d..ee900a21a 100644 --- a/app/views/discusses/destroy.js.erb +++ b/app/views/discusses/destroy.js.erb @@ -1,3 +1,3 @@ <% if @shixun %> -$.get('<%= shixun_discuss_shixun_path(@shixun) %>'); +$.get('<%= shixun_discuss_shixun_path(@shixun, :challenge_id => @game_challenge.try(:id)) %>'); <% end %> \ No newline at end of file diff --git a/app/views/games/_shixun_comment_list.html.erb b/app/views/games/_shixun_comment_list.html.erb index 6c860bd8a..2707561a3 100644 --- a/app/views/games/_shixun_comment_list.html.erb +++ b/app/views/games/_shixun_comment_list.html.erb @@ -23,7 +23,7 @@ 回复 <% end %> <% if (User.current.manager_of_shixun?(@shixun) || User.current == dis.user) && dis.children.count == 0 %> - 删除 + 删除 <% end %> From 759cda61b93ca9bd5fe208357fa0adf8990ab205 Mon Sep 17 00:00:00 2001 From: huang