Skip to content

Conversation

@ArnavBallinCode
Copy link
Contributor

  • Created volunteer_tags.py with two template tags:
    • volunteer_languages_badges: inclusion tag for rendering languages
    • render_volunteer_languages: simple tag for inline rendering
  • Refactored volunteerprofile_detail.html to use template tag
  • Refactored volunteerprofile_review_form.html to use template tag
  • Added comprehensive tests for template tags
  • Added documentation for the new template tags
  • Eliminates code duplication for volunteer language rendering

Fixes #154 , work in progress, testing properly...

- Created volunteer_tags.py with two template tags:
  - volunteer_languages_badges: inclusion tag for rendering languages
  - render_volunteer_languages: simple tag for inline rendering
- Refactored volunteerprofile_detail.html to use template tag
- Refactored volunteerprofile_review_form.html to use template tag
- Added comprehensive tests for template tags
- Added documentation for the new template tags
- Eliminates code duplication for volunteer language rendering

Fixes pyladies#154 , work in progress, testing properly...
@netlify
Copy link

netlify bot commented Oct 31, 2025

Deploy Preview for pyladiescon-portal-docs ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit ab83064
🔍 Latest deploy log https://app.netlify.com/projects/pyladiescon-portal-docs/deploys/6918235543a23e00081b1b91
😎 Deploy Preview https://deploy-preview-236--pyladiescon-portal-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

- Apply black formatting to volunteer_tags.py and test_templatetags.py
- Fix import order with isort (Django imports alphabetically sorted)
- Ensure consistent code style compliance for CI
…entation

- Rename volunteer_templatetags.md to templatetags.md for better organization
- Restructure content to support future template tag categories (sponsorship, portal, etc.)
- Add templatetags.md to mkdocs.yml navigation under Developer Guide
- Update heading structure for better organization and readability
@ArnavBallinCode ArnavBallinCode deleted the feature/volunteer-languages-templatetag branch November 9, 2025 19:07
@ArnavBallinCode ArnavBallinCode restored the feature/volunteer-languages-templatetag branch November 10, 2025 11:12
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.

Create templatetag to render volunteer languages

2 participants