-
Notifications
You must be signed in to change notification settings - Fork 0
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 John Wick Award badge #46
base: master
Are you sure you want to change the base?
Conversation
Fix #26 --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/kosmotive/cs2pb?shareId=XXXX-XXXX-XXXX-XXXX).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remaining tasks
@@ -83,6 +83,12 @@ | |||
<div class="legend-item-description">Be the red lantern of your team with <span class="nowrap">K/D ≤0.5</span>, <span class="nowrap">ADR ≤50</span>, and a substantial deficit in ADR.</div> | |||
</div> | |||
|
|||
<div class="legend-item"> | |||
<div style="background-image: url('{% static 'badges' %}/john-wick-award.png');" class="badge"></div> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add the missing image file john-wick-award.png
* **Models**: Add "John Wick Award" badge type to `MatchBadgeType` and implement logic to award the badge in `MatchBadge`. * **Views**: Update badge display logic in `get_badges` to include "John Wick Award". * **Templates**: Update badge display templates in `player.html`, `squads.html`, `profile-card.html`, `sessions.html`, and `sessions-list.html` to include "John Wick Award". * **Tests**: Add tests for "John Wick Award" badge in `MatchBadge__award`. * **Migrations**: Create migration file to add "John Wick Award" badge type to `MatchBadgeType`.
Test coverage of c237e35: 72% |
Test coverage of 4eb55e1: 72% |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.
Files not reviewed (1)
- django/stats/templates/stats/squads.html: Language not supported
Fix #26
For more details, open the Copilot Workspace session.