diff --git a/app/controllers/courses_controller.rb b/app/controllers/courses_controller.rb index 3981c5b6b..5381e8757 100644 --- a/app/controllers/courses_controller.rb +++ b/app/controllers/courses_controller.rb @@ -271,8 +271,7 @@ class CoursesController < ApplicationController @issue_custom_fields = IssueCustomField.sorted.all @trackers = Tracker.sorted.all - if User.current.user_extensions.identity == 0 - if @course.save + if @course.save #unless User.current.admin? r = Role.givable.find_by_id(Setting.new_project_user_role_id.to_i) || Role.givable.first m = Member.new(:user => User.current, :roles => [r]) @@ -298,15 +297,13 @@ class CoursesController < ApplicationController } format.api { render :action => 'show', :status => :created, :location => url_for(:controller => 'courses', :action => 'show', :id => @course.id) } end - else + else #@course.destroy respond_to do |format| format.html { render :action => 'new', :layout => 'base' } #Added by young format.api { render_validation_errors(@course) } end - end - end - + end end def course diff --git a/app/views/courses/_course_ad.html.erb b/app/views/courses/_course_ad.html.erb index 8df3c3c31..10a6d7eaf 100644 --- a/app/views/courses/_course_ad.html.erb +++ b/app/views/courses/_course_ad.html.erb @@ -1,26 +1,36 @@ -
- +
+
- + - - + + + + +
- 联系我们 + + <%= l(:label_contact_us) %>

<%= l(:label_course_ad_description) %>

- QQ:1234566
+
+ <%= l(:label_course_adcolick) %>黄井泉
- Email:1234566@qq.com
+
+ Tel:15388083362
+
+ <%= l(:label_course_adcolick) %>王林春
+
+ Tel:13467631747