Project

General

Profile

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

foreman_pipeline / app / assets / javascripts / foreman_pipeline / jobs / details / views / job-details-jenkins-projects.html @ 720671b8

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

    
3
<section class="details details-full">
4
  <div bst-alerts success-messages="successMessages" error-messages="errorMessages"></div>
5

    
6
  <h4>
7
    <span translate>Current Jenkins Projects: </span>
8
  </h4>
9

    
10
  </br>
11

    
12
  <div class="details-header row">
13
    <div class="col-sm-3">
14
      <input type="text"
15
              class="form-control filter-input"
16
              placeholder="{{ 'Filter' | translate }}"
17
              ng-model="jenkinsFilter"/>
18
    </div>
19

    
20

    
21
    <div class="fr select-action">
22
      <button class="btn btn-default"
23
              ng-disabled="projectsTable.numSelected === 0 || projectsTable.working"
24
              ng-show="isState('jobs.details.jenkins-projects.list') && permitted('edit_jobs', job) && projectsTable.rows.length > 0"
25
              ng-click="removeProjects()">
26
        <i class="fa fa-minus" ng-hide="projectsTable.working"></i>
27
        <i class="fa fa-spinner fa-spin" ng-show="projectsTable.working"></i>
28
        <span translate>Remove Projects</span>
29
      </button>
30

    
31
      <button class="btn btn-default"
32
              ng-show="isState('jobs.details.jenkins-projects.list')
33
                       && permitted('edit_jobs', job)
34
                       && job.jenkins_instance !== null
35
                       && job.jenkins_user !== null"
36
              ui-sref="jobs.details.jenkins-projects.discovery({jobId: job.id})"
37
              translate>
38
              <i class="fa fa-eye"></i>
39
              Find more...
40
      </button>
41
    </div>
42
  </div>
43

    
44
  <table bst-table="projectsTable"
45
         class="table table-striped"
46
         ng-show="projectsTable.rows.length > 0 && !projectsTable.working"
47
         ng-class="{'table-mask': projectsTable.working}">
48
    <thead>
49
      <tr bst-table-head row-select="jenkinsProject">
50
        <th bst-table-column="name" translate>Name</th>
51
      </tr>
52
    </thead>
53

    
54
    <tbody>
55
      <tr bst-table-row ng-repeat="jenkinsProject in projectsTable.rows | filter:jenkinsFilter" row-select="jenkinsProject">
56
        <td bst-table-cell>
57
          <a href="" ui-sref="jobs.details.jenkins-projects.parameters({ projectId: jenkinsProject.id })">
58
            {{ jenkinsProject.name }}
59
          </a>
60
        </td>
61
      </tr>
62
    </tbody>
63

    
64
  </table>
65

    
66
</section>
67