Project

General

Profile

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

foreman_pipeline / app / assets / javascripts / foreman_pipeline / jobs / details / views / job-details-content-views.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 Content View: </span>
8
    <a ui-sref="content-views.details.info({ contentViewId: job.content_view.id })">
9
      <span class="no-capitalize" ng-show="job.content_view.name" ng-bind="job.content_view.name"></span>
10
    </a>
11
    <span class="no-capitalize" ng-show="!job.content_view.name" translate>none</span>
12
  </h4>
13

    
14
  <br/> 
15

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

    
26
      <div class="fr select-action">
27

    
28
        <button class="btn btn-default"
29
                ng-hide="denied('edit_jobs')"
30
                ng-disabled="!cvTable.chosenRow || cvTable.working" 
31
                ng-click="setContentView()">
32
          <i class="icon-pencil" ng-hide="cvTable.working"></i>      
33
          <i class="icon-spinner icon-spin" ng-show="cvTable.working"></i>      
34
          {{ 'Set Content View' | translate }}
35
        </button>
36

    
37
      </div>
38
    </div>
39

    
40
    <div bst-table="cvTable" class="nutupane">
41
      <div bst-container-scroll bst-infinite-scroll="cvTable.nextPage()">
42
        
43
        
44

    
45
        <table
46
               ng-class="{'table-mask': cvTable.working}"
47
               class="table table-full table-striped">
48

    
49
          <thead>
50
            <tr bst-table-head row-choice="contentView">
51
              <th bst-table-column="name" translate>Name</th>
52
              <th bst-table-column="composite" translate>Composite?</th>
53
              <th bst-table-column="lastPublished" translate>Last Published</th>
54
              <th bst-table-column="repositories" translate>Repositories</th>
55
            </tr>
56
          </thead>
57

    
58
          <tbody>
59
            <tr bst-table-row ng-repeat="contentView in cvTable.rows | filter:cvFilter" row-choice="contentView">
60
              
61
              <td bst-table-cell>
62
                <a ui-sref="content-views.details.info({ contentViewId: contentView.id })">
63
                  {{ contentView.name }}
64
                </a>
65
              </td>
66

    
67
              <td bst-table-cell>{{ contentView.composite }}</td>
68
              <td bst-table-cell>{{ contentView.last_published }}</td>
69
              <td bst-table-cell>{{ contentView.repositories.length }}</td>
70

    
71
            </tr>
72
          </tbody>
73

    
74
        </table>
75
      </div>
76
    </div>
77
  </section>
78

    
79
  <div ng-show="cvTable.rows.length === 0">
80
    <div class="loading-mask" ng-show="cvTable.working">
81
      <i class="icon-spinner icon-spin"></i>
82
        {{ "Loading..." | translate }}          
83
    </div>
84

    
85
    <p class="alert alert-info"
86
       ng-hide="cvTable.working"
87
       translate> No Content Views to show.
88
    </p>
89
  </div>
90

    
91
</section>