This PR adds a basic layout to display the user's profile information in the profile.html template. Currently, the template only displays the username and posts of the user. With this PR, additional user information such as email, date joined, and number of posts will be displayed.
Summary of Changes
Added a new section in the profile.html template to display additional user information.
Displayed the user's email using the user.email variable.
Displayed the date the user joined using the user.date_joined variable.
Displayed the number of posts the user has made using the len(user.posts) function.
Please review and merge this PR. Thank you!
Fixes #48.
To checkout this PR branch, run the following command in your terminal:
git checkout sweep/create-profile-template_1
🎉 Latest improvements to Sweep:
Use Sweep Map to break large issues into smaller sub-issues, perfect for large tasks like "Sweep (map): migrate from React class components to function components"
Getting Sweep to format before committing! Check out Sweep Sandbox Configs to set it up.
We released a demo of our chunker, where you can find the corresponding blog and code.
💡 To get Sweep to edit this pull request, you can:
Leave a comment below to get Sweep to edit the entire PR
Leave a comment in the code will only modify the file
Edit the original issue to get Sweep to recreate the PR from scratch
Description
This PR adds a basic layout to display the user's profile information in the
profile.html
template. Currently, the template only displays the username and posts of the user. With this PR, additional user information such as email, date joined, and number of posts will be displayed.Summary of Changes
profile.html
template to display additional user information.user.email
variable.user.date_joined
variable.len(user.posts)
function.Please review and merge this PR. Thank you!
Fixes #48.
To checkout this PR branch, run the following command in your terminal:
🎉 Latest improvements to Sweep:
💡 To get Sweep to edit this pull request, you can: