芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/cepali/message/output/popup/templates/notification_popover.mustache
{{! This file is part of Moodle - http://moodle.org/ Moodle is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. Moodle is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with Moodle. If not, see
. }} {{! @template message_output_popup/notification_popover This template will render the notification popover for the navigation bar. Classes required for JS: * none Data attributes required for JS: * All data attributes are required Context variables required for this template: * userid the logged in user id * urls The URLs for the popover Example context (json): { "userid": 3, "urls": { "preferences": "http://www.moodle.com" } } }} {{< core/popover_region }} {{$classes}}popover-region-notifications{{/classes}} {{$attributes}}id="nav-notification-popover-container" data-userid="{{userid}}"{{/attributes}} {{$togglelabel}}{{#str}} shownotificationwindownonew, message {{/str}}{{/togglelabel}} {{$togglecontent}} {{#pix}} i/notifications, core, {{#str}} togglenotificationmenu, message {{/str}} {{/pix}}
{{unreadcount}}
{{/togglecontent}} {{$containerlabel}}{{#str}} notificationwindow, message {{/str}}{{/containerlabel}} {{$headertext}}{{#str}} notifications, message {{/str}}{{/headertext}} {{$headeractions}}
{{#pix}} t/markasread, core, {{#str}} markallread {{/str}} {{/pix}}
{{> core/loading }}
{{#pix}} i/settings, core, {{#str}} notificationpreferences, message {{/str}} {{/pix}}
{{/headeractions}} {{$content}}
{{#str}} nonotifications, message {{/str}}
{{/content}} {{/ core/popover_region }} {{#js}} require(['jquery', 'message_popup/notification_popover_controller'], function($, controller) { var container = $('#nav-notification-popover-container'); var controller = new controller(container); controller.registerEventListeners(); controller.registerListNavigationEventListeners(); }); {{/js}}