Skip to content

Commit

Permalink
display alises filter/routing on listing
Browse files Browse the repository at this point in the history
  • Loading branch information
lmenezes committed Sep 28, 2017
1 parent 47b7e5a commit e49368e
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions public/aliases.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,35 @@ <h4>current aliases</h4>
<table class="table">
<tr ng-repeat="alias in page.elements track by $index" ng-show="alias">
<td>
<i class="fa fa-tag"></i> {{alias.alias}} <span class="info-text"> assigned to index</span> {{alias.index}}
<i class="fa fa-trash normal-action alert-danger pull-right" ng-click="removeIndexAlias(alias)" ng-hide="alias.removed"></i>
<i class="fa fa-trash alert-danger pull-right disabled" ng-show="alias.removed"></i>
<span class="normal-action" data-toggle="collapse" data-target="#aliasDetails{{$index}}">
<i class="fa fa-tag"></i> {{alias.alias}} <span class="info-text"> assigned to index</span> {{alias.index}}
<span ng-show="alias.search_routing">
<span class="info-text">with search routing</span> {{alias.search_routing}}
</span>
<span ng-show="alias.index_routing">
<span class="info-text">
<span ng-show="alias.search_routing">and</span>
<span ng-hide="alias.search_routing">with</span>
index routing
</span>
{{alias.index_routing}}
</span>
<i class="fa fa-trash normal-action alert-danger pull-right" ng-click="removeIndexAlias(alias)" ng-hide="alias.removed"></i>
<i class="fa fa-trash alert-danger pull-right disabled" ng-show="alias.removed"></i>
</span>
<div class="col-xs-12 collapse " id="aliasDetails{{$index}}">
<div class="row" ng-show="alias.filter">
<div class="col-xs-12">
<span class="info-text">with filter:</span>
<pre>{{alias.filter | json}}</pre>
</div>
</div>
<div>
<div class="col-xs-12" ng-hide="alias.filter">
<span class="info-text">no filter set</span>
</div>
</div>
</div>
</td>
</tr>
</table>
Expand Down

0 comments on commit e49368e

Please sign in to comment.