|
|
@@ -11,53 +11,54 @@
|
|
|
width: 90%;
|
|
|
}
|
|
|
</style>
|
|
|
+ <div ng-controller="SearchCtrl" ng-init="init()">
|
|
|
+ <div class="dashboard-editor-header">
|
|
|
+ <div class="dashboard-editor-title" style="border: 0; line-height: 41px;">
|
|
|
+ <i class="icon icon-search"></i>
|
|
|
+ Search
|
|
|
+ </div>
|
|
|
|
|
|
- <a href="#" bs-tooltip="'Search'" data-placement="bottom" ng-click="openSearch()" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
- <i class='icon-folder-open'></i>
|
|
|
- </a>
|
|
|
-
|
|
|
- <ul class="dropdown-menu" id="grafana-search" ng-if="searchOpened">
|
|
|
- <li ng-if="!showImport">
|
|
|
- <div class="grafana-search-panel">
|
|
|
- <div class="search-field-wrapper">
|
|
|
- <button class="btn btn-success pull-right" dash-editor-link="app/partials/playlist.html">
|
|
|
- <i class="icon-play"></i>
|
|
|
- Playlist
|
|
|
- </button>
|
|
|
- <button class="btn btn-success pull-right" ng-click="toggleImport($event)">
|
|
|
- <i class="icon-download-alt"></i>
|
|
|
- Import
|
|
|
- </button>
|
|
|
- <button class="btn btn-success pull-right" ng-click="newDashboard()">
|
|
|
- <i class="icon-th-large"></i>
|
|
|
- New
|
|
|
- </button>
|
|
|
- <span class="position: relative;">
|
|
|
- <input type="text"
|
|
|
- placeholder="search dashboards, metrics, or graphs"
|
|
|
- xng-focus="giveSearchFocus"
|
|
|
- ng-keydown="keyDown($event)"
|
|
|
- ng-model="query.query" spellcheck='false'
|
|
|
- ng-change="search()" />
|
|
|
- <a class="search-tagview-switch" href="javascript:void(0);"
|
|
|
- ng-class="{'active': tagsOnly}"
|
|
|
- ng-click="showTags($event)">tags</a>
|
|
|
- </span>
|
|
|
- </div>
|
|
|
+ <div class="grafana-search-panel">
|
|
|
+ <div class="search-field-wrapper">
|
|
|
+ <button class="btn btn-success pull-right" dash-editor-link="app/partials/playlist.html">
|
|
|
+ <i class="icon-play"></i>
|
|
|
+ Playlist
|
|
|
+ </button>
|
|
|
+ <button class="btn btn-success pull-right" ng-click="toggleImport($event)">
|
|
|
+ <i class="icon-download-alt"></i>
|
|
|
+ Import
|
|
|
+ </button>
|
|
|
+ <button class="btn btn-success pull-right" ng-click="newDashboard()">
|
|
|
+ <i class="icon-th-large"></i>
|
|
|
+ New
|
|
|
+ </button>
|
|
|
+ <span style="position: relative;">
|
|
|
+ <input type="text"
|
|
|
+ placeholder="search dashboards, metrics, or graphs"
|
|
|
+ xng-focus="giveSearchFocus"
|
|
|
+ ng-keydown="keyDown($event)"
|
|
|
+ ng-model="query.query" spellcheck='false'
|
|
|
+ ng-change="search()" />
|
|
|
+ <a class="search-tagview-switch" href="javascript:void(0);"
|
|
|
+ ng-class="{'active': tagsOnly}"
|
|
|
+ ng-click="showTags($event)">tags</a>
|
|
|
+ </span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
- <h6 ng-hide="results.dashboards.length">No dashboards matching your query were found.</h6>
|
|
|
+ <h6 ng-hide="results.dashboards.length">No dashboards matching your query were found.</h6>
|
|
|
|
|
|
- <div class="search-results-container" ng-if="tagsOnly">
|
|
|
+ <div class="search-results-container" ng-if="tagsOnly">
|
|
|
<div ng-repeat="tag in results.tags"
|
|
|
- class="search-result-item pointer"
|
|
|
- ng-class="{'selected': $index === selectedIndex }"
|
|
|
- ng-click="filterByTag(tag.term, $event)">
|
|
|
+ class="search-result-item pointer"
|
|
|
+ ng-class="{'selected': $index === selectedIndex }"
|
|
|
+ ng-click="filterByTag(tag.term, $event)">
|
|
|
<a class="search-result-tag label label-tag" tag-color-from-name>
|
|
|
<i class="icon icon-tag"></i>
|
|
|
<span>{{tag.term}} ({{tag.count}})</span>
|
|
|
</a>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
|
|
|
<div class="search-results-container" ng-if="!tagsOnly">
|
|
|
<div class="search-result-item pointer"
|
|
|
@@ -102,4 +103,4 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</li>
|
|
|
- </ul>
|
|
|
+ </div>
|