Revision d5c82ee8
Added by Justin Sherrill about 10 years ago
engines/bastion/app/assets/javascripts/bastion/content-views/details/views/content-view-versions.html | ||
---|---|---|
<input type="text"
|
||
class="form-control filter-input"
|
||
placeholder="{{ 'Filter' | translate }}"
|
||
ng-model="repositorySearch"/>
|
||
ng-model="filterTerm"/>
|
||
</div>
|
||
|
||
<table class="table table-striped table-bordered" alch-table="table" ng-class="{'table-mask': table.working}">
|
||
<thead>
|
||
<tr alch-table-head row-select>
|
||
<tr alch-table-head>
|
||
<th alch-table-column>{{ "Version" | translate }}</th>
|
||
<th alch-table-column>{{ "Promoted" | translate }}</th>
|
||
<th alch-table-column>{{ "Status" | translate }}</th>
|
||
<th alch-table-column>{{ "Environments" | translate }}</th>
|
||
<th alch-table-column>{{ "Repositories" | translate }}</th>
|
||
<th class="col-sm-2" alch-table-column>{{ "Content" | translate }}</th>
|
||
<th alch-table-column>{{ "Puppet Modules" | translate }}</th>
|
||
<th alch-table-column>{{ "Content" | translate }}</th>
|
||
<th alch-table-column>{{ "Published" | translate }}</th>
|
||
<th alch-table-column>{{ "Author" | translate }}</th>
|
||
<th class="col-sm-1" alch-table-column>{{ "Promote" | translate }}</th>
|
||
<th class="col-sm-1" alch-table-column>{{ "Actions" | translate }}</th>
|
||
</tr>
|
||
</thead>
|
||
|
||
<tbody>
|
||
<tr alch-table-row ng-repeat="version in contentView.versions" row-select="version">
|
||
<tr alch-table-row ng-repeat="version in versions | filter:filterTerm">
|
||
<td alch-table-cell translate>Version {{ version.version }}</td>
|
||
<td alch-table-cell>{{ version.promoted | date:"medium" }}</td>
|
||
<td alch-table-cell >{{ status(version) }}</td>
|
||
<td alch-table-cell>
|
||
<li ng-repeat="environment in version.environments">
|
||
{{ environment.name }}
|
||
</li>
|
||
</td>
|
||
<td alch-table-cell class="number-cell">{{ version.counts.repositories }}</td>
|
||
<td alch-table-cell>
|
||
<div translate>
|
||
{{ repository.content_counts.rpm || 0 }} Packages
|
||
... | ... | |
<span>)</span>
|
||
</div>
|
||
</td>
|
||
<td alch-table-cell class="number-cell">{{ version.counts.puppet_modules }}</td>
|
||
<td alch-table-cell>{{ version.created_at | date:"short" }}</td>
|
||
<td alch-table-cell>{{ version.user }}</td>
|
||
<td class="action-cell">
|
||
<a class="btn btn-default"
|
||
ui-sref="content-views.details.promotion({contentViewId: contentView.id, versionId: version.id})"
|
||
translate>
|
||
Promote
|
||
<td class="col-sm-1">
|
||
<a ui-sref="content-views.details.promotion({contentViewId: contentView.id, versionId: version.id})">
|
||
<button>
|
||
<i class="icon-share-alt"></i>
|
||
<span translate>
|
||
Promote
|
||
</span>
|
||
</button>
|
||
</a>
|
||
</td>
|
||
</tr>
|
Also available in: Unified diff
Hooking up publish and promote properly
as part of this commit for content views: