Project

General

Profile

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

foreman_pipeline / app / assets / javascripts / foreman_pipeline / jobs / views / jobs-table-full.html @ 720671b8

1
<p bst-alert="info" ng-show="jobsTable.rows.lenght === 0 && !jobsTable.working">
2
  <span translate>
3
    You currently do not have any Jobs. You can add Jobs using the button on the right.
4
  </span>
5
</p>
6

    
7
<table class="table table-striped"
8
        ng-class="{'table-mask' : jobsTable.working}"
9
        ng-show="jobsTable.rows.length > 0">
10
  <thead>
11
    <tr bst-table-head row-select>
12
      <th bst-table-column="name" sortable><span translate>Name</span></th>
13
      <th bst-table-column="content_view"><span translate>Content View</span></th>
14
      <th bst-table-column="hostgroup"><span translate>Hostgroup</span></th>
15
      <th bst-table-column="environment"><span translate>Environment</span></th>
16
      <th bst-table-column="jenkinsInstance"><span translate>Jenkins Instance</span></th>
17
    </tr>
18
  </thead>
19

    
20
  <div data-extend-template="layouts/select-all-results.html"></div>
21

    
22
  <tbody>
23
    <tr bst-table-row ng-repeat="job in jobsTable.rows" row-select="job">
24
      <td bst-table-cell>
25
        <a ui-sref="jobs.details.info({jobId: job.id})">
26
          <div>{{ job.name }}</div>
27
        </a>
28
      </td>
29
      <td bst-table-cell>
30
        <a ng-show="{{ job.content_view !== null }}"
31
           ui-sref="content-views.details.info({ contentViewId: job.content_view.id })">
32
          <div>{{ job.content_view.name }}</div>
33
        </a>
34
        <div ng-show="{{ job.content_view === null }}" translate>none</div>
35
      </td>
36
      <td bst-table-cell>
37
        <a ng-show="{{ job.hostgroup !== null }}"
38
           ng-click="transitionToHostgroup(job.hostgroup)">
39
          <div>{{ job.hostgroup.name }}</div>
40
        </a>
41

    
42
        <div ng-show="{{ job.hostgroup === null }}" translate>none</div>
43

    
44
      </td>
45
      <td bst-table-cell>
46
        <a ng-show="{{ job.environment !== null }}"
47
           ui-sref="environments.environment.details({ environmentId: job.environment.id })">
48
          <div>{{ job.environment.name }}</div>
49
        </a>
50

    
51
        <div ng-show="{{ job.environment === null }}" translate>none</div>
52

    
53
      </td>
54
      <td bst-table-cell>
55
        <a ng-show="{{ job.jenkins_instance !== null }}"
56
           ui-sref="jenkins-instances.details.info({ jenkinsInstanceId: job.jenkins_instance.id })">
57
          <div>{{ job.jenkins_instance.name }}</div>
58
        </a>
59

    
60
        <div ng-show="{{ job.jenkins_instance === null }}" translate>none</div>
61

    
62
      </td>
63
    </tr>
64
  </tbody>
65
</table>