Skip to content

Commit

Permalink
Removing sign in buttons from DEDP page (#5389)
Browse files Browse the repository at this point in the history
* Removing sign in buttons from DEDP page

* signin link

* create account
  • Loading branch information
annagav authored May 3, 2024
1 parent bd5600b commit 57a5dd1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
28 changes: 17 additions & 11 deletions cms/templates/cms/program_page.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,23 @@ <h1 class="title">
href="{{ page.program_subscribe_link }}"
target="blank">Learn More</a>
{% else %}
{% if not authenticated %}
<a href="{% url 'signin' %}?program={{page.program.id}}" class="mdl-button hero-button mdl-cell--hide-phone">
Create Account
</a>
<div class="log-in mdl-cell--hide-phone">
Already a Member?
<a href="{% url 'signin' %}?program={{page.program.id}}">
Sign In
</a>
</div>
{% endif %}
{% if page.program.id == 2 %}
<a href="https://mitxonline.mit.edu/create-account/" class="mdl-button hero-button mdl-cell--hide-phone">
Enroll on MITx Online
</a>
{% else %}
{% if not authenticated %}
<a href="{% url 'signin' %}?program={{page.program.id}}" class="mdl-button hero-button mdl-cell--hide-phone">
Create Account {{page.program.id}}
</a>
<div class="log-in mdl-cell--hide-phone">
Already a Member?
<a href="{% url 'signin' %}?program={{page.program.id}}">
Sign In
</a>
</div>
{% endif %}
{% endif %}
{% endif %}
</div>
{% endif %}
Expand Down
2 changes: 2 additions & 0 deletions ui/templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<a class="brand-logo" href="{{ request.build_absolute_uri }}" rel="noopener noreferrer"></a>
</div>
<div class="pull-right" style="padding-top:4px">
{% if page.program.id != 2 %}
{% if authenticated %}
<a class="header-dashboard-link" href="/dashboard">My Dashboard</a>
<a class="header-dashboard-link" href="/logout">
Expand All @@ -15,6 +16,7 @@
Create Account
</a>
{% endif %}
{% endif %}
</div>
</div>
</nav>

0 comments on commit 57a5dd1

Please sign in to comment.