Skip to content

New badges#4033

Merged
josepjaume merged 4 commits intomasterfrom
add_badges
Aug 28, 2018
Merged

New badges#4033
josepjaume merged 4 commits intomasterfrom
add_badges

Conversation

@josepjaume
Copy link
Copy Markdown
Contributor

@josepjaume josepjaume commented Aug 27, 2018

🎩 What? Why?

Adds new badges for the gamification feature:

  • Accepted proposals
  • Invitations
  • Published initiatives
  • Proposal supports

📌 Related Issues

📋 Subtasks

  • Add CHANGELOG entry
  • Add tests

📷 Screenshots (optional)

image

@ghost ghost assigned josepjaume Aug 27, 2018
@ghost ghost added the status: WIP label Aug 27, 2018
@josepjaume josepjaume force-pushed the add_badges branch 2 times, most recently from ce21b18 to 7a35372 Compare August 27, 2018 15:01
@josepjaume josepjaume changed the title Add badges New badges Aug 27, 2018

vote.save!

Decidim::Gamification.increment_score(@current_user, :proposal_votes) if @proposal.votes.where(author: @current_user).count == 1
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do you need to check this?

@ghost ghost added the status: WIP label Aug 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants