Skip to content

Commit

Permalink
fix add score for plan
Browse files Browse the repository at this point in the history
  • Loading branch information
irivertime committed Mar 25, 2015
1 parent d66a24b commit e780985
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
config/database.yml
coverage/
dump.rdb
pubnub.log
6 changes: 6 additions & 0 deletions app/helpers/journal_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit e780985

Please sign in to comment.