Skip to content

Commit

Permalink
Allow the no_course_image to come from the current theme
Browse files Browse the repository at this point in the history
Fixes #67
  • Loading branch information
misilot committed Feb 19, 2024
1 parent 188cb63 commit cd11324
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tutorindigo/templates/indigo/lms/templates/course.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<article class="course" id="${course.id}" role="region" aria-label="${course.display_name_with_default}">
<header class="course-image">
<div class="cover-image">
<img src="${course.course_image_url}" onerror="this.src='/static/indigo/images/no_course_image.png';" alt="${course.display_name_with_default} ${course.display_number_with_default}" />
<img src="${course.course_image_url}" onerror='this.src="${static.url('images/no_course_image.png')}";' alt="${course.display_name_with_default} ${course.display_number_with_default}" />
</div>
</header>
<div class="course-info" aria-hidden="true">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<article class="course" role="region" aria-label="<%- content.display_name %>">
<header class="course-image">
<div class="cover-image">
<img src="<%- image_url %>" onerror="this.src='/static/indigo/images/no_course_image.png';" alt="<%- content.display_name %> <%- content.number %>" />
<img src="<%- image_url %>" onerror="this.src='${static.url('images/no_course_image.png')};" alt="<%- content.display_name %> <%- content.number %>" />
</div>
</header>
<section class="course-info" aria-hidden="true">
Expand Down

0 comments on commit cd11324

Please sign in to comment.