jobcardlist.html 2.3 KB
Newer Older
M
Marcin Maciaszczyk 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<!--
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.
-->

<kd-resource-card-list selectable="false" with-statuses="true">
  <kd-resource-card-header-columns>
    <kd-resource-card-header-column grow="2">
20 21 22 23
      {{::$ctrl.i18n.MSG_JOB_LIST_NAME_LABEL}}
    </kd-resource-card-header-column>
    <kd-resource-card-header-column grow="2" ng-if="$ctrl.areMultipleNamespacesSelected()">
      {{::$ctrl.i18n.MSG_JOB_LIST_NAMESPACE_LABEL}}
M
Marcin Maciaszczyk 已提交
24 25
    </kd-resource-card-header-column>
    <kd-resource-card-header-column grow="2">
26
      {{::$ctrl.i18n.MSG_JOB_LIST_LABELS_LABEL}}
M
Marcin Maciaszczyk 已提交
27 28
    </kd-resource-card-header-column>
    <kd-resource-card-header-column grow="nogrow" size="small">
29
      {{::$ctrl.i18n.MSG_JOB_LIST_PODS_LABEL}}
M
Marcin Maciaszczyk 已提交
30 31
    </kd-resource-card-header-column>
    <kd-resource-card-header-column grow="nogrow" size="small">
32
      {{::$ctrl.i18n.MSG_JOB_LIST_AGE_LABEL}}
M
Marcin Maciaszczyk 已提交
33 34
    </kd-resource-card-header-column>
    <kd-resource-card-header-column>
35
      {{::$ctrl.i18n.MSG_JOB_LIST_IMAGES_LABEL}}
M
Marcin Maciaszczyk 已提交
36 37 38 39
    </kd-resource-card-header-column>
    <kd-resource-card-header-column size="small" grow="nogrow">
    </kd-resource-card-header-column>
  </kd-resource-card-header-columns>
40 41 42 43 44 45 46
  <kd-job-card ng-if="::$ctrl.jobListResource" pagination-id="jobs"
               dir-paginate="job in $ctrl.jobList.jobs | itemsPerPage: default" job="job"
               total-items="::$ctrl.jobList.listMeta.totalItems">
  </kd-job-card>

  <kd-job-card ng-if="::!$ctrl.jobListResource" pagination-id="jobs"
               dir-paginate="job in $ctrl.jobList.jobs | itemsPerPage: default" job="job">
M
Marcin Maciaszczyk 已提交
47
  </kd-job-card>
48
  <kd-resource-card-list-footer>
49 50
    <kd-resource-card-list-pagination pagination-id="jobs" list="$ctrl.jobList"
                                      list-resource="::$ctrl.jobListResource">
51 52
    </kd-resource-card-list-pagination>
  </kd-resource-card-list-footer>
M
Marcin Maciaszczyk 已提交
53
</kd-resource-card-list>