<!--
  ~ Licensed to the Apache Software Foundation (ASF) under one
  ~ or more contributor license agreements.  See the NOTICE file
  ~ distributed with this work for additional information
  ~ regarding copyright ownership.  The ASF licenses this file
  ~ to you 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.
  -->

<div data-ng-controller="navigationController" class="main-tags leftNavigation">
    <div>
       <h4 class="pull-left">Tags</h4>
       <a href ng-click="refreshTags()" class="pull-right">
         <img src="../img/refresh.png" style="margin: 5px;" title="Refresh Tags" >
       </a>
       <form ng-submit="filterTags()">
         <input type="text" class="filter-tag" placeholder="Search for Tagsā€¦" ng-model="tagFilter" ng-keydown="filterTags()"> </input>
         <input type="submit" id="submit" value="Submit" class="hide" />
       </form>
    </div>
    </br>
    <div class="list-group">
       <a ng-repeat="nav in filtered = (leftnav | filter:tagFilter | limitTo:intialCount + 1)" ui-sref="search({ query: nav , searchType: dslQueryVal})" class="list-group-item limitSize" title="{{nav}}"><i class="fa fa-tag"></i> {{nav}} </a>
       <a ng-click="showMore()" class="see-more" ng-class="filtered.length > intialCount ? 'show' : 'hide'"> Load more ... </a>
    </div>
</div>