1
0
mirror of https://github.com/ansible/awx.git synced 2024-11-04 12:51:18 +03:00

AC-442 project status OK now displayed as NA. Updated help also. Status badge still shows as green. Lost the Status button, replacing with link. Column Status is now Update Status.t

This commit is contained in:
chouseknecht 2013-09-10 16:51:11 -04:00
parent 0d99ecdb3d
commit 365f327887
5 changed files with 25 additions and 15 deletions

View File

@ -35,10 +35,14 @@ function ProjectsList ($scope, $rootScope, $location, $log, $routeParams, Rest,
scope.projectsPostRefresh = scope.$on('PostRefresh', function() {
if (scope.projects) {
for (var i=0; i < scope.projects.length; i++) {
if (scope.projects[i].status == 'ok') {
scope.projects[i].status = 'n/a';
}
switch(scope.projects[i].status) {
case 'updating':
case 'successful':
case 'ok':
case 'n/a':
scope.projects[i].badge = 'false';
break;
case 'never updated':

View File

@ -26,7 +26,8 @@ angular.module('CredentialsListDefinition', [])
label: 'Name'
},
description: {
label: 'Description'
label: 'Description',
excludeModal: true
},
team: {
label: 'Team',

View File

@ -29,14 +29,19 @@ angular.module('ProjectsListDefinition', [])
badgeTipPlacement: 'bottom'
},
description: {
label: 'Description'
label: 'Description',
columnClass: 'hidden-sm hidden-xs',
excludeModal: true
},
last_updated: {
label: 'Last Updated',
type: 'date'
},
status: {
label: 'Status'
label: 'Update Status',
ngClick: 'showSCMStatus(\{\{ project.id \}\})',
awToolTip: 'View details of last SCM Update',
dataPlacement: 'bottom'
}
},
@ -63,7 +68,7 @@ angular.module('ProjectsListDefinition', [])
"<dt>Failed</dt><dd>An error occurred during the most recent SCM update.</dd>\n" +
"<dt>Successful</dt><dd>The latest SCM update ran to completion without incident.</dd>\n" +
"<dt>Missing</dt><dd>The local project directory is missing.</dd>\n" +
"<dt>OK</dt><dd>The project does not use SCM, and the directory is present.</dd>\n" +
"<dt>N/A</dt><dd>The project does not use SCM, so an update status is not available.</dd>\n" +
"</dl>\n",
dataPlacement: 'left',
dataContainer: 'body',
@ -85,13 +90,6 @@ angular.module('ProjectsListDefinition', [])
"class": 'btn-xs btn-default',
awToolTip: 'View/edit project'
},
scm_status: {
label: 'Status',
icon: 'icon-th-list',
ngClick: 'showSCMStatus(\{\{ project.id \}\})',
"class": 'btn-xs btn-default',
awToolTip: 'View SCM status'
},
scm_update: {
label: 'Update',
icon: 'icon-cloud-download',

View File

@ -28,7 +28,6 @@ body {
.pad-left-lg { padding-left: 50px; }
.normal-weight { font-weight: normal; }
/* Working... spinner */
.spinny {
display: none;
@ -910,6 +909,7 @@ tr td button i {
}
/* Large desktop */
@media (min-width: 1200px) {

View File

@ -207,14 +207,21 @@ angular.module('GeneratorHelpers', ['GeneratorHelpers'])
// Start the Link
if ((field.key || field.link || field.linkTo || field.ngClick ) && options['mode'] != 'lookup' && options['mode'] != 'select') {
if (field.linkTo) {
html += "<a href=\"#" + field.linkTo + "\">";
html += "<a href=\"#" + field.linkTo + "\" ";
}
else if (field.ngClick) {
html += "<a href=\"\"" + Attr(field, 'ngClick') + ">";
html += "<a href=\"\"" + Attr(field, 'ngClick') + " ";
}
else if (field.link == undefined || field.link) {
html += "<a href=\"#/" + base + "/{{" + list.iterator + ".id }}\">";
html += "<a href=\"#/" + base + "/{{" + list.iterator + ".id }}\" ";
}
if (field.awToolTip) {
html += Attr(field, 'awToolTip');
if (field.dataPlacement) {
html += Attr(field,'dataPlacement');
}
}
html += ">";
}
// Add icon: