Skip to content

Commit

Permalink
Link to moon only if complete mission 1
Browse files Browse the repository at this point in the history
  • Loading branch information
zemogle committed Feb 16, 2022
1 parent 3c3eed4 commit 720391a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/explorer/templates/explorer/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,13 @@ <h1>{% trans "Serol's Cosmic Explorers" %}</h1>
</div>
</section>

{% if request.user.is_authenticated and request.user.mission_1 %}
<section class="section green-bg py-4">
<div class="container">
<p class="has-text-centered statement m-0"><span class="tag is-warning">new</span> <a href="{% url 'challenge' 15 %}" class="white">Explore the Moon with our new challenge</a></p>
</div>
</section>
{% endif %}

<section class="section focus-home">
<div class="container">
Expand All @@ -90,7 +92,7 @@ <h1 class="has-text-centered">{% trans "Investigate the Universe using Las Cumbr
<div class="column is-flex is-align-items-center">
<div class="buttons">
<a class="button is-rounded is-large is-fullwidth mb-5 register-ind" href="{% url 'registration_register' %}">Join as an individual</a>
<a class="button is-rounded is-large is-fullwidth register-teacher" >Join as a teacher
<a class="button is-rounded is-large is-fullwidth register-teacher">Join as a teacher
<span class="overlay-badge">coming soon</span>
</a>
</div>
Expand Down

0 comments on commit 720391a

Please sign in to comment.