From 5a1090c0e178407a930b2dbc11473b23ca1c6a3f Mon Sep 17 00:00:00 2001 From: cxt Date: Fri, 1 Jul 2016 17:27:34 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/courses/new.html.erb | 2 +- app/views/courses/settings.html.erb | 4 ++-- app/views/layouts/_project_info.html.erb | 8 +++++--- app/views/layouts/_syllabus_base_info.html.erb | 2 +- app/views/layouts/base_tags.html.erb | 2 +- config/locales/commons/zh.yml | 2 +- public/stylesheets/syllabus.css | 2 +- 7 files changed, 12 insertions(+), 10 deletions(-) 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 %>