Skip to content

Commit

Permalink
Fix jupyterhub links
Browse files Browse the repository at this point in the history
  • Loading branch information
cmd-ntrf committed Jul 14, 2023
1 parent b76ae76 commit ca86c3d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions site/profile/manifests/jupyterhub.pp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
class profile::jupyterhub::hub (
Optional[String[1]] $register_url = undef,
Optional[String[1]] $reset_pw_url = undef,
String $register_url = '', # lint:ignore:params_empty_string_assignment
String $reset_pw_url = '', # lint:ignore:params_empty_string_assignment
) {
contain jupyterhub
include profile::sssd::service
Expand Down
8 changes: 4 additions & 4 deletions site/profile/templates/jupyterhub/login.html.epp
Original file line number Diff line number Diff line change
Expand Up @@ -25,17 +25,17 @@ Powered by Magic Castle
{% endblock %}

{% block script %}
<% if $register_url != undef or $reset_pw_url != undef { -%>
<% if $register_url != '' or $reset_pw_url != '' { -%>
<script>
$(".auth-form-body").after(`
<div class="auth-form-footer">
<% if $register_url != undef { -%>
<% if $register_url != '' { -%>
<div style="width: 45%; float:left">
<a href="<%= $register_url %>" target="_new">Create Account</a>
</div>
<% } -%>
<% if $register_url != undef and $reset_pw_url != undef { %> | <% } %>
<% if $reset_pw_url != undef { -%>
<% if $register_url != '' and $reset_pw_url != '' { %> | <% } %>
<% if $reset_pw_url != '' { -%>
<div style="width: 45%; float:right">
<a href="<%= $reset_pw_url %>" target="_new">Reset Password</a>
</div>
Expand Down

0 comments on commit ca86c3d

Please sign in to comment.