commit
This commit is contained in:
@ -54,9 +54,9 @@
|
|||||||
</p>
|
</p>
|
||||||
<div class="np-card-content-footer">
|
<div class="np-card-content-footer">
|
||||||
{% capture course_path %}{% route course, id: course.id %}{% endcapture %}
|
{% capture course_path %}{% route course, id: course.id %}{% endcapture %}
|
||||||
{% if course.has_to_restart? %}
|
{% comment %} {% if course.has_to_restart? %}
|
||||||
{% include "course_version_outdated_popup", path: course_path %}
|
{% include "course_version_outdated_popup", path: course_path %}
|
||||||
{% endif %}
|
{% endif %}{% endcomment %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</a>
|
</a>
|
||||||
|
|||||||
@ -41,24 +41,6 @@
|
|||||||
{% t shared.progress, count: course.progress %}
|
{% t shared.progress, count: course.progress %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class='course-detail-rating'>
|
|
||||||
<div class='course-detail-rating-stars'>
|
|
||||||
{% for i in (1..5) %}
|
|
||||||
{% if course.properties.np_course_rating >= i %}
|
|
||||||
<svg width="20" height="19" viewBox="0 0 20 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path d="M10 0L12.5863 6.44033L19.5106 6.90983L14.1846 11.3597L15.8779 18.0902L10 14.4L4.12215 18.0902L5.81535 11.3597L0.489435 6.90983L7.41374 6.44033L10 0Z" fill="#006161"/>
|
|
||||||
</svg>
|
|
||||||
{% else %}
|
|
||||||
<svg width="20" height="19" viewBox="0 0 20 19" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
||||||
<path opacity="0.25" d="M10 0L12.5863 6.44033L19.5106 6.90983L14.1846 11.3597L15.8779 18.0902L10 14.4L4.12215 18.0902L5.81535 11.3597L0.489435 6.90983L7.41374 6.44033L10 0Z" fill="#006161"/>
|
|
||||||
</svg>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
<span class="np-details-label" style= 'display: flex;'>
|
|
||||||
{{course.properties.np_course_rating}} <div style='font-weight: 500; padding-left: 5px;'>({{course.properties.np_course_rating_count}}) </div>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -1,25 +1,4 @@
|
|||||||
{% assign rating = course.properties.np_course_rating %}
|
|
||||||
|
|
||||||
{% if isButton %}
|
|
||||||
<div class="np-ratings-container np-ratings-button" onclick='showPopup("ratingsModal")'>
|
|
||||||
{% else %}
|
|
||||||
<div class="np-ratings-container">
|
|
||||||
{% endif %}
|
|
||||||
<div class="rating-group-static">
|
|
||||||
<div class="fas fa-star-half {% if rating >= 0.5 %}star-gold{% endif %}"></div>
|
|
||||||
<div class="fas fa-star {% if rating >= 1.0 %}star-gold{% endif %}"></div>
|
|
||||||
<div class="fas fa-star-half {% if rating >= 1.5 %}star-gold{% endif %}"></div>
|
|
||||||
<div class="fas fa-star {% if rating >= 2.0 %}star-gold{% endif %}"></div>
|
|
||||||
<div class="fas fa-star-half {% if rating >= 2.5 %}star-gold{% endif %}"></div>
|
|
||||||
<div class="fas fa-star {% if rating >= 3.0 %}star-gold{% endif %}"></div>
|
|
||||||
<div class="fas fa-star-half {% if rating >= 3.5 %}star-gold{% endif %}"></div>
|
|
||||||
<div class="fas fa-star {% if rating >= 4.0 %}star-gold{% endif %}"></div>
|
|
||||||
<div class="fas fa-star-half {% if rating >= 4.5 %}star-gold{% endif %}"></div>
|
|
||||||
<div class="fas fa-star {% if rating == 5.0 %}star-gold{% endif %}"></div>
|
|
||||||
</div>
|
|
||||||
<div class="np-course-rating">{{ course.properties.np_course_rating }}</div>
|
|
||||||
<div class="np-course-rating-count">({{course.properties.np_course_rating_count}})</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
|
||||||
|
|||||||
@ -210,9 +210,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% comment %}
|
||||||
{% include "messages" %}
|
{% include "messages" %}
|
||||||
|
{% endcomment %}
|
||||||
<script>
|
<script>
|
||||||
if (window.location.pathname === "/app") {
|
if (window.location.pathname === "/app") {
|
||||||
const headerTag = document.querySelector(".np-header");
|
const headerTag = document.querySelector(".np-header");
|
||||||
|
|||||||
Reference in New Issue
Block a user