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

Add Following tab to the user profile view #1463

Merged
merged 8 commits into from
Nov 11, 2022

Conversation

wippo-devops
Copy link
Contributor

Closes #1447
All of these tasks should be done in the accounts app.

Description

Created a new view that shows followers of user (/profile//following). View shows clicable image icons of profile pictures of followers. If there are zero followers it shows message that no one is following.

I was thinking it might be good idea to add this to profile below the "About me" section, but it was not mentioned in the issue.

project/accounts/templates/accounts/user_civis.html Outdated Show resolved Hide resolved
project/accounts/views.py Outdated Show resolved Hide resolved
project/accounts/templates/accounts/user_civis.html Outdated Show resolved Hide resolved
project/accounts/templates/accounts/user_civis.html Outdated Show resolved Hide resolved
project/accounts/templates/accounts/user_civis.html Outdated Show resolved Hide resolved
project/accounts/templates/accounts/user_civis.html Outdated Show resolved Hide resolved
project/accounts/templates/accounts/user_civis.html Outdated Show resolved Hide resolved
@wippo-devops
Copy link
Contributor Author

Implemented the suggested changes in 2 commits. @brylie Could you please have a look?

project/accounts/views.py Outdated Show resolved Hide resolved
project/accounts/views.py Outdated Show resolved Hide resolved
@wippo-devops
Copy link
Contributor Author

@brylie I renamed the view accordingly to the comments above.

Copy link
Member

@brylie brylie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, this PR looks good. There is just a bit more ambiguity in how we use "following" and "followers" here that we need to iron out.

project/accounts/views.py Outdated Show resolved Hide resolved
project/accounts/views.py Outdated Show resolved Hide resolved
@codeclimate
Copy link

codeclimate bot commented Nov 9, 2022

Code Climate has analyzed commit 7396104 and detected 0 issues on this pull request.

View more on Code Climate.

@wippo-devops
Copy link
Contributor Author

I believe everything is ironed out now. @brylie asking again for review.

@brylie brylie merged commit b2a60ad into CiviWiki:develop Nov 11, 2022
@brylie
Copy link
Member

brylie commented Nov 11, 2022

@all-contributors please add @wippo-devops for code

@allcontributors
Copy link
Contributor

@brylie

I've put up a pull request to add @wippo-devops! 🎉

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

Successfully merging this pull request may close these issues.

Add "Following" tab to the user profile view
2 participants