Merge pull request #1431 from wenottingham/check-check-check-it-out

Adjust some wording in the UI.
This commit is contained in:
Jake McDermott
2018-03-02 21:07:18 -05:00
committed by GitHub
9 changed files with 16 additions and 16 deletions

View File

@@ -4,7 +4,7 @@ export default
var status = params.status, var status = params.status,
launch_class = '', launch_class = '',
launch_tip = i18n._('Start sync process'), launch_tip = i18n._('Start sync process'),
schedule_tip = i18n._('Schedule future inventory syncs'), schedule_tip = i18n._('Schedule inventory syncs'),
stat, stat_class, status_tip; stat, stat_class, status_tip;
stat = status; stat = status;

View File

@@ -211,7 +211,7 @@
<div class="JobResults-resultRowText"> <div class="JobResults-resultRowText">
<a href="{{ project_update_link }}" <a href="{{ project_update_link }}"
ng-hide="job.summary_fields.project.scm_type==='' || !project_status" ng-hide="job.summary_fields.project.scm_type==='' || !project_status"
aw-tool-tip="{{'View project sync results' | translate}}" aw-tool-tip="{{'View project checkout results' | translate}}"
data-placement="top"> data-placement="top">
<i class="JobResults-statusResultIcon <i class="JobResults-statusResultIcon
fa icon-job-{{ project_status }}"> fa icon-job-{{ project_status }}">

View File

@@ -35,7 +35,7 @@ export default function(){
label: 'Schedule', label: 'Schedule',
mode: 'all', mode: 'all',
ngClick: 'configureSchedule()', ngClick: 'configureSchedule()',
awToolTip: 'Schedule future job template runs', awToolTip: 'Schedule job template runs',
dataPlacement: 'top', dataPlacement: 'top',
} }
} }

View File

@@ -35,8 +35,8 @@ export default ['$scope', '$rootScope', '$log', '$stateParams', 'Rest', 'Alert',
$scope.projects.forEach(function(project, i) { $scope.projects.forEach(function(project, i) {
$scope.projects[i].statusIcon = GetProjectIcon(project.status); $scope.projects[i].statusIcon = GetProjectIcon(project.status);
$scope.projects[i].statusTip = GetProjectToolTip(project.status); $scope.projects[i].statusTip = GetProjectToolTip(project.status);
$scope.projects[i].scm_update_tooltip = "Start an SCM update"; $scope.projects[i].scm_update_tooltip = "Get latest SCM revision";
$scope.projects[i].scm_schedule_tooltip = "Schedule future SCM updates"; $scope.projects[i].scm_schedule_tooltip = "Schedule SCM revision updates";
$scope.projects[i].scm_type_class = ""; $scope.projects[i].scm_type_class = "";
if (project.status === 'failed' && project.summary_fields.last_update && project.summary_fields.last_update.status === 'canceled') { if (project.status === 'failed' && project.summary_fields.last_update && project.summary_fields.last_update.status === 'canceled') {

View File

@@ -132,7 +132,7 @@ export default ['$scope', '$rootScope', '$stateParams', 'ProjectsForm', 'Rest',
}); });
$scope.scmBranchLabel = ($scope.scm_type.value === 'svn') ? 'Revision #' : 'SCM Branch'; $scope.scmBranchLabel = ($scope.scm_type.value === 'svn') ? 'Revision #' : 'SCM Branch';
$scope.scm_update_tooltip = i18n._("Start an SCM update"); $scope.scm_update_tooltip = i18n._("Get latest SCM revision");
$scope.scm_type_class = ""; $scope.scm_type_class = "";
if (data.status === 'running' || data.status === 'updating') { if (data.status === 'running' || data.status === 'updating') {
$scope.scm_update_tooltip = i18n._("SCM update currently running"); $scope.scm_update_tooltip = i18n._("SCM update currently running");

View File

@@ -11,23 +11,23 @@ export default
case 'pending': case 'pending':
case 'waiting': case 'waiting':
case 'new': case 'new':
result = i18n._('Queued. Click for details'); result = i18n._('Update queued. Click for details');
break; break;
case 'updating': case 'updating':
case 'running': case 'running':
result = i18n._('Running! Click for details'); result = i18n._('Update running. Click for details');
break; break;
case 'successful': case 'successful':
result = i18n._('Success! Click for details'); result = i18n._('Update succeeded. Click for details');
break; break;
case 'failed': case 'failed':
result = i18n._('Failed. Click for details'); result = i18n._('Update failed. Click for details');
break; break;
case 'missing': case 'missing':
result = i18n._('Missing. Click for details'); result = i18n._('Update missing. Click for details');
break; break;
case 'canceled': case 'canceled':
result = i18n._('Canceled. Click for details'); result = i18n._('Update canceled. Click for details');
break; break;
} }
return result; return result;

View File

@@ -73,8 +73,8 @@ export default ['$scope', '$rootScope', '$log', 'Rest', 'Alert',
function buildTooltips(project) { function buildTooltips(project) {
project.statusIcon = GetProjectIcon(project.status); project.statusIcon = GetProjectIcon(project.status);
project.statusTip = GetProjectToolTip(project.status); project.statusTip = GetProjectToolTip(project.status);
project.scm_update_tooltip = i18n._("Start an SCM update"); project.scm_update_tooltip = i18n._("Get latest SCM revision");
project.scm_schedule_tooltip = i18n._("Schedule future SCM updates"); project.scm_schedule_tooltip = i18n._("Schedule SCM revision updates");
project.scm_type_class = ""; project.scm_type_class = "";
if (project.status === 'failed' && project.summary_fields.last_update && project.summary_fields.last_update.status === 'canceled') { if (project.status === 'failed' && project.summary_fields.last_update && project.summary_fields.last_update.status === 'canceled') {

View File

@@ -186,7 +186,7 @@ export default ['i18n', 'NotificationsList', 'TemplateList',
ngDisabled: '!(project_obj.summary_fields.user_capabilities.edit || canAdd)' ngDisabled: '!(project_obj.summary_fields.user_capabilities.edit || canAdd)'
}, { }, {
name: 'scm_update_on_launch', name: 'scm_update_on_launch',
label: i18n._('Update on Launch'), label: i18n._('Update Revision on Launch'),
type: 'checkbox', type: 'checkbox',
awPopOver: '<p>' + i18n._('Each time a job runs using this project, update the revision of the project prior to starting the job.') + '</p>', awPopOver: '<p>' + i18n._('Each time a job runs using this project, update the revision of the project prior to starting the job.') + '</p>',
dataTitle: i18n._('SCM Update'), dataTitle: i18n._('SCM Update'),

View File

@@ -88,7 +88,7 @@ export default ['i18n', function(i18n) {
label: i18n._('Schedule'), label: i18n._('Schedule'),
mode: 'all', mode: 'all',
ngClick: 'scheduleJob(template)', ngClick: 'scheduleJob(template)',
awToolTip: i18n._('Schedule future job template runs'), awToolTip: i18n._('Schedule job template runs'),
dataPlacement: 'top', dataPlacement: 'top',
}, },
copy: { copy: {