From aeaa212c354be6abda24df8f3f5499933174dc48 Mon Sep 17 00:00:00 2001 From: z9hang Date: Sun, 2 Nov 2014 11:17:39 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E5=88=86=E6=8E=A7=E4=BB=B6=E4=B8=8D?= =?UTF-8?q?=E8=83=BD=E7=94=A8=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/homework_attach/_evaluation.html.erb | 2 +- app/views/homework_attach/_show.html.erb | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/homework_attach/_evaluation.html.erb b/app/views/homework_attach/_evaluation.html.erb index c92f84e42..3d50bd6e3 100644 --- a/app/views/homework_attach/_evaluation.html.erb +++ b/app/views/homework_attach/_evaluation.html.erb @@ -1,4 +1,4 @@
评分: <%= rating_for homework, dimension: :quality, class: 'rateable div_inline' %> - + (您可以对作业进行多次评价,以最后一次评价为最终结果)
\ No newline at end of file diff --git a/app/views/homework_attach/_show.html.erb b/app/views/homework_attach/_show.html.erb index 620a29936..c432d4f3f 100644 --- a/app/views/homework_attach/_show.html.erb +++ b/app/views/homework_attach/_show.html.erb @@ -8,6 +8,7 @@ //如果要做成点击后再转到请将
  • 中的onmouseover 改成 onclick; //]]> +<%= javascript_include_tag 'seems_rateable/jRating', 'seems_rateable/rateable'%>

    <%= @homework.name %>

    @@ -48,7 +49,7 @@

    - 评分: + <%= l(:label_work_rating) %>: <%= rating_for @homework, dimension: :quality, class: 'rateable div_inline' %>