Project

General

Profile

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

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

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

    
3
<div bst-alert success-messages="successMessages" error-messages="errorMessages"></div>
4

    
5
<div class="details fl">
6
  <section>
7
    <h4 translate>Basic information</h4>
8

    
9
    <div class="detail">
10
      <span class="info-label" translate>Name</span>
11
      <span class="info-value"
12
            bst-edit-text="job.name"
13
            on-save="save(job)">
14
      </span>
15
    </div>
16

    
17
    <div class="detail">
18
      <span class="info-label" translate>Manual Job runs?</span>
19
      <span class="info-value"
20
            bst-edit-checkbox="job.manual_trigger"
21
            readonly="denied('edit_jobs', job)"
22
            formatter="booleanToYesNo"
23
            on-save="save(job)">
24
      </span>
25
    </div>
26

    
27
    <div class="detail">
28
      <span class="info-label" translate>CV publish/promote Job runs?</span>
29
      <span class="info-value"
30
            bst-edit-checkbox="job.levelup_trigger"
31
            readonly="denied('edit_jobs', job)"
32
            formatter="booleanToYesNo"
33
            on-save="save(job)">
34
      </span>
35
    </div> 
36

    
37
    <div class="detail">
38
      <span class="info-label" translate>Repo sync Job runs?</span>
39
      <span class="info-value"
40
            bst-edit-checkbox="job.sync_trigger"
41
            readonly="denied('edit_jobs', job)"
42
            formatter="booleanToYesNo"
43
            on-save="save(job)">
44
      </span>
45
    </div> 
46
 
47

    
48
  </section>
49
</div>
50

    
51
<div class="details fr">
52
  <section >
53
    <h4 translate>Job Configuration Check</h4>
54

    
55
    <div class="detail">
56
      <span class="info-label" translate>Content View?</span>
57
      <span class="info-value">
58
        <i class="icon-remove " ng-hide="job.content_view"></i>
59
        <i class="icon-ok" ng-show="job.content_view"></i>
60
      </span>
61
    </div>
62

    
63
    <div class="detail">
64
      <span class="info-label" translate>Hostgroup?</span>
65
      <span class="info-value">
66
        <i class="icon-remove" ng-hide="job.hostgroup"></i>
67
        <i class="icon-ok" ng-show="job.hostgroup"></i>
68
      </span>
69
    </div>
70

    
71
    <div class="detail">
72
      <span class="info-label" translate>Compute Resource?</span>
73
      <span class="info-value">
74
        <i class="icon-remove" ng-hide="job.compute_resource"></i>
75
        <i class="icon-ok" ng-show="job.compute_resource"></i>
76
      </span>
77
    </div>
78

    
79
    <div class="detail">
80
      <span class="info-label" translate>Jenkins Instance?</span>
81
      <span class="info-value">
82
        <i class="icon-remove" ng-hide="job.jenkins_instance"></i>
83
        <i class="icon-ok" ng-show="job.jenkins_instance"></i>
84
      </span>
85
    </div>
86

    
87
    <div class="detail">
88
      <span class="info-label" translate>Environment?</span>
89
      <span class="info-value">
90
        <i class="icon-remove" ng-hide="job.environment"></i>
91
        <i class="icon-ok" ng-show="job.environment"></i>
92
      </span>
93
    </div>
94

    
95
    <div class="detail">
96
      <span class="info-label" translate>Jenkins User?</span>
97
      <span class="info-value">
98
        <i class="icon-remove" ng-hide="job.jenkins_user"></i>
99
        <i class="icon-ok" ng-show="job.jenkins_user"></i>
100
      </span>
101
    </div> 
102
  </section>
103

    
104
  <section ng-show="job.manual_trigger">
105
    <h4 translate>Manual Job Runs</h4>
106
    <div class="detail">
107
      <button class="btn btn-default"
108
              ng-disabled="!isValid || working"
109
              ng-click="runJob()">
110
        <i class="icon-play" ng-hide="working"></i>
111
        <i class="icon-spinner icon-spin" ng-show="working"></i>
112
        <span translate>Run Job</span>
113
      </button>
114
      <!-- TODO user feedback for silent job skips when target cv version not present -->
115
      <!-- <i class="icon-exclamation" ng-show="hasTarget"></i> -->
116
    </div>
117
  </section>
118
</div>