Skip to content

Commit

Permalink
fixes #16265 - cv repos - indicate 'not synced'
Browse files Browse the repository at this point in the history
Minor change to the content view repositories UI based
on user feedback to show 'Not Synced' and empty counts,
when a repository has not yet been synced.
  • Loading branch information
bbuckingham committed Sep 22, 2016
1 parent 567cd82 commit 25d6f29
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ <h3 translate>
</td>
<td bst-table-cell>{{ repository.product.name }}</td>
<td bst-table-cell>
<span ng-show="repository.url && repository.last_sync == null" translate>
Not Synced
</span>
<span ng-show="repository.url">
{{ repository.last_sync.ended_at | date:"short" }}
</span>
Expand All @@ -112,12 +115,12 @@ <h3 translate>
<span ng-hide="repository.url" translate>N/A</span>
</td>
<td bst-table-cell>
<div ng-if="repository.content_counts.docker_manifest && repository.content_counts.docker_manifest > 0">
<div>
<span translate>
{{ repository.content_counts.docker_manifest }} Docker Manifests
</span>
</div>
<div ng-if="repository.content_counts.docker_tag && repository.content_counts.docker_tag > 0">
<div>
<span translate>
{{ repository.content_counts.docker_tag }} Docker Tags
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ <h3 translate>
</td>
<td bst-table-cell>{{ repository.product.name }}</td>
<td bst-table-cell>
<span ng-show="repository.url && repository.last_sync == null" translate>
Not Synced
</span>
<span ng-show="repository.url">
{{ repository.last_sync.ended_at | date:"short" }}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ <h3 translate>
</td>
<td bst-table-cell>{{ repository.product.name }}</td>
<td bst-table-cell>
<span ng-show="repository.url && repository.last_sync == null" translate>
Not Synced
</span>
<span ng-show="repository.url">
{{ repository.last_sync.ended_at | date:"short" }}
</span>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,9 @@ <h3 translate>
</td>
<td bst-table-cell>{{ repository.product.name }}</td>
<td bst-table-cell>
<span ng-show="repository.url && repository.last_sync == null" translate>
Not Synced
</span>
<span ng-show="repository.url">
{{ repository.last_sync.ended_at | date:"short" }}
</span>
Expand All @@ -112,14 +115,14 @@ <h3 translate>
<span ng-hide="repository.url" translate>N/A</span>
</td>
<td bst-table-cell>
<div ng-if="repository.content_counts.rpm && repository.content_counts.rpm > 0">
<div>
<a ui-sref="products.details.repositories.manage-content.packages({productId: repository.product.id, repositoryId: repository.id})"
ng-show="repository.content_type == 'yum'"
translate>
{{ repository.content_counts.rpm }} Packages
</a>
</div>
<div ng-if="repository.content_counts.erratum && repository.content_counts.erratum > 0">
<div>
<a ui-sref="errata.index({repositoryId: repository.id})"
ng-show="repository.content_type == 'yum'"
translate>
Expand Down

0 comments on commit 25d6f29

Please sign in to comment.