Lumiante templates. Anthology and Datasnipper too. Quick scripts.

This commit is contained in:
Norm Rasmussen
2024-10-01 17:11:02 -04:00
parent 14a3266b89
commit c3c374bda1
10 changed files with 138 additions and 337 deletions

View File

@ -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 }}">

View File

@ -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