<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<a class="notebook-list-item" ng-if="note.id" href="#/notebook/{{note.id}}">
  <i style="font-size: 10px; margin-right: 5px;" class="icon-doc"></i>
  <span>{{noteName(note)}}</span>
</a>
<li ng-if="!note.id" ng-click="$event.stopPropagation()">
  <expand-collapse>
      <div>
        <a class="notebook-list-item" href="javascript:void(0)">
          <i style="font-size: 10px; margin-right: 5px;" class="icon-folder"></i>
          <span>{{noteName(note)}}</span>
        </a>
      </div>
      <div class="expandable" style="color: black;">
        <ul>
          <li ng-repeat="note in note.children | orderBy:navbar.arrayOrderingSrv.notebookListOrdering track by $index"
              ng-class="{'active' : navbar.isActive(note.id)}"
              ng-include="'components/navbar/navbar-notebookList-elem.html'">
          </li>
        </ul>
      </div>
  </expand-collapse>
</li>
