Project

General

Profile

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

foreman_pipeline / app / assets / javascripts / foreman_pipeline / jobs / details / views / job-details-jenkins.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 Jenkins Instance: </span>
8
    <a ui-sref="jenkins-instances.details.info({ jenkinsInstanceId: job.jenkins_instance.id })">
9
      <span ng-show="job.jenkins_instance.name" ng-bind="job.jenkins_instance.name"></span>
10
    </a>
11
    <span ng-show="!job.jenkins_instance.name" translate>none</span>
12
  </h4>
13

    
14
  <br/> 
15

    
16
  <section ng-show="jenkinsTable.rows.length > 0">
17
    <div class="row">
18
      
19
      <div class="col-sm-3" ng-show="jenkinsTable.rows.length > 0">
20
        <input type="text"
21
                class="form-control"  
22
                placeholder="{{ 'Filter' | translate }}"
23
                ng-model="jenkinsFilter" />
24
      </div>
25

    
26
      <div class="fr select-action">
27
        
28
        <span ng-show="jenkinsTable.rows.length > 0">
29
          <button class="btn btn-default"
30
                  ng-hide="denied('edit_jobs')"
31
                  ng-disabled="!jenkinsTable.chosenRow || jenkinsTable.working" 
32
                  ng-click="setJenkins()">
33
            <i class="icon-pencil" ng-hide="jenkinsTable.working"></i>      
34
            <i class="icon-spinner icon-spin" ng-show="jenkinsTable.working"></i>           
35
            {{ 'Set Jenkins Instance' | translate }}
36
          </button>
37
        </span>
38

    
39
        <button class="btn btn-default"
40
                ng-hide="denied('edit_jobs')"
41
                ng-disabled="!job.jenkins_instance" 
42
                ui-sref="jobs.details.jenkins-instances.jenkins-users.list({jobId: job.id,
43
                                                 jenkinsInstanceId: job.jenkins_instance.id})">
44
          <i class="icon-user"></i>      
45
          {{ 'Configure Jenkins User' | translate }}
46
        </button>
47

    
48
      </div>
49
    </div>
50

    
51
    <div bst-table="jenkinsTable" class="nutupane" ng-show="jenkinsTable.rows.length > 0">
52
      <div bst-container-scroll bst-infinite-scroll="jenkinsTable.nextPage()">
53

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

    
58
          <thead>
59
            <tr bst-table-head row-choice="jenkinsInstance">
60
              <th bst-table-column="name" translate>Name</th>
61
              <th bst-table-column="url" translate>URL</th>
62
            </tr>
63
          </thead>
64

    
65
          <tbody>
66
            <tr bst-table-row ng-repeat="jenkinsInstance in jenkinsTable.rows | filter:jenkinsFilter" row-choice="jenkinsInstance">
67
              
68
              <td bst-table-cell>
69
                <a ui-sref="jenkins-instances.details.info({ jenkinsInstanceId: jenkinsInstance.id })">
70
                  {{ jenkinsInstance.name }}
71
                </a>
72
              </td>
73

    
74
              <td bst-table-cell>{{ jenkinsInstance.url }}</td>
75
            </tr>
76
          </tbody>
77

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

    
83
  <div ng-show="jenkinsTable.rows.length === 0">
84
    <div class="loading-mask" ng-show="jenkinsTable.working">
85
      <i class="icon-spinner icon-spin"></i>
86
        {{ "Loading..." | translate }}          
87
    </div>
88

    
89
    <p class="alert alert-info"
90
       ng-hide="jenkinsTable.working"
91
       translate> No Jenkins Instances to show.
92
    </p>
93
  </div>
94

    
95
</section>