Project

General

Profile

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

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

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

    
3
<div class="loading-mask loading-mask-panel" ng-show="panel.loading">
4
  <i class="icon-spinner icon-spin"></i>
5
  {{ "Loading..." | translate}}
6
</div>
7

    
8
<section class="nutupane-details" ng-cloak bst-container-scroll>
9
  <header class="details-header">
10
    
11
    <h2 class="fl" translate>Job {{ job.name }} </h2>
12

    
13
    <div class="fr">
14
      <div bst-modal="deleteJob(job)" model="job"
15
            modal-header='Remove Job "{{ job.name }}"?'
16
            modal-body='Are you sure you want to remove Job "{{ job.name }}"?'>
17
      </div>
18
      
19
      <button class="btn btn-default" ng-click="openModal()" ng-hide="denied('destroy_job', job)">
20
        <i class="icon-trash"></i>
21
        {{ "Delete Job" | translate }}
22
      </button>
23

    
24
      <button class="btn btn-default" ui-sref="jobs.index">
25
        <i class="icon-remove"></i>
26
        {{ "Close" | translate }}
27
      </button>
28
    </div>
29

    
30
  </header>
31

    
32
  <nav>
33
    <ul class="nav nav-tabs">
34
      
35
      <li ng-class="{active: stateIncludes('jobs.details.info')}">
36
        <a ui-sref="jobs.details.info({jobId: job.id})">
37
          <span translate>Details</span>
38
        </a>
39
      </li>
40

    
41
      <li ng-class="{ active : stateIncludes('jobs.details.content-views')}">
42
        <a ui-sref="jobs.details.content-views({jobId: job.id})">
43
          <span translate>Content Views</span>
44
        </a>
45
      </li>
46

    
47
      <li ng-class="{ active : stateIncludes('jobs.details.hostgroups')}">
48
        <a ui-sref="jobs.details.hostgroups({jobId: job.id})">
49
          <span translate>Hostgroups</span>
50
        </a>
51
      </li>
52

    
53
      <li ng-class="{active: stateIncludes('jobs.details.resources')}">
54
        <a ui-sref="jobs.details.resources">
55
          <span translate>Compute Resources</span>
56
        </a>
57
      </li>
58

    
59
      <li ng-class="{active: (stateIncludes('jobs.details.jenkins-instances.list')
60
                    || stateIncludes('jobs.details.jenkins-instances.jenkins-users.list')
61
                    || stateIncludes('jobs.details.jenkins-instances.jenkins-users.new')
62
                    || stateIncludes('jobs.details.jenkins-instances.jenkins-users.info'))}">
63
        <a ui-sref="jobs.details.jenkins-instances.list({jobId: job.id})">
64
          <span translate>Jenkins Servers</span>
65
        </a>
66
      </li>            
67

    
68
      <li ng-class="{active: stateIncludes('jobs.details.to-environment')}">
69
        <a ui-sref="jobs.details.to-environment">
70
          <span translate>Environment</span>
71
        </a>
72
      </li>
73

    
74
      <li ng-class="{active: (stateIncludes('jobs.details.jenkins-projects.list') 
75
                    || stateIncludes('jobs.details.jenkins-projects.discovery')
76
                    || stateIncludes('jobs.details.jenkins-projects.parameters'))}">
77
        <a ui-sref="jobs.details.jenkins-projects.list({jobId: job.id})">
78
          <span translate>Jenkins Projects</span>
79
        </a>
80
      </li>
81
    </ul>
82
  </nav>
83

    
84
  <section class="nutupane-sub-section" ui-view></section>
85
</section>