Skip to content

[codex] add shared external link badge macro - #790

Open
saurabhhhcodes wants to merge 1 commit into
mohitkumhar:mainfrom
saurabhhhcodes:fix/issue-418-external-link-badges
Open

[codex] add shared external link badge macro#790
saurabhhhcodes wants to merge 1 commit into
mohitkumhar:mainfrom
saurabhhhcodes:fix/issue-418-external-link-badges

Conversation

@saurabhhhcodes

@saurabhhhcodes saurabhhhcodes commented Jul 4, 2026

Copy link
Copy Markdown
Contributor

Closes #418

Summary:

  • add a reusable external_link_badge Jinja macro for external problem and editorial links
  • replace repeated badge markup in topic, bookmarks, profile, and search result rendering with the shared helper
  • keep the search page dynamic by rendering its badge HTML from the same macro-shaped template string

Validation:

  • python3 -m pytest tests/test_external_link_badges.py tests/test_button_utility_classes.py tests/test_progress_card_copy.py -q
  • git diff --check

@vercel

vercel Bot commented Jul 4, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the mohitkumhar's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

Add a template macro for external link badges

1 participant