diff --git a/app/controllers/at_controller.rb b/app/controllers/at_controller.rb index 81d678261..9994e5a3c 100644 --- a/app/controllers/at_controller.rb +++ b/app/controllers/at_controller.rb @@ -29,7 +29,7 @@ class AtController < ApplicationController case type when "Issue" find_issue(id) - whne 'TrainingTask' + when 'TrainingTask' find_training_task(id) when 'Project' find_project(id) diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index a0fc10506..1e30e6618 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -4446,6 +4446,10 @@ class UsersController < ApplicationController format.html {render :layout => 'clear_base'} end end + # 邮件激活页面,用户修改邮件地址弹框 + def change_user_email + @user = User.find params[:id] + end private def show_system_message diff --git a/app/views/account/email_activation.html.erb b/app/views/account/email_activation.html.erb index 253867447..62f1e1fff 100644 --- a/app/views/account/email_activation.html.erb +++ b/app/views/account/email_activation.html.erb @@ -7,25 +7,26 @@

如果您尚未收到激活邮件,请按照以下步骤操作:

  • 检查邮箱的“订阅邮件”、“垃圾邮件”,可能会发现激活邮件。
  • 如果激活邮件已无效,请点击重新发送激活邮件按钮。
  • -
  • 如果重发注册验证邮箱邮件仍然没有收到,请更换邮箱地址,重新发送激活邮件
  • +
  • 如果重发注册验证邮箱邮件仍然没有收到,请更换邮箱地址,重新发送激活邮件
  • 如果您始终无法收到激活邮件,请直接给我们留言:
  • - <% get_memo %> - <%= form_for(@new_memo, :url => mail_feedback_forum_path(@public_forum, :user_id => @user.id), :remote => true) do |f| %> - <%= f.text_area :subject, :id => "subject", :class => "email_prompt_mes", :style => "width: 568px;", :placeholder => l(:label_email_feedback_tips) %> - <%= f.hidden_field :content, :id => 'hidden', :required => true , :value => l(:label_feedback_value) %> - - 确定 - <% end %> + +
    + +
    diff --git a/app/views/welcome/_search_course_results.html.erb b/app/views/welcome/_search_course_results.html.erb index dd4c9f405..770ec525e 100644 --- a/app/views/welcome/_search_course_results.html.erb +++ b/app/views/welcome/_search_course_results.html.erb @@ -11,7 +11,7 @@
    <%= image_tag("search_icon_03.png", :width=>"8", :height=>"16" ,:class=>"fl") %>班级
    -
  • <%= course.try(:highlight).try(:description) ? course.highlight.description[0].html_safe : (course.description.present? ? course.description : '暂时没有该班级描述') %>
  • +
  • <%= course.try(:highlight).try(:description) ? (h course.highlight.description[0].html_safe) : (course.description.present? ? (h course.description.html_safe) : '暂时没有该班级描述') %>
  • <% user = User.find(course.tea_id)%> 教师:<%= user.realname %> diff --git a/app/views/welcome/_search_project_results.html.erb b/app/views/welcome/_search_project_results.html.erb index 5775a939d..b63b6d9bb 100644 --- a/app/views/welcome/_search_project_results.html.erb +++ b/app/views/welcome/_search_project_results.html.erb @@ -11,7 +11,7 @@
    <%= image_tag("search_icon_03.png", :width=>"8", :height=>"16" ,:class=>"fl") %>项目
  • -
  • <%= project.try(:highlight).try(:description) ? project.highlight.description[0].html_safe : project.description%>
  • +
  • <%= project.try(:highlight).try(:description) ? (h project.highlight.description[0].html_safe) : (h project.description.html_safe) %>
  • 管理人员:<%= project.user_id ? User.find(project.user_id).login : '无' %>更新时间:<%= date_format_local( Project.find(project.id).updated_on) %>
  • diff --git a/config/routes.rb b/config/routes.rb index 4799da261..eeece5629 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -709,6 +709,7 @@ RedmineApp::Application.routes.draw do get 'user_import_resource' match 'watch_projects', :to => 'users#watch_projects', :via => :get get 'update_message_viewed' + get 'change_user_email' # # added by bai match 'show_score', :to => 'users#show_score', :via => :get diff --git a/public/assets/kindeditor/kindeditor.js b/public/assets/kindeditor/kindeditor.js index 8b3e66bab..c5f8cf99f 100644 --- a/public/assets/kindeditor/kindeditor.js +++ b/public/assets/kindeditor/kindeditor.js @@ -4795,7 +4795,8 @@ function _bindFocusEvent() { } }).blur(function(e) { if(self.isEmpty()) { - self.edit.html("" + self.placeholder + ""); + self.edit.html(self.placeholder); + // self.edit.html("" + self.placeholder + ""); } if (self.afterBlur) { self.afterBlur.call(self, e); diff --git a/public/images/user/female.jpg b/public/images/user/female.jpg index 499d2e5ac..3d6732929 100644 Binary files a/public/images/user/female.jpg and b/public/images/user/female.jpg differ diff --git a/public/images/user/male.jpg b/public/images/user/male.jpg index bd2597dd2..b60757382 100644 Binary files a/public/images/user/male.jpg and b/public/images/user/male.jpg differ diff --git a/public/stylesheets/css/structure.css b/public/stylesheets/css/structure.css index 4891d6416..70e12eec2 100644 --- a/public/stylesheets/css/structure.css +++ b/public/stylesheets/css/structure.css @@ -452,8 +452,8 @@ a.shadowbox_news_all{ display:block; width:305px; height:40px; line-height:40px; .user_leftinfo{ width:238px;border:1px solid #e5e5e5; background:#fff url(/images/user/user_bg_info.jpg) 0 0 no-repeat; position:relative; } a.user_leftinfo_img { display:block; width:80px; height:80px; margin:15px auto;} .user_leftinfo_img img{ width:74px; height:74px;-webkit-border-radius:50px;-moz-border-radius:50px;-o-border-radius:50px;border-radius:50px; border:3px solid #dcdcdc; } -.user_leftinfo_female{ display:block; width:20px; height:20px;background:url(/images/user/icons_user_leftnav.png) 5px -378px no-repeat; position:absolute; top:80px; left:160px;} -.user_leftinfo_male{ display:block; width:20px; height:20px;background:url(/images/user/icons_user_leftnav.png) -25px -378px no-repeat; position:absolute; top:80px; left:160px;} +.user_leftinfo_female{ display:block; width:20px; height:20px;background:url(/images/user/icons_user_leftnav.png) 5px -378px no-repeat;} +.user_leftinfo_male{ display:block; width:20px; height:20px;background:url(/images/user/icons_user_leftnav.png) -25px -378px no-repeat;} .user_leftinfo_namebox{ text-align:center; height:16px; line-height:16px; } .user_leftinfo_name{ display: inline-block; max-width:160px; font-size:14px; font-weight:bold; overflow:hidden;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; } .user_leftinfo_namebox a{ color: #333;} diff --git a/public/stylesheets/css/user.css b/public/stylesheets/css/user.css index d08aa1f0e..6eb9432b7 100644 --- a/public/stylesheets/css/user.css +++ b/public/stylesheets/css/user.css @@ -87,8 +87,8 @@ a:hover.pro_new_topbtn_left{background-image: linear-gradient(#ededed, #dddddd); .user_leftdata_background{ width:238px;border:1px solid #e5e5e5; background:#fff url(/images/user/user_bg_info2.jpg) 0 0 no-repeat; position:relative; } a.user_leftinfo_img { display:block; width:80px; height:80px; margin:15px auto;} .user_leftinfo_img img{ width:74px; height:74px;-webkit-border-radius:50px;-moz-border-radius:50px;-o-border-radius:50px;border-radius:50px; border:3px solid #dcdcdc; } -.user_leftinfo_female{ display:block; width:20px; height:20px;background:url(/images/user/icons_user_leftnav.png) 5px -378px no-repeat; position:absolute; top:80px; left:160px;} -.user_leftinfo_male{ display:block; width:20px; height:20px;background:url(/images/user/icons_user_leftnav.png) -25px -378px no-repeat; position:absolute; top:80px; left:160px;} +.user_leftinfo_female{ display:block; width:20px; height:20px;background:url(/images/user/icons_user_leftnav.png) 5px -378px no-repeat;} +.user_leftinfo_male{ display:block; width:20px; height:20px;background:url(/images/user/icons_user_leftnav.png) -25px -378px no-repeat;} .user_leftinfo_namebox{ text-align:center; height:16px; line-height:16px; } .user_leftinfo_name{ display: inline-block; max-width:160px; font-size:14px; font-weight:bold; overflow:hidden;overflow:hidden;text-overflow:ellipsis;white-space:nowrap; } .user_cirbtn_yellow{ color:#fff; background:#ffb400; padding:0 5px;-webkit-border-radius:10px;-moz-border-radius:10px;-o-border-radius:10px;border-radius:10px; line-height:16px; } @@ -179,3 +179,16 @@ a.user_navmorebox .user_icons_closeclass{display:block;position: absolute;top:5p .homepageTabPollTitle { max-width:490px;white-space: nowrap;overflow: hidden;text-overflow: ellipsis;} .homepageTabAvatar img{border: 3px solid #fff;-webkit-border-radius:30px;-moz-border-radius:30px;-o-border-radius:30px;border-radius:30px;} .homepageTabAvatar img:hover{border: 3px solid #e6e6e6;} +/* 新版个人主页左侧信息170214byLB */ +.home-user-new-img{ width: 238px; height: 200px; border-radius:5px;border: 1px solid #ddd;} +.home-user-new-img img{border-radius:5px;} +.home-user-newinfo-box{ width: 218px; padding:10px; border: 1px solid #e5e5e5; background:#fff;} +.issues_nav_tag{ background-color:#eaeaea; padding:2px 8px;border-radius:15px; font-size:12px; display: inline-block; color: #666;} +.home-user-newinfo-ul li{ height: 40px;} +.border-line{ width:100%; display: block; border-top: 1px solid #e5e5e5;} +a.home-btn-grey{ display:inline-block; width:100px; height: 28px; line-height:28px; font-size: 14px; color: #666; text-align: center; background:#fff; border:1px solid #e5e5e5; border-radius:5px; } +a:hover.home-btn-grey{ background:#f0f0f0;} +a.home-big-btn-grey{ display:inline-block; width:212px; height: 28px; line-height:28px; font-size: 14px; color: #666; text-align: center; background:#fff; border:1px solid #e5e5e5; border-radius:5px; } +a:hover.home-big-btn-grey{ background:#f0f0f0;} + +.home-user-footerinfo li{ height: 24px; color: #888; }