|
9 | 9 | from django.conf import settings
|
10 | 10 | from django.urls import reverse
|
11 | 11 | from django.utils.translation import gettext as _
|
12 |
| - |
13 |
| -from openedx.core.djangoapps.user_authn.toggles import should_redirect_to_authn_microfrontend |
14 | 12 | %>
|
15 | 13 |
|
16 | 14 | <%
|
|
19 | 17 | allows_login = not settings.FEATURES['DISABLE_LOGIN_BUTTON'] and not combined_login_and_register
|
20 | 18 | can_discover_courses = settings.FEATURES.get('ENABLE_COURSE_DISCOVERY')
|
21 | 19 | allow_public_account_creation = static.get_value('ALLOW_PUBLIC_ACCOUNT_CREATION', settings.FEATURES.get('ALLOW_PUBLIC_ACCOUNT_CREATION')) and settings.FEATURES.get('SHOW_REGISTRATION_LINKS', True)
|
22 |
| - should_redirect_to_authn_mfe = should_redirect_to_authn_microfrontend() |
23 | 20 | %>
|
24 | 21 | <nav class="nav-links" aria-label=${_("Supplemental Links")}>
|
25 | 22 | <div class="main">
|
|
48 | 45 | <div>
|
49 | 46 | % if allows_login:
|
50 | 47 | % if allow_public_account_creation and not disable_register_button:
|
51 |
| - % if should_redirect_to_authn_mfe: |
52 |
| - <div class="mobile-nav-item hidden-mobile nav-item"> |
53 |
| - <a class="register-btn btn" href="${settings.AUTHN_MICROFRONTEND_URL}/register${login_query()}">${_("Register for free")}</a> |
54 |
| - </div> |
55 |
| - % else: |
56 |
| - <div class="mobile-nav-item hidden-mobile nav-item"> |
57 |
| - <a class="register-btn btn" href="/register${login_query()}">${_("Register for free")}</a> |
58 |
| - </div> |
59 |
| - % endif |
60 |
| - % endif |
61 |
| - % if should_redirect_to_authn_mfe: |
62 |
| - <div class="mobile-nav-item hidden-mobile nav-item"> |
63 |
| - <a class="sign-in-btn btn" href="${settings.AUTHN_MICROFRONTEND_URL}/login${login_query()}">${_("Sign in")}</a> |
64 |
| - </div> |
65 |
| - % else: |
66 | 48 | <div class="mobile-nav-item hidden-mobile nav-item">
|
67 |
| - <a class="sign-in-btn btn" href="/login${login_query()}">${_("Sign in")}</a> |
| 49 | + <a class="register-btn btn" href="/register${login_query()}">${_("Register for free")}</a> |
68 | 50 | </div>
|
69 | 51 | % endif
|
| 52 | + <div class="mobile-nav-item hidden-mobile nav-item"> |
| 53 | + <a class="sign-in-btn btn" href="/login${login_query()}">${_("Sign in")}</a> |
| 54 | + </div> |
70 | 55 | % endif
|
71 | 56 | </div>
|
72 | 57 | </div>
|
|
0 commit comments