Skip to content

Commit

Permalink
MDL-66012 calendar: fix no event message on calendar views
Browse files Browse the repository at this point in the history
Ahhh Jun. Thanks legend :)
  • Loading branch information
lameze committed Jul 10, 2019
1 parent fac49f8 commit 7bfe4a5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
6 changes: 5 additions & 1 deletion calendar/templates/day_detailed.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,9 @@
}}>
{{> core_calendar/day_navigation }}
{{> core/overlay_loading}}
{{> core_calendar/event_list }}
{{< core_calendar/event_list }}
{{$noeventsmessage}}
{{#str}} daywithnoevents, core_calendar {{/str}}
{{/noeventsmessage}}
{{/core_calendar/event_list}}
</div>
2 changes: 1 addition & 1 deletion calendar/templates/event_list.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
{{/events}}
{{^events}}
<span class="calendar-information calendar-no-results">
{{#str}}daywithnoevents, calendar{{/str}}
{{$noeventsmessage}}{{/noeventsmessage}}
</span>
{{/events}}
</div>
6 changes: 5 additions & 1 deletion calendar/templates/upcoming_detailed.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,9 @@
<div class="calendarwrapper" data-view="upcoming" data-context-id="{{defaulteventcontext}}" data-courseid="{{courseid}}">
{{> core/overlay_loading}}
<h2 class="current text-center">{{#str}}upcomingevents, core_calendar{{/str}}</h2>
{{> core_calendar/event_list }}
{{< core_calendar/event_list }}
{{$noeventsmessage}}
{{#str}} noupcomingevents, core_calendar {{/str}}
{{/noeventsmessage}}
{{/core_calendar/event_list}}
</div>

0 comments on commit 7bfe4a5

Please sign in to comment.