Supplier templates
This commit is contained in:
@ -1,6 +1,7 @@
|
|||||||
{% assign skip_course_page = false %}
|
{% assign skip_course_page = false %}
|
||||||
{% for category in course.categories %}
|
{% for category in course.categories %}
|
||||||
{% if category.name == 'Blog' or category.name == 'HelpDoc' %}
|
{% if category.name == 'Blog' %}
|
||||||
|
{% comment %}{% or category.name == 'HelpDoc' %} {% endcomment %}
|
||||||
{% assign skip_course_page = true %}
|
{% assign skip_course_page = true %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
<div class="np-card np-search-result">
|
{% if result.type == "course" %}
|
||||||
|
<div class="np-card np-search-result">
|
||||||
<div class="np-card-container">
|
<div class="np-card-container">
|
||||||
<div class="np-card-content">
|
<div class="np-card-content">
|
||||||
<img
|
<img
|
||||||
@ -17,3 +18,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|||||||
@ -5,11 +5,13 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% assign skip_overview = false %}
|
{% assign skip_overview = false %}
|
||||||
|
{% comment %}
|
||||||
{% for category in course.categories %}
|
{% for category in course.categories %}
|
||||||
{% if category.name == 'HelpDoc' %}
|
{% if category.name == 'HelpDoc' %}
|
||||||
{% assign skip_overview = true %}
|
{% assign skip_overview = true %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
{% endcomment %}
|
||||||
{% if skip_overview %}
|
{% if skip_overview %}
|
||||||
{% if course.enrolled? %}
|
{% if course.enrolled? %}
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
@ -20,7 +20,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% if results.items.any? %}
|
{% if results.items.any? %}
|
||||||
{% render "search_result" for results.items as result %}
|
{% render "search_result" for results.items as result %}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% include "search_zero_state" %}
|
{% include "search_zero_state" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
Reference in New Issue
Block a user