More info on calendar

New: Show more information of grabbed and failed downloads on calendar
This commit is contained in:
Mark McDowall 2014-08-06 23:23:13 -07:00
parent 75236118dd
commit c3fee509f6
3 changed files with 35 additions and 12 deletions

View file

@ -37,14 +37,19 @@ define(
title = 'Pending';
}
if (status === 'failed') {
icon = 'icon-nd-download-failed';
title = 'Download failed: check download client for more details';
}
if (errorMessage !== '') {
if (status === 'completed') {
icon = 'icon-nd-import-failed';
title = "Import failed";
title = 'Import failed';
}
else {
icon = 'icon-nd-download-failed';
title = "Download failed";
title = 'Download failed';
}
this.$el.html('<i class="{0}"></i>'.format(icon));