Skip to content

Commit

Permalink
clean up indices language, make expand search more apparent
Browse files Browse the repository at this point in the history
  • Loading branch information
w33ble committed Sep 25, 2014
1 parent 6bc72de commit 374e3f5
Showing 1 changed file with 15 additions and 12 deletions.
27 changes: 15 additions & 12 deletions src/kibana/apps/settings/sections/indices/_create.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,30 +50,35 @@ <h1>Configure an index pattern</h1>
</select>
</div>

<div class="alert alert-danger" ng-repeat="err in index.patternErrors">{{err}}</div>
<div class="alert alert-danger" ng-repeat="err in index.patternErrors">
{{err}}
</div>

<div class="alert alert-info" ng-if="index.samples">
Sample index names
Attempted to match the following indices:
<ul>
<li ng-repeat="sample in index.samples">{{sample}}</li>
</ul>
<a ng-click="moreSamples(true)" class="alert-link">more</a>
<button ng-click="moreSamples(true)" class="btn btn-default">
Expand Search
</button>
</div>

<div class="alert alert-{{index.existing.class}}" ng-if="index.existing">
Pattern matches {{index.existing.matchPercent}} of similar indices
Pattern matches {{index.existing.matchPercent}} of existing indices
<ul>
<li ng-repeat="match in index.existing.matches | orderBy:'toString()'| limitTo: index.sampleCount">{{match}}</li>
</ul>
<a
<button
ng-if="index.sampleCount < index.existing.matches.length"
ng-click="moreSamples()"
class="alert-link">
more
</a>
class="btn btn-default">
Expand Search
</button>
</div>

<div class="alert alert-danger" ng-if="index.existing.failures.length">
Indices that did not match:
Indices that were found, but did not match the pattern:
<ul>
<li ng-repeat="match in index.existing.failures | limitTo: index.sampleCount">{{match}}</li>
</ul>
Expand All @@ -83,9 +88,7 @@ <h1>Configure an index pattern</h1>
class="alert-link">
more
</a>
</section>


</div>
</section>

<div class="form-group" ng-if="index.isTimeBased">
Expand Down

0 comments on commit 374e3f5

Please sign in to comment.