Skip to content

Commit

Permalink
Merge pull request #83 from rishijain/master
Browse files Browse the repository at this point in the history
fixed the count of users
  • Loading branch information
gautamrege committed Jun 22, 2012
2 parents cb9321c + 52dd0d1 commit cbd392c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/ideas/_idea.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
.floatLeft
%i.icon-user>
=# pluralize(idea.users.count, "participant")
= idea.users.count
%span{:id => "idea_count_#{idea.id}"} #{idea.users.count}
.floatRight
= tweet_button :via => "punerb",:count=> "none", :url => idea_url(idea), :text => "This is an interesting idea! Help out "

Expand Down
2 changes: 1 addition & 1 deletion app/views/ideas/participate.js.haml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$('#idea-#{@idea.id} .detail span:last').html("<i class='icon-user'></i> #{pluralize(@idea.users.count, 'participant')}")
$('#idea_count_#{@idea.id}').text("#{@idea.users.count}")
- if @participant
$('#idea-#{@idea.id} a.participate.btn').text('Participate')
$('#idea-#{@idea.id} a h2 i').removeClass('favorite')
Expand Down

0 comments on commit cbd392c

Please sign in to comment.