Move tag history to its own top-level tab
This commit is contained in:
parent
4f567c0654
commit
91c7396057
2 changed files with 21 additions and 1 deletions
|
@ -22,12 +22,14 @@
|
||||||
$scope.logsShown = 0;
|
$scope.logsShown = 0;
|
||||||
$scope.buildsShown = 0;
|
$scope.buildsShown = 0;
|
||||||
$scope.settingsShown = 0;
|
$scope.settingsShown = 0;
|
||||||
|
$scope.historyShown = 0;
|
||||||
|
|
||||||
$scope.viewScope = {
|
$scope.viewScope = {
|
||||||
'selectedTags': [],
|
'selectedTags': [],
|
||||||
'repository': null,
|
'repository': null,
|
||||||
'imageLoader': imageLoader,
|
'imageLoader': imageLoader,
|
||||||
'builds': null
|
'builds': null,
|
||||||
|
'historyFilter': ''
|
||||||
};
|
};
|
||||||
|
|
||||||
var buildPollChannel = null;
|
var buildPollChannel = null;
|
||||||
|
@ -132,6 +134,10 @@
|
||||||
$scope.buildsShown++;
|
$scope.buildsShown++;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
$scope.showHistory = function() {
|
||||||
|
$scope.historyShown++;
|
||||||
|
};
|
||||||
|
|
||||||
$scope.showSettings = function() {
|
$scope.showSettings = function() {
|
||||||
$scope.settingsShown++;
|
$scope.settingsShown++;
|
||||||
};
|
};
|
||||||
|
|
|
@ -47,6 +47,11 @@
|
||||||
<i class="fa fa-tags"></i>
|
<i class="fa fa-tags"></i>
|
||||||
</span>
|
</span>
|
||||||
|
|
||||||
|
<span class="cor-tab" tab-title="Tag History" tab-target="#history" id="tagHistoryTab"
|
||||||
|
tab-init="showHistory()">
|
||||||
|
<i class="fa fa-history"></i>
|
||||||
|
</span>
|
||||||
|
|
||||||
<span class="cor-tab" tab-title="Builds" tab-target="#builds" id="buildsTab"
|
<span class="cor-tab" tab-title="Builds" tab-target="#builds" id="buildsTab"
|
||||||
tab-init="showBuilds()"
|
tab-init="showBuilds()"
|
||||||
quay-show="viewScope.repository.can_write && Features.BUILD_SUPPORT">
|
quay-show="viewScope.repository.can_write && Features.BUILD_SUPPORT">
|
||||||
|
@ -84,6 +89,15 @@
|
||||||
is-enabled="tagsShown"></div>
|
is-enabled="tagsShown"></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<!-- Tag History -->
|
||||||
|
<div id="history" class="tab-pane">
|
||||||
|
<h3 class="tab-header">Tag History</h3>
|
||||||
|
<div class="repo-tag-history"
|
||||||
|
repository="viewScope.repository"
|
||||||
|
filter="viewScope.historyFilter"
|
||||||
|
is-enabled="historyShown"></div>
|
||||||
|
</div>
|
||||||
|
|
||||||
<!-- Builds -->
|
<!-- Builds -->
|
||||||
<div id="builds" class="tab-pane">
|
<div id="builds" class="tab-pane">
|
||||||
<div class="repo-panel-builds"
|
<div class="repo-panel-builds"
|
||||||
|
|
Reference in a new issue