Project

General

Profile

Download (2.86 KB) Statistics
| Branch: | Tag: | Revision:
<span page-title ng-model="product">{{ 'Details for Product:' | translate }} {{ product.name }}</span>

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

<section class="nutupane-details" ng-cloak alch-container-scroll>

<header class="details-header">
<h2 class="fl" translate>Product {{ product.name }}</h2>

<div class="fr">

<div alch-modal="removeProduct(product)" model="product"
modal-header='Remove Product "{{product.name}}"?'
modal-body='Are you sure you want to remove product "{{ product.name }}"?'></div>

<span ng-switch="getReadOnlyReason(product)">
<i class="icon-question-sign" ng-switch-when="permissions"
tooltip="{{ 'You cannot remove this product because you do not have permission.' | translate }}"
tooltip-animation="false"
tooltip-append-to-body="true">
</i>
<i class="icon-question-sign" ng-switch-when="published"
tooltip="{{ 'You cannot remove this product because it was published to a content view.' | translate }}"
tooltip-animation="false"
tooltip-append-to-body="true">
</i>
<i class="icon-question-sign" ng-switch-when="redhat"
tooltip="{{ 'You cannot remove this product because it is a Red Hat product.' | translate }}"
tooltip-animation="false"
tooltip-append-to-body="true">
</i>
</span>

<button class="btn btn-default"
ng-hide="denied('delete_products', product) || product.readonly || product.published_content_views.length > 0"
ng-click="openModal()">
<i class="icon-trash"></i>
{{ "Remove Product" | translate }}
</button>
<button class="btn btn-default" ui-sref="products.index">
<i class="icon-remove"></i>
{{ "Close" | translate }}
</button>
</div>
</header>

<nav>
<ul class="nav nav-tabs">
<li ng-class="{active: stateIncludes('products.details.info')}">
<a translate
ui-sref="products.details.info({productId: product.id})">
Details
</a>
</li>
<li ng-class="{active: stateIncludes('products.details.repositories')}">
<a translate
ui-sref="products.details.repositories.index({productId: product.id})">
Repositories
</a>
</li>
<li ng-class="{active: stateIncludes('products.details.tasks')}">
<a translate
ui-sref="products.details.tasks.index({productId: product.id})">
Tasks
</a>
</li>
<li ng-repeat="menuItem in menuExpander.getMenu('product')">
<a href="{{ menuItem.url }}">
{{ menuItem.label }}
</a>
</li>
</ul>
</nav>

<section class="nutupane-sub-section" ui-view></section>
</section>
(1-1/4)