1<div class="dialog-lg wb-history-dialog dialog-resizable" style="height:80vh">
2  <div class="panel-header">
3    <h2>Query History</h2>
4  </div>
5
6    <div class="panel-content" style="height:calc(100% - 100px)">
7      <div class="filter-input-group scroll-shadow-top width-12">
8        <input type="text" name="searchTerm" maxlength="256" class="filter-input"
9           placeholder="filter queries"
10           ng-model="searchInfo.searchText"
11           ng-change="updateSearchResults()"
12           autocomplete="off">
13        <span
14           class="icon fa-search-minus"
15           ng-hide="searchInfo.searchText.length > 0">
16        </span>
17        <span
18           class="icon fa-times-circle"
19           ng-show="searchInfo.searchText.length > 0"
20           ng-click="searchInfo.searchText = ''; updateSearchResults()">
21        </span>
22      </div>
23
24      <div class="wb-history-table history-list">
25          <section ng-repeat="query in pastQueries" ng-if="showRow($index)">
26            <span
27               ng-if="showRow($index)"
28               ng-class="{'selected': isRowSelected($index)}"
29               ng-attr-id="{{'qw_history_table_' + $index}}"
30               ng-click="select($index)"
31               ng-dblclick="select($index);$close('ok')"
32               class="text-small text-center width-1">
33              {{$index + 1}}
34             </span>
35            <span
36               ng-if="showRow($index)"
37               ng-class="{'selected': isRowSelected($index)}"
38               ng-click="select($index,$event)"
39               ng-dblclick="select($index);$close('ok')"
40               class="text-small width-11">
41              {{query.query | limitTo: 1024}}{{query.query.length > 1024 ? '...' : ''}}
42            </span>
43          </section>
44      </div>
45    </div>
46
47    <div class="panel-footer spaced scroll-shadow">
48      <span>
49        <button
50           type="submit"
51           class="outline"
52           ng-disabled="disableDel()"
53           ng-click="del()">
54          Delete Selected
55        </button>
56        <button
57           type="submit"
58           class="outline"
59           ng-click="delAll($close)">
60          Delete All
61        </button>
62      </span>
63      <span>
64        <button
65           type="submit"
66           class="outline"
67           ng-disabled="disableDel()"
68           ng-click="$close('run')">
69          Close & Run
70        </button>
71        <button
72           type="submit"
73           class="outline"
74           ng-click="$close()">
75          Close
76        </button>
77      </span>
78    </div>
79</div>
80