gdoteof / election

drupal election module
3 stars 1 forks source link

Distinguish Between Elections and Referendums #11

Closed bradley-holt closed 12 years ago

bradley-holt commented 12 years ago

Description

We need to be able to distinguish between elections and referendums.

Steps to Reproduce

curl 'https://example.org/town-meeting-season-2011/city-of-burlington/burlington-school-budget' \
-H 'Accept: application/json'

Actual Results

{
   "title":null,
   …
   "tags":null,
   …
}

Expected Results

{
   "title":null,
   …
   "tags":[
      "Referendum"
   ],
   …
}

Additional Comments

In HTML, the same element containing the ballot-item class (currently the body) should also have a class of referendum (or a class of election for elections, of course).

gdoteof commented 12 years ago

This was broken for summed results only I believe. fixed in 940bba3

bradley-holt commented 12 years ago

Looks good to me, thanks!