From ce792f6ce84a46f77e2f3aa73c3d8fad1b3af857 Mon Sep 17 00:00:00 2001 From: huang Date: Sat, 7 Mar 2015 09:32:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=82=AE=E4=BB=B6=E5=8F=91?= =?UTF-8?q?=E9=80=81=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/projects_controller.rb | 5 +- app/helpers/watchers_helper.rb | 4 +- app/views/layouts/base_projects.html.erb | 4 +- app/views/projects/invite_members.html.erb | 67 ++++++++++++++++++++++ config/routes.rb | 1 + public/stylesheets/application.css | 2 +- 6 files changed, 74 insertions(+), 9 deletions(-) create mode 100644 app/views/projects/invite_members.html.erb diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 41b9201ba..7e549509b 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -339,11 +339,8 @@ class ProjectsController < ApplicationController end # 邀请Trustie注册用户 - def invite_members_had_loged + def invite_members @member ||= @project.members.new - respond_to do |format| - format.js - end end def edit diff --git a/app/helpers/watchers_helper.rb b/app/helpers/watchers_helper.rb index f47ced545..971bf603d 100644 --- a/app/helpers/watchers_helper.rb +++ b/app/helpers/watchers_helper.rb @@ -31,7 +31,7 @@ module WatchersHelper watched = objects.any? {|object| object.watched_by?(user)} @watch_flag = (objects.first.instance_of?(User) or objects.first.instance_of?(Project) or objects.first.instance_of?(Contest) or (objects.first.instance_of?(Bid))) - css = @watch_flag ? ([watcher_css(objects), watched ? 'icon ' : 'icon '].join(' ') << options[0].to_s) : + css = @watch_flag ? ([watcher_css(objects), watched ? 'icon ' : 'icon '].join(' ') << options[0].to_s) : ([watcher_css(objects), watched ? 'icon icon-fav ' : 'icon icon-fav-off '].join(' ') << options[0].to_s) text = @watch_flag ? @@ -283,6 +283,6 @@ module WatchersHelper def exit_project_link(project) link_to(l(:label_exit_project),exit_cur_project_path(project.id), - :remote => true, :confirm => l(:lable_sure_exit_project), :style => "color: #fff; display:block; padding: 0px 5px;margin-right:10px;height:20px;text-aligh:center;" ) + :remote => true, :confirm => l(:lable_sure_exit_project), :style => "color: #fff; display:block; padding: 0px 5px;margin-right:10px;height:22px;background:none repeat scroll 0% 0% #64BDD9;TES" ) end end diff --git a/app/views/layouts/base_projects.html.erb b/app/views/layouts/base_projects.html.erb index f7e4a2132..40f13a2f8 100644 --- a/app/views/layouts/base_projects.html.erb +++ b/app/views/layouts/base_projects.html.erb @@ -129,8 +129,8 @@