Todos. Lumiante templates for mexico and canada. Finished datasnipper's templates.

This commit is contained in:
Norm Rasmussen
2024-10-10 15:09:27 -04:00
parent 34eaf19e68
commit 8f2e9afc36
7 changed files with 41 additions and 24 deletions

View File

@ -1,4 +1,5 @@
{% if result.type == "course" %}
{% if current_person.properties.lang == 'en' and course.properties.lang = "en"}
{% unless result.course.id == "fdc8acdc-0b7c-4064-a52b-1955379d411b" or result.course.id == "b3225a47-448d-4988-962a-18d37d6616d0" %}
<div class="np-card np-search-result" data-id="{{result.course.id}}">
<div class="np-card-container">
@ -12,10 +13,10 @@
<div>
<a class="np-search-result-title" href="{{ result.path }}">
{{ result.name }}
</a>
</a>
</div>
<div class="np-search-result-snippet">{{result.course.short_description}}</div>
</div>
<div class="category-pills">
{% for course in catalog_courses %}
@ -29,9 +30,9 @@
{% endif %}
{% endfor %}
</div>
</div>
</div>
</div>
{% endunless %}
{% endif %}
{% endif %}

View File

@ -79,6 +79,9 @@
.Learning.Paths.np-resource-subtitle,
.Article.np-resource-title,
.Article.np-resource-subtitle,
.Search.np-resource-title,
.Search.np-resource-subtitle,
.Search.np-resource-subtitle-number,
.Certifications.np-resource-title,
.Certifications.np-resource-subtitle,
#desktop_upload_avatar,
@ -472,6 +475,24 @@ body > main > div.np-catalog-header-wrapper > div.np-catalog-header > div.np-res
display: block;
content: "Cursos";
}
/* SEARCH */
.Search.np-resource-title::after {
/* Search Results */
text-indent: 0;
line-height: 0;
display: block;
content: "Resultados de la búsqueda";
}
.Search.np-resource-subtitle::after {
/* showing */
text-indent: 0;
line-height: 0;
display: block;
content: "Demostración";
}
/* CATALOG */

View File

@ -1,11 +1,11 @@
{% include "header" %}
{% include "sub_navigation" %}
<main class="np-main np-search np-subpage-container np-max-width">
<div class="np-resource-title">
<div class="Search np-resource-title">
{% t .title %}
</div>
<div class="np-search-header">
<div class="np-resource-subtitle">
<div class="Search np-resource-subtitle">
{% t .showing %}
<span class="np-resource-subtitle-number">{{ results.count }}</span>
{% t .results_for %}
@ -69,4 +69,4 @@
document.querySelector(".np-resource-subtitle-number").innerText = searchResultsLength
})
</script>
</script>