Skip to content

Commit

Permalink
MDL-77898 calendar: Add iconclass for upcoming_mini template
Browse files Browse the repository at this point in the history
The icon's iconclass context data adds additional CSS class(es) to
calendar event icons to better control how the event icon is displayed.
e.g. without filtering for activity events that don't hae monologo
versions of their icons.
  • Loading branch information
junpataleta committed Apr 18, 2023
1 parent 0e08d0d commit 4df5246
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion calendar/templates/upcoming_mini.mustache
Expand Up @@ -47,7 +47,7 @@
<div class="activityiconcontainer small {{{purpose}}} courseicon mr-3">
{{#icon}}
{{#iconurl}}
<img alt="{{alttext}}" title="{{alttext}}" src="{{{ iconurl }}}" class="icon ">
<img alt="{{alttext}}" title="{{alttext}}" src="{{{ iconurl }}}" class="icon {{iconclass}}">
{{/iconurl}}
{{^iconurl}}
{{#pix}} {{key}}, {{component}}, {{alttext}} {{/pix}}
Expand Down

0 comments on commit 4df5246

Please sign in to comment.