logstoolbar.html 1.6 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
<!--
Copyright 2015 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

17
<div layout="row" layout-margin layout-align="center center"
18
     class="kd-logs-toolbar">
19 20 21 22 23 24 25
  <div class="kd-logs-toolbar-text" flex="none">
    <span>{{::ctrl.i18n.MSG_LOGS_POD_LABEL}}</span>
  </div>
  <div class="kd-logs-toolbar-text" flex="shrink">
    <kd-middle-ellipsis display-string="{{::ctrl.stateParams.objectName}}">
    </kd-middle-ellipsis>
  </div>
26

27
  <span class="kd-logs-toolbar-text">{{::ctrl.i18n.MSG_LOGS_CONTAINER_LABEL}}</span>
28
  <md-select class="kd-logs-toolbar-select" aria-label="Containers" ng-model="ctrl.container"
29
             md-on-close="ctrl.onContainerChange(ctrl.container)"
30 31
             required>
    <md-option ng-repeat="item in ctrl.containers" ng-value="item">
32
      <span class="kd-logs-toolbar-text">{{::item}}</span>
33 34 35 36 37 38 39 40 41 42 43
    </md-option>
  </md-select>

  <span flex="auto"></span>
  <md-button ng-click="ctrl.onTextColorChange()">
    <md-icon md-font-library="material-icons"
             ng-class="ctrl.getStyleClass()">
      format_color_text
    </md-icon>
  </md-button>
</div>