Skip to content
Snippets Groups Projects
Select Git revision
  • 80ae354c0f1b13e8a35717d8cd86b47882d936ac
  • master default protected
  • hsh_v4.5
  • hsh_v4-4
  • hsh_v4.4
  • hsh_v4.3
  • hsh_v4.1.x
  • hsh_v4.2
  • hsh_v4.1
  • hsh_v3.11
  • hsh_3.10
  • v3.11-r2-hsh
  • v3.11-r2
  • v3.11-r1
  • v3.10-r1
  • v3.9-r1
  • v3.8-r2
  • v3.8-r1
  • v3.7-r1
19 results

navigation_helper.mustache

Blame
  • navigation_helper.mustache 2.16 KiB
    {{!
        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 <http://www.gnu.org/licenses/>.
    }}
    {{!
        @template tool_lifecycle/navigation_helper
    
        toolbar to simplify navigation.
    
        Example context (json):
        {
            "navitems": [
                {
                    "navlink": "http://localhost/moodle/admin/settings.php?section=tool_lifecycle"
                    "navname": "Edit General settings"
                },
                {
                    "navlink": "http://localhost/testlw/admin/tool/lifecycle/workflowdrafts.php"
                    "navname": "Edit Workflow Drafts"
                },
            ]
        }
    }}
    <nav class="moremenu navigation">
        <ul id="moremenu-{{moremenuid}}-{{navbarstyle}}" role="{{#istablist}}tablist{{/istablist}}{{^istablist}}menubar{{/istablist}}" class="nav more-nav {{navbarstyle}}">
            {{#nodecollection}}
                {{#children}}
                    {{> core/moremenu_children}}
                {{/children}}
            {{/nodecollection}}
            <li role="none" class="nav-item dropdown dropdownmoremenu d-none" data-region="morebutton">
                <a class="dropdown-toggle nav-link {{#isactive}}active{{/isactive}}" href="#" id="moremenu-dropdown-{{moremenuid}}" role="{{#istablist}}tab{{/istablist}}{{^istablist}}menuitem{{/istablist}}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" tabindex="-1">
                    {{#str}}moremenu, core{{/str}}
                </a>
                <ul class="dropdown-menu dropdown-menu-left" data-region="moredropdown" aria-labelledby="moremenu-dropdown-{{moremenuid}}" role="menu">
                </ul>
            </li>
        </ul>
    </nav>
    <hr>