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() { scope.projectsPostRefresh = scope.$on('PostRefresh', function() {
if (scope.projects) { if (scope.projects) {
for (var i=0; i < scope.projects.length; i++) { 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) { switch(scope.projects[i].status) {
case 'updating': case 'updating':
case 'successful': case 'successful':
case 'ok': case 'ok':
case 'n/a':
scope.projects[i].badge = 'false'; scope.projects[i].badge = 'false';
break; break;
case 'never updated': case 'never updated':

View File

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

View File

@@ -29,14 +29,19 @@ angular.module('ProjectsListDefinition', [])
badgeTipPlacement: 'bottom' badgeTipPlacement: 'bottom'
}, },
description: { description: {
label: 'Description' label: 'Description',
columnClass: 'hidden-sm hidden-xs',
excludeModal: true
}, },
last_updated: { last_updated: {
label: 'Last Updated', label: 'Last Updated',
type: 'date' type: 'date'
}, },
status: { 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>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>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>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", "</dl>\n",
dataPlacement: 'left', dataPlacement: 'left',
dataContainer: 'body', dataContainer: 'body',
@@ -85,13 +90,6 @@ angular.module('ProjectsListDefinition', [])
"class": 'btn-xs btn-default', "class": 'btn-xs btn-default',
awToolTip: 'View/edit project' 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: { scm_update: {
label: 'Update', label: 'Update',
icon: 'icon-cloud-download', icon: 'icon-cloud-download',

View File

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

View File

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