Bake It Better is a blog-style website for users to share baking recipes. The site has been created for the fourth portfolio project for Code Institute's Diploma in Full Stack Software Development.
0
stars
1
forks
source link
User Story: As an admin user, manage other users' pending comments from the front end #29
As an admin user, I can approve or delete other users' pending comments from the front end, so that I can manage comments without needing to log into the admin panel
Acceptance Criteria
When an admin user is logged in and viewing any bake-detail.html page, they are able to see any comments that are currently pending approval, and can approve or delete them as they wish.
Tasks:
In the bake-detail.html template, add logic in the comments section such that for pending comments, the admin user can see the text of the comment and buttons to approve or delete the comment, and for existing comments, the admin user can see a button to delete the comment
Create new functions in bakes/views.py for the admin user to approve or delete comments
Ensure text and buttons display appropriately and the look and feel of the site is not adversely impacted for the admin user
As an admin user, I can approve or delete other users' pending comments from the front end, so that I can manage comments without needing to log into the admin panel
Acceptance Criteria
When an admin user is logged in and viewing any bake-detail.html page, they are able to see any comments that are currently pending approval, and can approve or delete them as they wish.
Tasks: