|
@@ -19,20 +19,44 @@
|
|
|
<div class="row jobs-table">
|
|
|
<div class="col-md-12">
|
|
|
|
|
|
- {{#if savedQuerylist.length}}
|
|
|
+ {{#if sortedSavedQueries.length}}
|
|
|
|
|
|
- <table class="table table-striped">
|
|
|
- <thead>
|
|
|
- <tr>
|
|
|
- <th width="30%">Preview</th>
|
|
|
- <th width="20%">Title</th>
|
|
|
- <th width="20%">Database</th>
|
|
|
- <th width="20%">Owner</th>
|
|
|
- <th width="10%">Action</th>
|
|
|
+ <table class="table table-striped">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th width="30%">Preview
|
|
|
+ <span class="sort-icon">
|
|
|
+ {{#if preview.noSort}}<i class="fa fa-chevron-right" {{action "sort" "shortQuery:asc" "preview" "desc"}}></i>{{/if}}
|
|
|
+ {{#if preview.desc}}<i class="fa fa-chevron-down" {{action "sort" "shortQuery:desc" "preview" "asc"}}></i>{{/if}}
|
|
|
+ {{#if preview.asc}}<i class="fa fa-chevron-up" {{action "sort" "" "preview" "noSort"}}></i>{{/if}}
|
|
|
+ </span>
|
|
|
+ </th>
|
|
|
+ <th width="20%">Title
|
|
|
+ <span class="sort-icon">
|
|
|
+ {{#if title.noSort}}<i class="fa fa-chevron-right" {{action "sort" "title" "title" "desc"}}></i>{{/if}}
|
|
|
+ {{#if title.desc}}<i class="fa fa-chevron-down" {{action "sort" "title:desc" "title" "asc"}}></i>{{/if}}
|
|
|
+ {{#if title.asc}}<i class="fa fa-chevron-up" {{action "sort" "" "title" "noSort"}}></i>{{/if}}
|
|
|
+ </span>
|
|
|
+ </th>
|
|
|
+ <th width="20%">Database
|
|
|
+ <span class="sort-icon">
|
|
|
+ {{#if dataBase.noSort}}<i class="fa fa-chevron-right" {{action "sort" "dataBase" "dataBase" "desc"}}></i>{{/if}}
|
|
|
+ {{#if dataBase.desc}}<i class="fa fa-chevron-down" {{action "sort" "dataBase:desc" "dataBase" "asc"}}></i>{{/if}}
|
|
|
+ {{#if dataBase.asc}}<i class="fa fa-chevron-up" {{action "sort" "" "dataBase" "noSort"}}></i>{{/if}}
|
|
|
+ </span>
|
|
|
+ </th>
|
|
|
+ <th width="20%">Owner
|
|
|
+ <span class="sort-icon">
|
|
|
+ {{#if owner.noSort}}<i class="fa fa-chevron-right" {{action "sort" "owner" "owner" "desc"}}></i>{{/if}}
|
|
|
+ {{#if owner.desc}}<i class="fa fa-chevron-down" {{action "sort" "owner:desc" "owner" "asc"}}></i>{{/if}}
|
|
|
+ {{#if owner.asc}}<i class="fa fa-chevron-up" {{action "sort" "" "owner" "noSort"}}></i>{{/if}}
|
|
|
+ </span>
|
|
|
+ </th>
|
|
|
+ <th width="10%">Action</th>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody>
|
|
|
- {{#each savedQuerylist as |savedQuery| }}
|
|
|
+ {{#each sortedSavedQueries as |savedQuery| }}
|
|
|
<tr>
|
|
|
<td><a href="#" {{action "openAsWorksheet" savedQuery }} >{{savedQuery.shortQuery}}</a></td>
|
|
|
<td class="break-word">{{savedQuery.title}}</td>
|
|
@@ -47,7 +71,7 @@
|
|
|
</table>
|
|
|
{{/if}}
|
|
|
|
|
|
- {{#unless savedQuerylist.length}}
|
|
|
+ {{#unless sortedSavedQueries.length}}
|
|
|
<div class="no-results">
|
|
|
<div>There is no saved query.</div>
|
|
|
</div>
|