Skip to content

Commit

Permalink
MDL-77891 core_calendar: support display of mod iconurl
Browse files Browse the repository at this point in the history
This affects:
- event_item.mustache (day view)
- event_icon.mustache (used by month_mini and month_mini and
month_detailed templates)
  • Loading branch information
snake committed Sep 21, 2023
1 parent 0a09e48 commit 3c7c965
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
12 changes: 11 additions & 1 deletion calendar/templates/event_icon.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,17 @@
}
}}
{{#modulename}}
{{#pix}} monologo, {{modulename}} {{/pix}}
{{#icon}}
{{#iconurl}}
<img alt="{{alttext}}" title="{{alttext}}" src="{{{ iconurl }}}" class="icon {{iconclass}}">
{{/iconurl}}
{{^iconurl}}
{{#pix}} monologo, {{modulename}} {{/pix}}
{{/iconurl}}
{{/icon}}
{{^icon}}
{{#pix}} monologo, {{modulename}} {{/pix}}
{{/icon}}
{{/modulename}}
{{^modulename}}
{{#icon}}{{#pix}} {{key}}, {{component}}, {{alttext}} {{/pix}}{{/icon}}
Expand Down
11 changes: 10 additions & 1 deletion calendar/templates/event_item.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,16 @@
{{/isactionevent}}
{{/canedit}}
</div>
{{#icon}}<div class="d-inline-block mt-1 align-top">{{#pix}} {{key}}, {{component}}, {{alttext}} {{/pix}}</div>{{/icon}}
{{#icon}}
<div class="d-inline-block mt-1 align-top">
{{#iconurl}}
<img alt="{{alttext}}" title="{{alttext}}" src="{{{iconurl}}}" class="icon {{iconclass}}">
{{/iconurl}}
{{^iconurl}}
{{#pix}} {{key}}, {{component}}, {{alttext}} {{/pix}}
{{/iconurl}}
</div>
{{/icon}}
<div class="d-inline-block">
<h3 class="name d-inline-block">{{{name}}}</h3>
</div>
Expand Down

0 comments on commit 3c7c965

Please sign in to comment.