Project

General

Profile

Download (2.64 KB) Statistics
| Branch: | Tag: | Revision:

foreman_pipeline / app / assets / javascripts / foreman_pipeline / jobs / details / views / job-details-hostgroups.html @ 720671b8

1
<span page-title ng-model="job">{{ 'Job: ' | translate }} {{ job.name }}</span>
2

    
3
<section class="details details-full">
4
  <div bst-alerts success-messages="successMessages" error-messages="errorMessages"></div>
5

    
6
  <h4>
7
    <span translate>Current Hostgroup: </span>
8
    <a ng-click="transitionToHostgroup(job.hostgroup)" ng-show="job.hostgroup.name">
9
      <span class="no-capitalize"  ng-bind="job.hostgroup.name"></span>
10
    </a>
11
    <span class="no-capitalize" ng-show="!job.hostgroup.name" translate>none</span>
12
  </h4>
13

    
14
  <br/>
15

    
16
  <div ng-show="hostgroupsTable.rows.length === 0">
17
    <div class="loading-mask loading-mask-panel" ng-show="hostgroupsTable.working">
18
      <i class="fa fa-spinner fa-spin"></i>
19
        {{ "Loading..." | translate }}
20
    </div>
21

    
22
    <p class="alert alert-info"
23
       ng-hide="hostgroupsTable.working"
24
       translate> No Hostgroups to show.
25
    </p>
26
  </div>
27

    
28
  <section ng-show="hostgroupsTable.rows.length > 0">
29
    <div class="details-header row">
30

    
31
      <div class="col-sm-3">
32
        <input type="text"
33
               class="form-control"
34
               placeholder="{{ 'Filter' | translate }}"
35
               ng-model="hostgroupFilter" />
36
      </div>
37

    
38
      <div class="fr select-action">
39
          <button class="btn btn-default"
40
                  ng-hide="edit_jobs"
41
                  ng-disabled="!hostgroupsTable.chosenRow || hostgroupsTable.working"
42
                  ng-click="setHostgroup()">
43
            <i class="fa fa-pencil" ng-hide="hostgroupsTable.working"></i>
44
            <i class="fa fa-spinner fa-spin" ng-show="hostgroupsTable.working"></i>
45
            {{ 'Set Hostgroup' | translate }}
46
          </button>
47
      </div>
48
    </div>
49

    
50
    <div bst-table="hostgroupsTable" class="nutupane">
51
      <div bst-container-scroll bst-infinite-scroll="hostgroupsTable.nextPage()">
52

    
53
        <table
54
               ng-class="{'table-mask': hostgroupsTable.working}"
55
               class="table table-striped table-full">
56

    
57
          <thead>
58
            <tr bst-table-head row-choice="hostgroup">
59
              <th bst-table-column="name" translate>Name</th>
60
              <th bst-table-column="created_at" translate>Created at</th>
61
            </tr>
62
          </thead>
63

    
64
          <tbody>
65
            <tr bst-table-row ng-repeat="hostgroup in hostgroupsTable.rows | filter:hostgroupFilter" row-choice="hostgroup">
66

    
67
              <td bst-table-cell>
68
                <a ng-click="transitionToHostgroup(hostgroup)">
69
                  {{ hostgroup.name }}
70
                </a>
71
              </td>
72
              <td bst-table-cell>{{ hostgroup.created_at }}</td>
73

    
74
            </tr>
75
          </tbody>
76

    
77
        </table>
78
      </div>
79
    </div>
80
  </section>
81
</section>