Lumiante templates. Anthology and Datasnipper too. Quick scripts.
This commit is contained in:
@ -186,7 +186,21 @@
|
||||
{% assign flag = '' %}
|
||||
{% endunless %}
|
||||
|
||||
<div class="np-card course-card">
|
||||
{% capture course_path %}{% route course, id: course.id %}{% endcapture %}
|
||||
{% assign act_count = 0 %}
|
||||
{% for section in course.sections %}
|
||||
{% for activity in section.activities %}
|
||||
{% assign act_count = act_count | plus : 1 %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{% assign allCats = '' %}
|
||||
{% for category in course.categories %}
|
||||
{% assign allCats = allCats | append: category.name | append: ' || '%}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<div class="np-card course-card" data-product="{{course.properties.product_names_for_course_cards}}" data-categories="{{ allCats }}">
|
||||
{%- comment -%} {% unless flag == 'catalog' %}
|
||||
{% endunless %} {%- endcomment -%}
|
||||
<div class="np-progress-bar-container" style="background: {{ color_light }}">
|
||||
|
||||
@ -186,6 +186,20 @@
|
||||
{% assign flag = '' %}
|
||||
{% endunless %}
|
||||
|
||||
{% capture course_path %}{% route course, id: course.id %}{% endcapture %}
|
||||
{% assign act_count = 0 %}
|
||||
{% for section in course.sections %}
|
||||
{% for activity in section.activities %}
|
||||
{% assign act_count = act_count | plus : 1 %}
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
|
||||
{% assign allCats = '' %}
|
||||
{% for category in course.categories %}
|
||||
{% assign allCats = allCats | append: category.name | append: ' || '%}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<div class="np-card course-card">
|
||||
<div class="np-progress-bar-container" style="background: {{ color_light }}">
|
||||
<div
|
||||
|
||||
Reference in New Issue
Block a user