When activating showing results After voting has closed, it's kind of strange to see only the cancel button. We should display the voter's choice. It can be an option to display or not the voters choice...
Also, what is strange is that description of content appears under the voting choices. Should be the contrary by default...
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | decisions-HEAD-400020-4.patch | 2.42 KB | samuelsov |
| #1 | decisions-HEAD-400020-1.patch | 4.13 KB | samuelsov |
Comments
Comment #1
samuelsov commentedPatch for the weight problem...
Comment #2
anarcat commentedCommitted the weight patch. Agrees with the work needed on the form output. Keep them coming.
Comment #3
anarcat commentedOh and be more careful in not mixing whitespace changes and fixes. The patch should have been only:
Comment #4
samuelsov commentedPatch for adding a little message when the user can't see any results.
The next step will be to create a new hook like hook_decisions_view_own_result which display only the result for the current user but i'm not really sure how to do it for anonymous...
Comment #5
anarcat commentedIs calling
theme_decisions_view_own_resultdirectly the proper way? Seems to me that it bypasses the theme system completely.Also, the message is a bit confusing: it sounds as if we just recorded a vote whereas it may have been months ago. Something like "You have already voted on this issue" would be better.
As for displaying the results, rely on the VotingAPI, nothing more. See hook_decisions_view_results() for the way /all/ votes are displayed. We'll need to probably create a new hook that displays only /some/ or "your" votes.
Comment #6
anarcat commentedComment #7
anarcat commentedI committed the patch above, we still need to work on displaying what the user voted.