芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/www/cepali/search/templates/result.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 core_search/result Template which shows a search result. Classes required for JS: * none Data attributes required for JS: * none Context variables required for this template: * courseurl * coursefullname * title * docurl * contexturl Optional context variables for this template: * content * userurl * userfullname * description1 * description2 * filename * multiplefiles * filenames Example context (json): { "courseurl": "https://example.com/course/view.php?id=2", "coursefullname": "Example course", "title": "Example title", "docurl": "https://example.com/mod/example/view.php?id=4", "content": "I am content", "contexturl": "https://example.com/mod/example/view.php?id=2", "userurl": "https://example.com/user/profile.php?id=3", "userfullname": "Example User Full Name", "multiplefiles": true, "filenames": [ "file1.txt", "file2.txt" ] } }}
{{#icon}}
{{/icon}}
{{{title}}}
{{#content}}
{{{content}}}
{{/content}} {{#description1}}
{{{description1}}}
{{/description1}} {{#description2}}
{{{description2}}}
{{/description2}} {{#filename}}
{{#str}}matchingfile, search, {{{filename}}}{{/str}}
{{/filename}} {{#multiplefiles}}
{{#str}}matchingfiles, search{{/str}}
{{#filenames}}
{{.}}
{{/filenames}}
{{/multiplefiles}}
{{#str}}viewresultincontext, search{{/str}}
-
{{#str}}incourse, search, {{{coursefullname}}}{{/str}}
{{#userfullname}} -
{{#str}}byname, moodle, {{{userfullname}}}{{/str}}
{{/userfullname}}