Project

General

Profile

Revision 720671b8

Added by Ondřej Pražák over 6 years ago

Fixes #13288 - Fix for pattrenfly UI

View differences:

app/assets/javascripts/foreman_pipeline/jobs/details/views/job-details-jenkins-projects.html
6 6
  <h4>
7 7
    <span translate>Current Jenkins Projects: </span>
8 8
  </h4>
9
      
10
    <input type="text"
11
            class="form-control filter-input"  
12
            placeholder="{{ 'Filter' | translate }}"
13
            ng-model="jenkinsFilter"/>
14
      
15
      
16
      <span class="pull-right">
17
        <button class="btn btn-default"
18
                ng-disabled="projectsTable.numSelected === 0 || projectsTable.working"
19
                ng-show="isState('jobs.details.jenkins-projects.list') && permitted('edit_jobs', job) && projectsTable.rows.length > 0"
20
                ng-click="removeProjects()">
21
          <i class="fa fa-minus" ng-hide="projectsTable.working"></i>
22
          <i class="fa fa-spinner fa-spin" ng-show="projectsTable.working"></i>      
23
          <span translate>Remove Projects</span>
24
        </button>
25
        
26
        <button class="btn btn-default"
27
                ng-show="isState('jobs.details.jenkins-projects.list') 
28
                         && permitted('edit_jobs', job) 
29
                         && job.jenkins_instance !== null
30
                         && job.jenkins_user !== null"
31
                ui-sref="jobs.details.jenkins-projects.discovery({jobId: job.id})"
32
                translate>
33
                <i class="fa fa-eye"></i>
34
                Find more...
35
        </button>
36
      </span>  
37 9

  
38
      
39
    
40
      
41
      <table bst-table="projectsTable"
42
             class="table table-striped"
43
             ng-show="projectsTable.rows.length > 0 && !projectsTable.working"
44
             ng-class="{'table-mask': projectsTable.working}">
45
        <thead>
46
          <tr bst-table-head row-select="jenkinsProject">
47
            <th bst-table-column="name" translate>Name</th>
48
          </tr>
49
        </thead>
10
  </br>
50 11

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

  
61
      </table>   
62 20

  
63
</section>
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>
64 53

  
65
<div ng-show="projectsTable.rows.length === 0">
66
        <div class="loading-mask loading-mask-panel" ng-show="projectsTable.working">
67
          <i class="fa fa-spinner fa-spin"></i>
68
            {{ "Loading..." | translate }}          
69
        </div>
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>
70 67

  
71
        <p class="alert alert-info"
72
           ng-hide="projectsTable.working"
73
           translate> No Jenkins Projects to show.
74
        </p>
75
      </div>

Also available in: Unified diff