зеркало из https://github.com/mozilla/gecko-dev.git
Bug 576321: Add "You missed this study" icon to legacy studies user didn't participate in. r+a=dtownsend
This commit is contained in:
Родитель
fd0b5e28d8
Коммит
a18a09b0f1
|
@ -371,7 +371,18 @@ var TestPilotXulWindow = {
|
|||
}
|
||||
} else {
|
||||
if (task.status == TaskConstants.STATUS_MISSED) {
|
||||
// TODO use Sean's icon for missed studies
|
||||
// Icon for missed studies
|
||||
let hbox = document.createElement("hbox");
|
||||
newRow.setAttribute("class", "tp-opted-out");
|
||||
statusVbox.appendChild(this.makeSpacer());
|
||||
statusVbox.appendChild(hbox);
|
||||
this.addLabel(
|
||||
statusVbox,
|
||||
this._stringBundle.getString("testpilot.studiesWindow.missedStudy"));
|
||||
statusVbox.appendChild(this.makeSpacer());
|
||||
hbox.appendChild(this.makeSpacer());
|
||||
this.addImg(hbox, "study-missed");
|
||||
hbox.appendChild(this.makeSpacer());
|
||||
} else {
|
||||
this.addThanksMessage(statusVbox);
|
||||
numFinishedStudies ++;
|
||||
|
|
|
@ -100,6 +100,13 @@ image.study-canceled {
|
|||
margin-right: 8px;
|
||||
}
|
||||
|
||||
image.study-missed {
|
||||
list-style-image: url("chrome://testpilot/skin/status-missed.png");
|
||||
height: 32px;
|
||||
width: 64px;
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
image.new-study {
|
||||
list-style-image: url("chrome://testpilot/skin/tp-study-48x48.png");
|
||||
height: 48px;
|
||||
|
|
|
@ -15,6 +15,7 @@ testpilot.studiesWindow.unableToReachServer = Unable to reach Mozilla; please tr
|
|||
testpilot.studiesWindow.thanksForContributing = Thanks for contributing!
|
||||
testpilot.studiesWindow.finishedOn = Finished on %S
|
||||
testpilot.studiesWindow.canceledStudy = (You canceled this study)
|
||||
testpilot.studiesWindow.missedStudy = (You missed this study)
|
||||
testpilot.studiesWindow.willStart = Will start on %S
|
||||
testpilot.studiesWindow.gatheringData = Currently gathering data.
|
||||
testpilot.studiesWindow.willFinish = Will finish on %S
|
||||
|
|
Загрузка…
Ссылка в новой задаче