Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Colour-coding of speakers by party #502

Open
michalskop opened this issue Sep 2, 2015 · 5 comments
Open

Colour-coding of speakers by party #502

michalskop opened this issue Sep 2, 2015 · 5 comments

Comments

@michalskop
Copy link

I am missing very much simple way how to colour code the speakers according their political party (instead of the current random colour around the photos). Or similarly, badges could be used for the same reason, etc.
It is important as most of the representatives are not so well known and if one wants to keep track on party positions in the debate than s/he has to have a list with the representatives open alongside and go back and forth all the time.
This would be the killer feature for me.

@dracos
Copy link
Member

dracos commented Sep 3, 2015

Thanks for the idea. I guess to do this we need the following:

  • The party data to be included in the imported data (preferably on_behalf_of_id of a membership, I think?);
  • A configuration option to say which type of membership you're interested in, though to start with could just include any it finds/ that you don't want per-speaker colouring;
  • When you're viewing a speech, fetch the memberships of someone at the right point in time;
  • Include that output in a CSS class, something like membership-[partyname] I guess, which you can then style however you want.

Would that work for you?

@michalskop
Copy link
Author

Sounds good.
I just have one comment (not sure about it): it may not be a membership, but rather an attribute: sometimes we may know the party list he run election on, but not the current membership (in a political group in a parliament, for example). This may be coded as "membership", but it is not a real one.

@johnfelipe
Copy link

http://concejodemedellin.felipeurrego.com, 80% is not member of council, then colour may be random or something

@johnfelipe
Copy link

any advance in here?

@johnfelipe
Copy link

hi again, any advance?

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

No branches or pull requests

3 participants