diff --git a/app/views/courses/new.html.erb b/app/views/courses/new.html.erb index 7a14fd572..9012daaab 100644 --- a/app/views/courses/new.html.erb +++ b/app/views/courses/new.html.erb @@ -12,7 +12,7 @@ <%=@syllabus.title %> <% end %> - +
  • diff --git a/app/views/courses/settings.html.erb b/app/views/courses/settings.html.erb index cee69fd75..903d01f8a 100644 --- a/app/views/courses/settings.html.erb +++ b/app/views/courses/settings.html.erb @@ -31,8 +31,8 @@
  • - <%= select_tag :syllabus_id,options_for_select(syllabus_option,@course.syllabus_id), {:id=>"edit_syllabus_id", :class=>"syllabus_input"} %> - + <%= select_tag :syllabus_id,options_for_select(syllabus_option,@course.syllabus_id), {:id=>"edit_syllabus_id", :class=>"syllabus_input", :style=>'width:280px'} %> +
  • diff --git a/app/views/layouts/_project_info.html.erb b/app/views/layouts/_project_info.html.erb index 1c0a2ac08..85f02310d 100644 --- a/app/views/layouts/_project_info.html.erb +++ b/app/views/layouts/_project_info.html.erb @@ -9,14 +9,16 @@ <%= image_tag(url_to_avatar(@course), :width => "60", :height => "60") %>
    - <%=@course.is_public == 0 ? '(私有)' : '(公开)' %> -
    -
    <% if @course.syllabus%> <% end %> +
    + + <%=@course.is_public == 0 ? '(私有)' : '(公开)' %> +
    +
    <% if is_excellent_course(@course) %> 精品课程 <% end %> diff --git a/app/views/layouts/_syllabus_base_info.html.erb b/app/views/layouts/_syllabus_base_info.html.erb index f545df2d4..cf4926d82 100644 --- a/app/views/layouts/_syllabus_base_info.html.erb +++ b/app/views/layouts/_syllabus_base_info.html.erb @@ -48,7 +48,7 @@
  • <% end %> -<% if User.current.logged? && (User.current == syllabus.user || User.current.admin?) %> +<% if User.current.logged? && (User.current == syllabus.user || User.current.admin?)&&(syllabus.syllabus_type.nil? || syllabus.syllabus_type == ''||syllabus.credit.nil? || syllabus.credit == ''||syllabus.hours.nil? || syllabus.hours == ''||syllabus.theory_hours.nil? || syllabus.theory_hours == ''||syllabus.practice_hours.nil? || syllabus.practice_hours == ''||syllabus.applicable_major.nil? || syllabus.applicable_major == ''||syllabus.pre_course.nil? || syllabus.pre_course == '')%> <% end %>