Skip to content

Fix/poll count#227

Open
SrinandhiniM wants to merge 5 commits into
masterfrom
fix/poll-count
Open

Fix/poll count#227
SrinandhiniM wants to merge 5 commits into
masterfrom
fix/poll-count

Conversation

@SrinandhiniM

Copy link
Copy Markdown
Collaborator
  • Counts the total number of votes answered for the poll question.
  • Counts the vote of options posted for the poll question.
  • Designs are added for displaying the counts of Poll Answers.

Comment on lines +8 to +12
<p class="<%= poll_option_design(post.option1) %>"><b><%= poll_option_count(post.option1)%></b><%=" "%><%= post.option1%></p>
<p class="<%= poll_option_design(post.option2) %>"><b><%= poll_option_count(post.option2)%></b><%=" "%><%= post.option2%></p>
<p class="<%= poll_option_design(post.option3) %>"><b><%= poll_option_count(post.option3)%></b><%=" "%><%= post.option3%></p>
<p class="<%= poll_option_design(post.option4) %>"><b><%= poll_option_count(post.option4)%></b><%=" "%><%= post.option4%></p>
</div>

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

can you refactor this code please? all the lines are duplicated @SrinandhiniM

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Code refactored now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants