部分界面优化

This commit is contained in:
nwb 2014-06-26 11:15:06 +08:00
parent f4aa817f42
commit b4af75f289
3 changed files with 3 additions and 2 deletions

View File

@ -34,7 +34,7 @@ class Course < ActiveRecord::Base
:delete_permission => :manage_files
validates_presence_of :password, :term
validates_format_of :class_period, :message => l(:error_class_period_only_num), :with =>/^[1-9]\d*$/
validates_format_of :class_period, :with =>/^[1-9]\d*$/
after_save :create_board_sync
before_destroy :delete_all_members

View File

@ -76,7 +76,7 @@
<%= stylesheet_link_tag 'scm' %>
<% end %>
<% html_title(l(:label_news_plural)) -%>
<% html_title(l(:label_course_news)) -%>
</div>
<script type='text/javascript'>

View File

@ -282,6 +282,7 @@ zh:
field_role: 角色
field_homepage: 主页
field_time: 课时
field_class_period: 学时
field_code: 学分
field_is_public: 公开
field_parent: 上级项目