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

Create a view to show binary take feed posts #110

Closed
jifonthespoon opened this issue Feb 20, 2025 · 0 comments
Closed

Create a view to show binary take feed posts #110

jifonthespoon opened this issue Feb 20, 2025 · 0 comments
Assignees

Comments

@jifonthespoon
Copy link
Contributor

jifonthespoon commented Feb 20, 2025

Create a new View in the Feed/Views called BinaryFeedPost. Implement the below screenshot:

Image

There will be one instance variable of type BinaryPost. You should get the tags from the categories, the username from the username attribute, the profile photo from the profilePhoto attribute, the question will be from the question attribute, the response options will be from responseOption1 & responseOption2, the time since posting will be from the postDateAndTime (with a function called on it to convert it to "2d ago" - this function is not implemented yet, just put the full date on the view for now), and number of votes is a sum of responseResult1 & responseResult2.

Here is example code of how to display the profile photo. Instead of a rectangle if the profilePhoto string is empty, do a system image with a generic Person icon.

Image
@jifonthespoon jifonthespoon changed the title Create binary take feed post Create a view to show binary take feed posts Feb 20, 2025
@HawthorneB HawthorneB self-assigned this Feb 27, 2025
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

2 participants