Merge branch 'main' of https://github.com/Normanras/Northpass
This commit is contained in:
@ -18,13 +18,16 @@
|
||||
|
||||
{% comment %} Determine whether special classes need to be added to non course sections and the cards within {% endcomment %}
|
||||
{% if show_learning_paths_section %}
|
||||
{% assign learning_path_section_classes = "col-md-8 col-lg-6" %}
|
||||
{% assign learning_path_section_classes = "col-md-6" %}
|
||||
{%comment%}{% assign learning_path_section_classes = "col-md-8 col-lg-6" %}{%endcomment%}
|
||||
{% assign learning_path_card_classes = "" %}
|
||||
{% endif %}
|
||||
|
||||
{%if show_events_section%}
|
||||
{% assign event_section_classes = "col-md-4 col-lg-6" %}
|
||||
{% assign event_card_classes = "col-x-sm-6 col-sm-6 col-md-12 col-lg-6" %}
|
||||
{% assign event_section_classes = "col-md-3" %}
|
||||
{%comment%}{% assign event_section_classes = "col-md-4 col-lg-6" %}{%endcomment%}
|
||||
{% assign event_card_classes = "col-x-sm-12" %}
|
||||
{%comment%}{% assign event_card_classes = "col-x-sm-6 col-sm-6 col-md-12 col-lg-6" %}{%endcomment%}
|
||||
{%endif%}
|
||||
|
||||
<main class="np-main np-dashboard np-subpage-container">
|
||||
@ -42,6 +45,7 @@
|
||||
{% if show_learning_paths_section or show_events_section %}
|
||||
|
||||
<div class="blocks-layout">
|
||||
|
||||
{% if show_learning_paths_section %}
|
||||
<div class="{{ learning_path_section_classes }}">
|
||||
<h2 class="np-dashboard-resources-title">
|
||||
@ -50,24 +54,26 @@
|
||||
{% include "learning_paths_index", items: learning_paths.enrolled, card_classes: learning_path_card_classes %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if show_events_section %}
|
||||
<div class="{{ event_section_classes }}">
|
||||
<h2 class="np-dashboard-resources-title">
|
||||
Upcoming Events
|
||||
</h2>
|
||||
{% include "training_events_dashboard", card_classes: event_card_classes %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% comment %}
|
||||
<div class="col-md-4 col-lg-6">
|
||||
<div class="np-dashboard-resources-title">Recent Achievements</div>
|
||||
<div class="blocks-layout">
|
||||
{% include "widget_achievements" %}
|
||||
</div>
|
||||
</div>
|
||||
{% endcomment %}
|
||||
</div>
|
||||
|
||||
{%comment%} This is a test section for understanding blocks-layout and the formatting required to render an additional 'achievements' section {%endcomment%}
|
||||
{% if show_events_section %}
|
||||
<div class="{{ event_section_classes }}" style="background-color: pink">
|
||||
<h2 class="np-dashboard-resources-title" style="width: 265px">
|
||||
Blocks-Layout Test Field
|
||||
</h2>
|
||||
{% include "training_events_dashboard", card_classes: event_card_classes %}
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
|
||||
@ -1,4 +1,7 @@
|
||||
{% comment %} Initialize Variables {% endcomment %}
|
||||
<script>
|
||||
window.location.href = '/app/partner-training'
|
||||
</script>
|
||||
{%comment%}
|
||||
{% assign show_learning_paths_section = false %}
|
||||
{% assign show_events_section = false %}
|
||||
{% assign learning_path_section_classes = "" %}
|
||||
@ -6,17 +9,14 @@
|
||||
{% assign learning_path_card_classes = "col-md-6" %}
|
||||
{% assign event_card_classes = "col-x-sm-6 col-sm-6 col-md-4 col-lg-3" %}
|
||||
|
||||
{% comment %} Determine if learning paths are enabled and the user is enrolled in at least one learning path {% endcomment %}
|
||||
{% if features.learning_paths? and learning_paths.enrolled and learning_paths.enrolled.any? %}
|
||||
{% assign show_learning_paths_section = true %}
|
||||
{% endif %}
|
||||
|
||||
{% comment %} Determine if events are enabled and the user is registered for at least one event {% endcomment %}
|
||||
{% if features.training_events? and training_events.enrolled and training_events.enrolled.any? %}
|
||||
{% assign show_events_section = true %}
|
||||
{% endif %}
|
||||
|
||||
{% comment %} Determine whether special classes need to be added to non course sections and the cards within {% endcomment %}
|
||||
{% if show_learning_paths_section %}
|
||||
{% assign learning_path_section_classes = "col-md-8 col-lg-6" %}
|
||||
{% assign learning_path_card_classes = "" %}
|
||||
@ -38,14 +38,12 @@
|
||||
|
||||
<div class="blocks-layout">
|
||||
|
||||
{% comment %} Show the first featured course as a banner {% endcomment %}
|
||||
{% if courses.featured and courses.featured.any? %}
|
||||
<div>
|
||||
{% include "banner_course", course: courses.featured.first, button_text: "Get Started" %}
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% comment %} Show this section if either the event section or learning path section has content {% endcomment %}
|
||||
{% if show_learning_paths_section or show_events_section %}
|
||||
|
||||
<div class="blocks-layout">
|
||||
@ -100,4 +98,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
{% include "footer" %}
|
||||
{% include "footer" %}{%endcomment%}
|
||||
@ -1,17 +0,0 @@
|
||||
{% include "header", current_page_orgin: "courses" %}
|
||||
{% include "sub_navigation", current_page: "/app/partnercerts" %}
|
||||
<main class="np-main np-courses np-subpage-container">
|
||||
<h1 class="np-resource-title">
|
||||
Partner Certification Courses
|
||||
</h1>
|
||||
<div class="np-resource-subtitle">
|
||||
{% capture subtitle_text %}
|
||||
{%comment%}{% t .headline, key: current_school.course_vocabulary %}{%endcomment%}
|
||||
Hey there, {{ current_person.name }}! Are you ready to move onto your Partner Challenge Missions? Let's go!
|
||||
{% endcapture %}
|
||||
{{ subtitle_text | replace: "Courses", "tutorials" }}
|
||||
</div>
|
||||
<br>
|
||||
{% include "courses_partnercerts_index", card_classes: "col-xs-12 col-sm-6 col-lg-4 np-stretch-content" %}
|
||||
</main>
|
||||
{% include "footer" %}
|
||||
@ -1,15 +0,0 @@
|
||||
{% include "header", current_page_orgin: "courses" %}
|
||||
{% include "sub_navigation", current_page: "/app/partnertraining" %}
|
||||
<main class="np-main np-courses np-subpage-container">
|
||||
<h1 class="np-resource-title">
|
||||
Partner Training Courses
|
||||
</h1>
|
||||
<div class="np-resource-subtitle">
|
||||
{%comment%}{% t .headline, key: current_school.course_vocabulary %}{%endcomment%}
|
||||
Hey there {{ current_person.name }}! Welcome to your partner training center! Complete at least one of the courses to complete your certification.
|
||||
{{ subtitle_text | replace: "Courses", "tutorials" }}
|
||||
</div>
|
||||
<br>
|
||||
|
||||
</main>
|
||||
{% include "footer" %}
|
||||
Reference in New Issue
Block a user