|
@@ -11,99 +11,7 @@
|
|
|
<li ng-repeat="pulldown in dashboard.current.nav" ng-controller="PulldownCtrl" ng-show="pulldown.enable"><kibana-simple-panel type="pulldown.type" ng-cloak></kibana-simple-panel></li>
|
|
<li ng-repeat="pulldown in dashboard.current.nav" ng-controller="PulldownCtrl" ng-show="pulldown.enable"><kibana-simple-panel type="pulldown.type" ng-cloak></kibana-simple-panel></li>
|
|
|
|
|
|
|
|
<li><a bs-tooltip="'Goto saved default'" data-placement="bottom" href='#/dashboard'><i class='icon-home'></i></a></li>
|
|
<li><a bs-tooltip="'Goto saved default'" data-placement="bottom" href='#/dashboard'><i class='icon-home'></i></a></li>
|
|
|
-<li class="dropdown" ng-show="showDropdown('load')" >
|
|
|
|
|
- <a href="#" bs-tooltip="'Load'" data-placement="bottom" class="dropdown-toggle" data-toggle="dropdown" ng-click="elasticsearch_dblist('title:'+elasticsearch.query+'*')">
|
|
|
|
|
- <i class='icon-folder-open'></i>
|
|
|
|
|
- </a>
|
|
|
|
|
|
|
|
|
|
- <ul class="dropdown-menu" style="padding:10px">
|
|
|
|
|
- <li ng-if='dashboard.current.loader.load_elasticsearch'>
|
|
|
|
|
- <form class="nomargin">
|
|
|
|
|
- <input type="text" ng-model="elasticsearch.query" ng-change="elasticsearch_dblist('title:'+elasticsearch.query+'*')" placeholder="Type to filter"/>
|
|
|
|
|
- </form>
|
|
|
|
|
- <h6 ng-hide="elasticsearch.dashboards.length">No dashboards matching your query found</h6>
|
|
|
|
|
- <table class="table table-condensed table-striped">
|
|
|
|
|
- <tr bindonce ng-repeat="row in elasticsearch.dashboards | orderBy:['_id']">
|
|
|
|
|
- <td><a ng-click="elasticsearch_delete(row._id)"><i class="icon-remove"></i></a></td>
|
|
|
|
|
- <td><a href="#/dashboard/elasticsearch/{{row._id}}" bo-text="row._id"></a></td>
|
|
|
|
|
- <td><a><i class="icon-share" ng-click="share = dashboard.share_link(row._id,'elasticsearch',row._id)" bs-modal="'app/panels/dashcontrol/share.html'"></i></a></td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- </table>
|
|
|
|
|
- </li>
|
|
|
|
|
-
|
|
|
|
|
- <li class="dropdown-submenu noarrow" ng-show="dashboard.current.loader.load_gist || dashboard.current.loader.load_local">
|
|
|
|
|
- <a tabindex="-1" class="small" style="padding:0"><i class="icon-caret-left"></i> Advanced</a>
|
|
|
|
|
- <ul class="dropdown-menu" style="padding:10px">
|
|
|
|
|
- <li ng-show='dashboard.current.loader.load_local'>
|
|
|
|
|
- <h5>Local File <tip>Load dashboard JSON layout from file</tip></h5>
|
|
|
|
|
- <form>
|
|
|
|
|
- <input type="file" id="dashupload" dash-upload /><br>
|
|
|
|
|
- </form>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li ng-show='dashboard.current.loader.load_gist'>
|
|
|
|
|
- <h5>Gist <tip>Enter a gist number or url</tip></h5>
|
|
|
|
|
- <form>
|
|
|
|
|
- <input type="text" ng-model="gist.url"/ placeholder="Gist number or URL"><br>
|
|
|
|
|
- <button class="btn" ng-click="gist_dblist(dashboard.gist_id(gist.url))" ng-show="dashboard.is_gist(gist.url)"><i class="icon-github-alt"></i> Get gist:{{gist.url | gistid}}</button>
|
|
|
|
|
- <h6 ng-show="gist.files.length">Dashboards in gist:{{gist.url | gistid}} <small>click to load</small></h6>
|
|
|
|
|
- <h6 ng-hide="gist.files.length || !gist.url.length">No gist dashboards found</h6>
|
|
|
|
|
- <table class="table table-condensed table-striped">
|
|
|
|
|
- <tr ng-repeat="file in gist.files">
|
|
|
|
|
- <td><a ng-click="dashboard.dash_load(file)">{{file.title}}</a></td>
|
|
|
|
|
- </tr>
|
|
|
|
|
- </table>
|
|
|
|
|
- </form>
|
|
|
|
|
- </li>
|
|
|
|
|
- </ul>
|
|
|
|
|
- </li>
|
|
|
|
|
-
|
|
|
|
|
- </ul>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-</li>
|
|
|
|
|
-<li class="dropdown"ng-show="showDropdown('save')">
|
|
|
|
|
- <a href="#" bs-tooltip="'Save'" data-placement="bottom" class="dropdown-toggle" data-toggle="dropdown">
|
|
|
|
|
- <i class='icon-save'></i>
|
|
|
|
|
- </a>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- <ul class="dropdown-menu" style="padding:10px">
|
|
|
|
|
-
|
|
|
|
|
- <li ng-show="dashboard.current.loader.save_elasticsearch">
|
|
|
|
|
- <form class="input-prepend nomargin">
|
|
|
|
|
- <button style="margin-top:-1px" class="btn" ng-click="elasticsearch_save('dashboard')"><i class="icon-save"></i></button>
|
|
|
|
|
- <input class='input-medium' ng-model="dashboard.current.title" type="text" ng-model="elasticsearch.title"/>
|
|
|
|
|
- </form>
|
|
|
|
|
- </li>
|
|
|
|
|
-
|
|
|
|
|
- <li class="dropdown-submenu noarrow" ng-show="dashboard.current.loader.save_local || dashboard.current.loader.save_gist || dashboard.current.loader.save_default">
|
|
|
|
|
- <a tabindex="-1" class="small" style="padding:0"><i class="icon-caret-left"></i> Advanced</a>
|
|
|
|
|
- <ul class="dropdown-menu">
|
|
|
|
|
-
|
|
|
|
|
- <li ng-show="dashboard.current.loader.save_default">
|
|
|
|
|
- <a class="link" ng-click="set_default()">Save as Home</a>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li ng-show="dashboard.current.loader.save_default">
|
|
|
|
|
- <a class="link" ng-click="purge_default()">Reset Home</a>
|
|
|
|
|
- </li>
|
|
|
|
|
- <li ng-show="dashboard.current.loader.save_local">
|
|
|
|
|
- <a class="link" ng-click="dashboard.to_file()">Export schema</a>
|
|
|
|
|
- </li>
|
|
|
|
|
-
|
|
|
|
|
- <li ng-show="dashboard.current.loader.save_gist" style="margin:10px">
|
|
|
|
|
- <h6>Gist</h6>
|
|
|
|
|
- <form class="input-append">
|
|
|
|
|
- <input class='input-medium' placeholder='Title' type="text" ng-model="gist.title"/>
|
|
|
|
|
- <button class="btn" ng-click="save_gist()"><i class="icon-github-alt"></i></button>
|
|
|
|
|
- </form><br>
|
|
|
|
|
- <small ng-show="gist.last">Last gist: <a target="_blank" href="{{gist.last}}">{{gist.last}}</a></small>
|
|
|
|
|
- </li>
|
|
|
|
|
- </ul>
|
|
|
|
|
- </li>
|
|
|
|
|
- </ul>
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
-</li>
|
|
|
|
|
<li ng-show="showDropdown('share')"><a bs-tooltip="'Share'" data-placement="bottom" ng-click="elasticsearch_save('temp',dashboard.current.loader.save_temp_ttl)" bs-modal="'app/partials/dashLoaderShare.html'"><i class='icon-share'></i></a></li>
|
|
<li ng-show="showDropdown('share')"><a bs-tooltip="'Share'" data-placement="bottom" ng-click="elasticsearch_save('temp',dashboard.current.loader.save_temp_ttl)" bs-modal="'app/partials/dashLoaderShare.html'"><i class='icon-share'></i></a></li>
|
|
|
|
|
|
|
|
<li ng-show="dashboard.current.editable" bs-tooltip="'Configure dashboard'" data-placement="bottom"><a href='#' bs-modal="'app/partials/dasheditor.html'"><i class='icon-cog pointer'></i></a></li>
|
|
<li ng-show="dashboard.current.editable" bs-tooltip="'Configure dashboard'" data-placement="bottom"><a href='#' bs-modal="'app/partials/dasheditor.html'"><i class='icon-cog pointer'></i></a></li>
|