37 lines
1.7 KiB
HTML
37 lines
1.7 KiB
HTML
<div>
|
|
<div ng-show='panel.load.local'>
|
|
<h5>Local File</h5>
|
|
<form>
|
|
<input type="file" id="dashupload" dash-upload /><br>
|
|
</form>
|
|
</div>
|
|
<div ng-show='panel.load.gist'>
|
|
<h5>Gist <small>Enter a gist number or url</small></h5>
|
|
<form>
|
|
<input type="text" ng-model="gist.url"/><br>
|
|
<button class="btn" ng-click="gist_dblist(gist_id(gist.url))" ng-show="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">No gist dashboards found</h6>
|
|
<table class="table table-condensed table-striped">
|
|
<tr ng-repeat="file in gist.files">
|
|
<td><a ng-click="dash_load(file)">{{file.title}}</a></td>
|
|
</tr>
|
|
</table>
|
|
</form>
|
|
</div>
|
|
<div ng-show='panel.load.elasticsearch'>
|
|
<h5>Elasticsearch</h5>
|
|
<form class="input-append">
|
|
<input type="text" ng-model="elasticsearch.query"/>
|
|
<button ng-click="elasticsearch_dblist(elasticsearch.query)" class='btn'><i class='icon-search'></i></button>
|
|
</form>
|
|
<h6 ng-show="elasticsearch.dashboards.length">Elasticsearch stored dashboards</h6>
|
|
<h6 ng-hide="elasticsearch.dashboards.length">No dashboards matching your query found</h6>
|
|
<table class="table table-condensed table-striped">
|
|
<tr ng-repeat="dashboard in elasticsearch.dashboards">
|
|
<td><a ng-click="delete_elasticsearch(dashboard)"><i class="icon-remove"></i></a></td>
|
|
<td><a ng-click="dash_load(dashboard['_source']['dashboard'])">{{dashboard._id}}</a></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div> |