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