Project

General

Profile

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

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

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

    
3
<section class="nutupane-sub-section">
4
  <div bst-alert 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
  <section ng-show="hostgroupsTable.rows.length > 0">
17
    <div class="row">
18
      <div class="col-sm-3">
19
        <input type="text"
20
               class="form-control"
21
               placeholder="{{ 'Filter' | translate }}"
22
               ng-model="hostgroupFilter" />
23
      </div>
24

    
25
      <div class="fr select-action">
26
          <button class="btn btn-default"
27
                  ng-hide="edit_jobs"
28
                  ng-disabled="!hostgroupsTable.chosenRow || hostgroupsTable.working"
29
                  ng-click="setHostgroup()">
30
            <i class="icon-pencil" ng-hide="hostgroupsTable.working"></i>      
31
            <i class="icon-spinner icon-spin" ng-show="hostgroupsTable.working"></i>      
32
            {{ 'Set Hostgroup' | translate }}
33
          </button>
34
      </div>
35
    </div>
36

    
37
    <div bst-table="hostgroupsTable" class="nutupane">
38
      <div bst-container-scroll bst-infinite-scroll="hostgroupsTable.nextPage()">
39

    
40
        <table 
41
               ng-class="{'table-mask': hostgroupsTable.working}"
42
               class="table table-striped table-full">
43

    
44
          <thead>
45
            <tr bst-table-head row-choice="hostgroup">
46
              <th bst-table-column="name" translate>Name</th>
47
              <th bst-table-column="created_at" translate>Created at</th>
48
            </tr>
49
          </thead>
50

    
51
          <tbody>
52
            <tr bst-table-row ng-repeat="hostgroup in hostgroupsTable.rows | filter:hostgroupFilter" row-choice="hostgroup">
53
              
54
              <td bst-table-cell>
55
                <a ng-click="transitionToHostgroup(hostgroup)">
56
                  {{ hostgroup.name }}
57
                </a>
58
              </td>
59
              <td bst-table-cell>{{ hostgroup.created_at }}</td>
60

    
61
            </tr>
62
          </tbody>
63
          
64
        </table>
65
      </div>
66
    </div>
67
  </section>
68

    
69
  <div ng-show="hostgroupsTable.rows.length === 0">
70
    <div class="loading-mask" ng-show="hostgroupsTable.working">
71
      <i class="icon-spinner icon-spin"></i>
72
        {{ "Loading..." | translate }}
73
    </div>
74

    
75
    <p class="alert alert-info"
76
       ng-hide="hostgroupsTable.working"
77
       translate> No Hostgroups to show.          
78
    </p>        
79
  </div>
80
</section>