more stripe

This commit is contained in:
Norm Rasmussen
2022-05-04 16:38:48 -04:00
parent 91caa83232
commit 1d8d9acf92
2 changed files with 29 additions and 16 deletions

View File

@ -102,17 +102,24 @@
{% comment %} In Progress courses {% endcomment %} {% comment %} In Progress courses {% endcomment %}
{% if courses_in_progress.size > 0 %} {% if courses_in_progress.size > 0 %}
{% for course in courses_in_progress %} {% for course in courses_in_progress %}
{% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %} {% for category in course.categories %}
{% if category.name == 'Partner Training'%}
{% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %}
{% endif %}
{% endfor %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
{% comment %} Enrolled courses {% endcomment %} {% comment %} Enrolled courses {% endcomment %}
{% if courses_enrolled.size > 0 %} {% if courses_enrolled.size > 0 %}
{% for course in courses_enrolled %} {% for course in courses_enrolled %}
{% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %} {% for category in course.categories %}
{% if category.name == 'Partner Training'%}
{% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %}
{% endif %}
{% endfor %}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
</div> </div>
{% endif %} {% endif %}
@ -123,7 +130,11 @@
</h3> </h3>
<div class="blocks-layout"> <div class="blocks-layout">
{% for course in courses_completed %} {% for course in courses_completed %}
{% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %} {% for category in course.categories %}
{% if category.name == 'Partner Training'%}
{% include "cards_course", course: course, card_classes: "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %}
{% endif %}
{% endfor %}
{% endfor %} {% endfor %}
</div> </div>
{% endif %} {% endif %}
@ -141,5 +152,4 @@
</div> </div>
</div> </div>
</main> </main>
{% include "footer" %} {% include "footer" %}
}}

View File

@ -9,21 +9,24 @@
{% case role %} {% case role %}
{% when 'developer', 'architect' %} {% when 'developer', 'architect' %}
<div class="np-homepage-subheadline np-header-font-color"> <div class="np-homepage-subheadline np-header-font-color">
Hi {{ current_person.first_name }}, how is the weather in {{ current_person.properties.location }}? <span>Hi {{ current_person.first_name }}, how is the weather in {{ current_person.properties.location }}?</span>
Here is the training you are eligible for in your role as {{ current_person.properties.role }}. <br>
<span>Here is the training you are eligible for in your role as {{ current_person.properties.role }}.</span>
</div> </div>
{% else %} {% else %}
<div class="np-homepage-subheadline np-header-font-color"> <div class="np-homepage-subheadline np-header-font-color">
Hi {{ current_person.first_name }}, how is the weather in {{ current_person.properties.location }}? <span>Hi {{ current_person.first_name }}, how is the weather in {{ current_person.properties.location }}?</span>
Here is the training you are eligible for in your role as <br>
<span>Here is the training you are eligible for in your role as
<div class="dropdown"> <div class="dropdown">
<button class="dropbtn">Select Role ▼ </button> <button class="dropbtn">Select Role ▼ </button>
<div class="dropdown-content"> <div class="dropdown-content">
<a href="#">Developer</a> <a href="#">Developer</a>
<a href="#">Architect</a> <a href="#">Architect</a>
<a href="#">Partner</a> <a href="#">Partner</a>
</div>
</div> </div>
</div> </span>
</div> </div>
{% endcase %} {% endcase %}
</div> </div>