diff --git a/app/views/courses/_course_form.html.erb b/app/views/courses/_course_form.html.erb index 036ce2912..1b1c86b64 100644 --- a/app/views/courses/_course_form.html.erb +++ b/app/views/courses/_course_form.html.erb @@ -41,7 +41,7 @@ <%= l(:label_class_period) %> *   - <%= text_field_tag :class_period, @course.class_period, :placeholder => "在此输入课时", :maxlength => 5 %> + <%= text_field_tag :class_period, @course.class_period, :placeholder => "#{l(:lable_input_class)}", :maxlength => 5 %>  <%= l(:label_class_hour) %> @@ -56,7 +56,7 @@ <%= l(:label_class_period) %> *   - <%= text_field_tag :class_period, nil, :placeholder => "在此输入课时", :maxlength => 5 %> + <%= text_field_tag :class_period, nil, :placeholder => "#{l(:lable_input_class)}", :maxlength => 5 %> <%= l(:label_class_hour) %> diff --git a/app/views/messages/_project_show.html.erb b/app/views/messages/_project_show.html.erb index ad55e9be7..028be4b83 100644 --- a/app/views/messages/_project_show.html.erb +++ b/app/views/messages/_project_show.html.erb @@ -96,11 +96,11 @@

-
+
<% if @project %> - <%= label_tag l(:field_subject) %>: <%= link_to @topic.subject.truncate(29, omission: '...'), project_boards_path(@topic.project),title: @topic.subject.to_s %> + <%= label_tag l(:field_subject) %>: <%= link_to @topic.subject, project_boards_path(@topic.project),title: @topic.subject.to_s %> <% elsif @course %> - <%= label_tag l(:field_subject) %>: <%= link_to @topic.subject.truncate(29,omission:'...'), course_boards_path(@topic.course),title: @topic.subject.to_s %> + <%= label_tag l(:field_subject) %>: <%= link_to @topic.subject, course_boards_path(@topic.course),title: @topic.subject.to_s %> <% end %>
diff --git a/config/locales/zh.yml b/config/locales/zh.yml index aeaa344e9..7ddff7d04 100644 --- a/config/locales/zh.yml +++ b/config/locales/zh.yml @@ -2143,3 +2143,5 @@ zh: lable_bar_active: 贴吧动态 lable_student_list_visable: 学生列表是否公开 lable_sure_exit_project: 是否确认退出该项目 + lable_input_class: 在此输入课时 + lable_input_class_vilidate: 学时只能为整数