Project

General

Profile

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

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

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

    
3
<p class="alert alert-info" ng-show="!job.hostgroup" translate>
4
    You need to set Hostgroup for Resources to become available, you can set Hostgroup using the 'Hostgroups' tab.
5
</p>
6

    
7
<section class="nutupane-sub-section" ng-show="job.hostgroup">
8
  <div bst-alert success-messages="successMessages" error-messages="errorMessages"></div>
9

    
10
  <h4>
11
    <span translate>Current Compute Resource: </span>
12
    <a ng-click="transitionToResource(job.resource)" ng-show="job.compute_resource.name">
13
      <span ng-bind="job.compute_resource.name"></span>
14
    </a>
15
      <span ng-show="!job.compute_resource.name" translate>none</span>
16
  </h4>
17

    
18
  <br/>
19

    
20
  <section ng-show="table.rows.length > 0">
21
    <div class="row">
22
      <div class="col-sm-3">
23
        <input type="text"
24
               class="form-control"
25
               placeholder="{{ 'Filter' | translate }}"
26
               ng-model="resourceFilter" />
27
      </div>
28

    
29
      <div class="fr select-action">
30
        <button class="btn btn-default"
31
                ng-hide="edit_jobs"
32
                ng-disabled="!table.chosenRow || table.working"
33
                ng-click="setResource()">
34
          <i class="icon-pencil" ng-hide="table.working"></i>
35
          <i class="icon-spinner icon-spin" ng-show="table.working"></i>
36
          {{ 'Set Compute Resource' | translate }}
37
        </button>      
38
      </div>
39
    </div>
40

    
41
    <div bst-table="table" class="nutupane">
42
      <div bst-container-scroll bst-infinite-scroll="table.nextPage()">
43
                
44
        <table 
45
               ng-class="{'table-mask': table.working}"
46
               class="table table-striped table-full">
47

    
48
          <thead>
49
            <tr bst-table-head row-choice="resource">
50
              <th bst-table-column="name" translate>Name</th>
51
              <th bst-table-column="provider" translate>Provider</th>
52
              <th bst-table-column="url" translate>Url</th>
53
            </tr>
54
          </thead>
55

    
56
          <tbody>
57
            <tr bst-table-row ng-repeat="resource in table.rows | filter:resourceFilter" row-choice="resource">
58
              
59
              <td bst-table-cell>
60
                <a ng-click="transitionToResource(resource)">
61
                  {{ resource.name }}
62
                </a>
63
              </td>
64
              <td bst-table-cell>{{ resource.provider }}</td>
65
              <td bst-table-cell>{{ resource.url }}</td>
66
            </tr>
67
            
68
          </tbody>
69
          
70
        </table>
71
      </div>
72
    </div>
73
  </section>
74

    
75
  <div ng-show="table.rows.length === 0">
76
    <div class="loading-mask" ng-show="table.working">
77
      <i class="icon-spinner icon-spin"></i>
78
        {{ "Loading..." | translate }}
79
    </div>
80

    
81
    <p class="alert alert-info"
82
       ng-hide="table.working"
83
       translate> No Compute Resources to show.          
84
    </p>        
85
  </div>
86

    
87
</section>