frankiesanjana / bake-it-better

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: Star a Bake #14

Open frankiesanjana opened 1 year ago

frankiesanjana commented 1 year ago

As a site user, I can add a star to a bake so that I can indicate that I like it, as well as marking it for my own future reference.

Acceptance Criteria

When a signed-in user clicks on a bake's star icon, the star should change from clear or solid to gold, to indicate that the user has starred that bake, and the number of stars on that bake should increment by 1.

Tasks

Add class for user to star bakes in views.py Add stars IF statement in bake-detail.html to assign the correct colours to stars Add stars url path in bakes/urls.py