From 7604dc4fa66f1bd44598ac08f4c5c5ec970ecdf2 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Sep 2025 18:14:32 +0000 Subject: [PATCH 1/2] Initial plan From f931ebbf143f2624e24dfd6f12c2c1704171cf5b Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 12 Sep 2025 18:26:07 +0000 Subject: [PATCH 2/2] Fix broken tooltips for age/gender restrictions by replacing Bootstrap with Foundation classes Co-authored-by: karbassi <17738+karbassi@users.noreply.github.com> --- coderdojochi/templatetags/coderdojochi_extras.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/coderdojochi/templatetags/coderdojochi_extras.py b/coderdojochi/templatetags/coderdojochi_extras.py index 350394ff..ff6d69f5 100644 --- a/coderdojochi/templatetags/coderdojochi_extras.py +++ b/coderdojochi/templatetags/coderdojochi_extras.py @@ -76,10 +76,9 @@ def student_register_link(context, student, session): ) button_href = ( - 'data-trigger="hover" data-placement="top"' - f' data-toggle="popover" title="" data-content="{message}"' - f' data-original-title="{title}"' + f'data-tooltip data-position="top" title="{message}"' ) + button_modifier = "btn-default has-tip" elif not student.is_within_age_range( session.minimum_age, @@ -94,10 +93,9 @@ def student_register_link(context, student, session): ) button_href = ( - 'data-trigger="hover" data-placement="top"' - f' data-toggle="popover" title="" data-content="{message}"' - f' data-original-title="{title}"' + f'data-tooltip data-position="top" title="{message}"' ) + button_modifier = "btn-default has-tip" elif not student.is_within_gender_limitation( session.gender_limitation, @@ -112,10 +110,9 @@ def student_register_link(context, student, session): " this time around." ) button_href = ( - 'data-trigger="hover" data-placement="top"' - f' data-toggle="popover" title="" data-content="{message}"' - f' data-original-title="{title}" ' + f'data-tooltip data-position="top" title="{message}"' ) + button_modifier = "btn-default has-tip" form = ( f"<{button_tag} {button_href} class='button small {button_modifier}'"