|
1 |
| -<div class="app-container"> |
2 |
| - <div class="kuiLocalNav"> |
3 |
| - <div class="kuiLocalNavRow"> |
4 |
| - <div class="kuiLocalNavRow__section"> |
5 |
| - <div class="kuiLocalBreadcrumbs"> |
6 |
| - <div class="kuiLocalBreadcrumb"> |
7 |
| - <a class="kuiLocalBreadcrumb__link" href="#/discover">Discover</a> |
8 |
| - </div> |
9 |
| - <div class="kuiLocalBreadcrumb" ng-bind="contextApp.state.queryParameters.indexPattern.id"></div> |
| 1 | +<div class="kuiLocalNav"> |
| 2 | + <div class="kuiLocalNavRow"> |
| 3 | + <div class="kuiLocalNavRow__section"> |
| 4 | + <div class="kuiLocalBreadcrumbs"> |
| 5 | + <div class="kuiLocalBreadcrumb"> |
| 6 | + <a class="kuiLocalBreadcrumb__link" href="#/discover">Discover</a> |
10 | 7 | </div>
|
11 |
| - </div> |
12 |
| - <div class="kuiLocalNavRow__section"> |
13 |
| - <context-size-picker |
14 |
| - predecessor-count="contextApp.state.queryParameters.predecessorCount" |
15 |
| - successor-count="contextApp.state.queryParameters.successorCount" |
16 |
| - set-predecessor-count="contextApp.actions.fetchGivenPredecessorRows" |
17 |
| - set-successor-count="contextApp.actions.fetchGivenSuccessorRows" |
18 |
| - /> |
| 8 | + <div class="kuiLocalBreadcrumb" ng-bind="contextApp.state.queryParameters.indexPattern.id"></div> |
19 | 9 | </div>
|
20 | 10 | </div>
|
21 |
| - <div class="kuiLocalNavRow kuiLocalNavRow--secondary"> |
22 |
| - <div class="kuiLocalTabs"> |
23 |
| - <div class="kuiLocalTab kuiLocalTab-isSelected" ng-bind-template="Context of {{ contextApp.state.queryParameters.anchorUid }}"></div> |
24 |
| - </div> |
| 11 | + </div> |
| 12 | + <div class="kuiLocalNavRow kuiLocalNavRow--secondary"> |
| 13 | + <div class="kuiLocalTabs"> |
| 14 | + <div class="kuiLocalTab kuiLocalTab-isSelected" ng-bind-template="Context of {{ contextApp.state.queryParameters.anchorUid }}"></div> |
25 | 15 | </div>
|
26 | 16 | </div>
|
| 17 | +</div> |
27 | 18 |
|
28 |
| - <div class="container-fluid" role="main"> |
29 |
| - <div class="row"> |
30 |
| - <div class="col-md-12"> |
31 |
| - <context-loading-button |
32 |
| - disabled="contextApp.derivedState.isLoadingPredecessorRows()" |
33 |
| - icon="'fa-chevron-up'" |
34 |
| - ng-click="contextApp.actions.fetchMorePredecessorRows()" |
35 |
| - ng-if="!contextApp.derivedState.isLoadingAnchorRow()" |
36 |
| - > |
37 |
| - Load newer entries |
38 |
| - </context-loading-button> |
39 |
| - </div> |
| 19 | +<div class="kuiViewContent kuiViewContentItem" role="main"> |
| 20 | + <!-- Controls --> |
| 21 | + <div class="kuiBar kuiVerticalRhythm"> |
| 22 | + <div class="kuiBarSection"> |
| 23 | + <context-loading-button |
| 24 | + disabled="contextApp.derivedState.isLoadingPredecessorRows()" |
| 25 | + icon="'fa-chevron-up'" |
| 26 | + ng-click="contextApp.actions.fetchMorePredecessorRows()" |
| 27 | + ng-if="!contextApp.derivedState.isLoadingAnchorRow()" |
| 28 | + > |
| 29 | + Load newer entries |
| 30 | + </context-loading-button> |
40 | 31 | </div>
|
41 |
| - <div class="row"> |
42 |
| - <div class="col-md-12"> |
43 |
| - <div class="discover-overlay" ng-if="contextApp.derivedState.isLoadingAnchorRow()"> |
44 |
| - <h2>Loading...</h2> |
45 |
| - </div> |
46 |
| - <div class="discover-table" ng-if="!contextApp.derivedState.isLoadingAnchorRow()" fixed-scroll> |
47 |
| - <doc-table |
48 |
| - hits="contextApp.derivedState.rows()" |
49 |
| - index-pattern="contextApp.state.queryParameters.indexPattern" |
50 |
| - sorting="contextApp.state.queryParameters.sort" |
51 |
| - columns="contextApp.state.queryParameters.columns" |
52 |
| - infinite-scroll="true" |
53 |
| - > |
54 |
| - </doc-table> |
55 |
| - </div> |
56 |
| - </div> |
| 32 | + |
| 33 | + <div class="kuiBarSection"> |
| 34 | + <div>Limit to</div> |
| 35 | + <context-size-picker |
| 36 | + count="contextApp.state.queryParameters.predecessorCount" |
| 37 | + set-count="contextApp.actions.fetchGivenPredecessorRows" |
| 38 | + ></context-size-picker> |
| 39 | + <div>newer entries</div> |
57 | 40 | </div>
|
58 |
| - <div class="row"> |
59 |
| - <div class="col-md-12"> |
60 |
| - <context-loading-button |
61 |
| - disabled="contextApp.derivedState.isLoadingSuccessorRows()" |
62 |
| - icon="'fa-chevron-down'" |
63 |
| - ng-click="contextApp.actions.fetchMoreSuccessorRows()" |
64 |
| - ng-if="!contextApp.derivedState.isLoadingAnchorRow()" |
65 |
| - > |
66 |
| - Load older entries |
67 |
| - </context-loading-button> |
68 |
| - </div> |
| 41 | + </div> |
| 42 | + |
| 43 | + <!-- Loading feedback --> |
| 44 | + <div |
| 45 | + ng-if="contextApp.derivedState.isLoadingAnchorRow()" |
| 46 | + class="kuiPanel kuiPanel--centered kuiVerticalRhythm" |
| 47 | + > |
| 48 | + <div class="kuiLoadingItems"> |
| 49 | + Loading… |
| 50 | + </div> |
| 51 | + </div> |
| 52 | + |
| 53 | + <!-- Table --> |
| 54 | + <div |
| 55 | + ng-if="!contextApp.derivedState.isLoadingAnchorRow()" |
| 56 | + class="kuiPanel kuiVerticalRhythm" |
| 57 | + > |
| 58 | + <div class="discover-table" fixed-scroll> |
| 59 | + <doc-table |
| 60 | + hits="contextApp.derivedState.rows()" |
| 61 | + index-pattern="contextApp.state.queryParameters.indexPattern" |
| 62 | + sorting="contextApp.state.queryParameters.sort" |
| 63 | + columns="contextApp.state.queryParameters.columns" |
| 64 | + infinite-scroll="true" |
| 65 | + ></doc-table> |
| 66 | + </div> |
| 67 | + </div> |
| 68 | + |
| 69 | + <!-- Controls --> |
| 70 | + <div class="kuiBar kuiVerticalRhythm"> |
| 71 | + <div class="kuiBarSection"> |
| 72 | + <context-loading-button |
| 73 | + disabled="contextApp.derivedState.isLoadingSuccessorRows()" |
| 74 | + icon="'fa-chevron-down'" |
| 75 | + ng-click="contextApp.actions.fetchMoreSuccessorRows()" |
| 76 | + ng-if="!contextApp.derivedState.isLoadingAnchorRow()" |
| 77 | + > |
| 78 | + Load older entries |
| 79 | + </context-loading-button> |
| 80 | + </div> |
| 81 | + |
| 82 | + <div class="kuiBarSection"> |
| 83 | + <div>Limit to</div> |
| 84 | + <context-size-picker |
| 85 | + count="contextApp.state.queryParameters.successorCount" |
| 86 | + set-count="contextApp.actions.fetchGivenSuccessorRows" |
| 87 | + ></context-size-picker> |
| 88 | + <div>older entries</div> |
69 | 89 | </div>
|
70 | 90 | </div>
|
71 | 91 | </div>
|
0 commit comments