Adddd conditional css class to upvote arrow
- CSS class will determine whether the upvote arrow css styling will be disabled
- This logic is determined by whether or not the user is signed in and/or already voted
Create upvotedClass function in postItem
- upvotedClass function checks the users Id to see if the user is logged in
- the function also checks to see if the user has already voted on the post
- if the user is logged in and hasn't voted on the post, then the button is votable
- otherwise the button will display the disabled css styling
Change upvote to upvotable
- Change template event listener name from upvote to upvotable
- This is because I am changing the class from .upvote to .upvotable
Merge pull request #39 from alexanderdavidpan/Grey_Out_Link_When_Not_Logged_In_And_Already_Voted

Grey out link when not logged in and already voted