Hackerrank new templates in sandbox. updated a bunch of williams-sonoma stuff. GSU backup.
This commit is contained in:
@ -32,4 +32,4 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -1,17 +1,19 @@
|
||||
{% if courses.enrolled.any? %}
|
||||
<div class="row row-with-thumbnails">
|
||||
{% for course in courses.enrolled %}
|
||||
{% comment %}
|
||||
{% assign category_ids = '' %}
|
||||
{% for category in course.categories %}
|
||||
{% assign category_ids = category_ids | append: category.id | append: '~' %}
|
||||
{% endfor %}
|
||||
{% endcomment %}
|
||||
{% assign progress_label = 'not-started' %}
|
||||
{% if course.progress > 0 and course.progress < 100 %}
|
||||
{% assign progress_label = 'in-progress' %}
|
||||
{% elsif course.progress == 100 %}
|
||||
{% assign progress_label = 'completed' %}
|
||||
{% endif %}
|
||||
<div class="{{ class }} filterable-course" data-filter="{{category_ids}}{{progress_label}}">
|
||||
<div class="{{ class }} filterable-course" data-filter="{{progress_label}}">
|
||||
{% include "cards_course" with course %}
|
||||
</div>
|
||||
{% endfor %}
|
||||
@ -24,4 +26,4 @@
|
||||
{% endcapture %}
|
||||
{% include "courses_zero_state"
|
||||
, message: message %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
<div class="np-dashboard-resources-container">
|
||||
<div class="np-zero-state-text">
|
||||
{{ message }}
|
||||
You don't have any Courses assigned to you.
|
||||
</div>
|
||||
<img class="np-zero-state-courses" alt="{{ message }}" />
|
||||
</div>
|
||||
|
||||
@ -4,9 +4,11 @@
|
||||
<div class="dashboard-filter-button active" data-category="all">ALL COURSES</div>
|
||||
<div class="dashboard-filter-button" data-category="in-progress">IN PROGRESS</div>
|
||||
<div class="dashboard-filter-button" data-category="completed">COMPLETED</div>
|
||||
{% comment %}
|
||||
{% for category in categories.enrolled %}
|
||||
<div class="dashboard-filter-button" data-category="{{ category.id }}">{{ category.name | upcase }}</div>
|
||||
{% endfor %}
|
||||
{% endfor %}
|
||||
{% endcomment %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -32,4 +34,4 @@
|
||||
background-color: #a0874e;
|
||||
color: #fff;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
{% for course in courses.in_catalog %}
|
||||
{% comment %} Change to courses.enrolled {%endcomment%}
|
||||
{% for course in courses.enrolled %}
|
||||
{% for category in course.categories %}
|
||||
{% if category.name contains "Featured Courses" %}
|
||||
<div class="np-card" style="width:100%">
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
<div class="np-footer-navigation">
|
||||
<ul class="np-footer-navigation-list">
|
||||
{% for website_navigation in navigations.footer_navigations %}
|
||||
{% unless website_navigation.name == "Dashboard" %}
|
||||
{% unless website_navigation.name == "Dashboard" or website_navigation.name == "Learning Paths" %}
|
||||
<li class="np-footer-navigation-item">
|
||||
<a
|
||||
class="np-footer-navigation-link np-button-color"
|
||||
@ -73,4 +73,4 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</footer>
|
||||
</footer>
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
{% else %}
|
||||
<div class="np-learning-paths-resources-container">
|
||||
<div class="np-zero-state-text">
|
||||
{% t .empty %}
|
||||
You're not assigned any Learning Paths.
|
||||
</div>
|
||||
<img class="np-zero-state-learning-paths" alt="{% t .empty %}" />
|
||||
</div>
|
||||
|
||||
@ -1,14 +1,23 @@
|
||||
<nav class="np-sub-navigation">
|
||||
<div class="np-sub-navigation-content">
|
||||
{% for link in navigations.sub_navigation %}
|
||||
{% unless link.label == "Dashboard" %}
|
||||
{% unless link.label == "Dashboard" %}
|
||||
{% if link.label == "Catalog" %}
|
||||
<div class="np-sub-navigation-content-item {{ link.active_class }}">
|
||||
<a class="np-sub-navigation-content-item-link" href="{{ link.url }}">
|
||||
WSIU
|
||||
</a>
|
||||
<div class="np-sub-navigation-content-item-bar np-button-background-color"></div>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="np-sub-navigation-content-item {{ link.active_class }}">
|
||||
<a class="np-sub-navigation-content-item-link" href="{{ link.url }}">
|
||||
{{ link.label }}
|
||||
</a>
|
||||
<div class="np-sub-navigation-content-item-bar np-button-background-color"></div>
|
||||
</div>
|
||||
{% endunless %}
|
||||
{% endif %}
|
||||
{% endunless %}
|
||||
{% endfor %}
|
||||
</div>
|
||||
</nav>
|
||||
@ -27,4 +36,4 @@
|
||||
.np-sub-navigation-content-item-link.active {
|
||||
font-weight: 500;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user