From e78098514a2763b3e58418c7b34dfa4d36d505a6 Mon Sep 17 00:00:00 2001 From: irivertime Date: Wed, 25 Mar 2015 20:36:59 +0300 Subject: [PATCH] fix add score for plan --- .gitignore | 1 + app/helpers/journal_helper.rb | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/.gitignore b/.gitignore index 844ede5b..5549e34d 100644 --- a/.gitignore +++ b/.gitignore @@ -19,3 +19,4 @@ config/database.yml coverage/ dump.rdb +pubnub.log \ No newline at end of file diff --git a/app/helpers/journal_helper.rb b/app/helpers/journal_helper.rb index a559e72f..3572b939 100644 --- a/app/helpers/journal_helper.rb +++ b/app/helpers/journal_helper.rb @@ -176,6 +176,12 @@ def journal_parser(j, project) "добавил(а) комментарий '#{j.body}...' к вашему проекту "+ link_to(j.body2, "/project/#{project}/plan/posts/#{j.first_id}?viewed=true&req_comment=#{j.second_id}#comment_#{j.second_id}") when 'reply_plan_comment' "добавил(а) комментарий '#{j.body}...' в ответ на ваш "+ link_to(j.body2, "/project/#{project}/plan/posts/#{j.first_id}?viewed=true&req_comment=#{j.second_id}#comment_#{j.second_id}") + + when 'my_add_score_plan' + "вы получили #{j.body} баллов за проект "+ link_to(j.body2, "/project/#{project}/plan/posts/#{j.first_id}?viewed=true") + when 'add_score_plan' + 'получил(а) '+j.body+' баллов за проект '+ link_to(j.body2, "/project/#{project}/plan/posts/#{j.first_id}?viewed=true") + when 'my_plan_note' "добавил(а) замечание '#{j.body}...' к вашему проекту "+ link_to(j.body2, "/project/#{project}/plan/posts/#{j.first_id}?viewed=true") when 'plan_comment_discuss_status'