Skip to content

Commit

Permalink
Merge branch 'MDL-66354-master' of http://github.com/dravek/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
junpataleta committed Sep 25, 2019
2 parents 84e66f0 + 21ad953 commit ba62391
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 9 deletions.
2 changes: 1 addition & 1 deletion calendar/amd/build/calendar_filter.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion calendar/amd/build/calendar_filter.min.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions calendar/amd/src/calendar_filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,9 @@ function(
return Str.get_string('eventtype' + data.eventtype, 'calendar')
.then(function(nameStr) {
data.name = nameStr;
data.icon = true;
data.key = 'i/' + data.eventtype + 'event';
data.component = 'core';

return data;
})
Expand Down
3 changes: 3 additions & 0 deletions calendar/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -3672,6 +3672,9 @@ function calendar_get_filter_types() {
return [
'eventtype' => $type,
'name' => get_string("eventtype{$type}", "calendar"),
'icon' => true,
'key' => 'i/' . $type . 'event',
'component' => 'core'
];
}, $types);
}
Expand Down
2 changes: 1 addition & 1 deletion calendar/templates/event_icon.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
{{#pix}} icon, {{modulename}} {{/pix}}
{{/modulename}}
{{^modulename}}
{{#pix}} i/{{eventtype}}event, core {{/pix}}
{{#icon}}{{#pix}} {{key}}, {{component}}, {{alttext}} {{/pix}}{{/icon}}
{{/modulename}}
7 changes: 1 addition & 6 deletions calendar/templates/month_mini.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,7 @@
{{$content}}
{{#events}}
<div data-popover-eventtype-{{normalisedeventtype}}="1">
{{#modulename}}
{{#pix}} icon, {{modulename}} {{/pix}}
{{/modulename}}
{{^modulename}}
{{#pix}} i/{{eventtype}}event, core {{/pix}}
{{/modulename}}
{{> core_calendar/event_icon}}
{{{popupname}}}
</div>
{{/events}}
Expand Down

0 comments on commit ba62391

Please sign in to comment.