Similar than the "Show individual votes" checkbox on the node's "Decision settings" there should be an option to display WHO has voted (but not what each person voted for), along with the absolute number (eg. 15 out of 100 eligible voters) and relative percentage (eg. 15 % of eligible voters), as known from real-life political elections that everybody knows.

Comments

bryancasler’s picture

I could very much use this, what would it take to get the ball rolling on this request?

anarcat’s picture

Simply put, we need a patch here.

bryancasler’s picture

Hi anarcat, The non-profit I work for is interested in sponsoring this. Since you're the maintainer I'd like to offer this work to you first. If you are not available for the work I'd appreciate it if you could suggest someone else who is familiar with the module.

anarcat’s picture

Hi!

I'll reply to both requests at the same time with a short: yes of course! :) As I answered through email, Koumbit is available to answer your needs if your so require. Have you received that email? Otherwise we can continue the conversation personnally.

bryancasler’s picture

Lets continue this conversation via email. If my org ends up sponsoring this we'll post the results.

btmash’s picture

I wrote out a small modification that appends whether the user has voted or not to the electoral list page. This was around line 445 (look for while ($voter = db_fetch_object($result)) { - I am writing out the whole portion.

    while ($voter = db_fetch_object($result)) {
      $temp = array(theme('username', $voter));
      $temp[] = (decisions_get_vote($node->nid, $voter->uid)) ? t('Already voted.') : t('Has not voted.');

      if (user_access('administer decisions')) {
        $temp[] = l(t('remove'), 'node/'. $node->nid .'/remove/'. $voter->uid);
      }

      $eligible_voters[] = $temp;
    }
roball’s picture

Seems to look good. I think if you attach this as a patch against the current CVS version, then the maintainers might commit it, so this feature would be officially available.

mvc’s picture

This looks like a good start, although a patch would also need to include the ability to turn this display on or off.

btmash’s picture

Component: Code » Code - Base Decisions module
Status: Active » Fixed

Seems like this made it into decisions 1.7. Marking as fixed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.