-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from matthiaslegac/master
cam18326: ajout l'affichage dans la liste des tâches dans l'admin
- Loading branch information
Showing
4 changed files
with
112 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
Koha/Plugin/PDFtoCover/inc/en/background_jobs/plugin_pdftocover_greeter.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[% USE Koha %] | ||
|
||
[% BLOCK process %] | ||
[% END %] | ||
|
||
[% SET report = job.decoded_data %] | ||
[% BLOCK report %] | ||
[% IF job.status == 'finished' %] | ||
[% IF report %] | ||
<div class="dialog message"> | ||
[% report.report.total_success | html %] covers have successfully been genereted.<br> | ||
[% IF report.report.total_success != report.report.total_greets %] | ||
[% report.report.total_greets - report.report.total_success | html %] covers have not been genereted, see the logs for details. | ||
[% END %] | ||
</div> | ||
[% ELSE %] | ||
<div class="dialog message"> | ||
Job data could not be read, see the logs for details | ||
</div> | ||
[% END %] | ||
[% ELSIF job.status == 'cancelled' %] | ||
<span>The job has been cancelled before it finished.</span> | ||
[% END %] | ||
[% END %] | ||
|
||
[% BLOCK detail %] | ||
[% END %] | ||
|
||
[% BLOCK js %] | ||
[% END %] |
30 changes: 30 additions & 0 deletions
30
Koha/Plugin/PDFtoCover/inc/fr-CA/background_jobs/plugin_pdftocover_greeter.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[% USE Koha %] | ||
|
||
[% BLOCK process %] | ||
[% END %] | ||
|
||
[% SET report = job.decoded_data %] | ||
[% BLOCK report %] | ||
[% IF job.status == 'finished' %] | ||
[% IF report %] | ||
<div class="dialog message"> | ||
[% report.report.total_success | html %] couvertures ont été générées avec succès.<br> | ||
[% IF report.report.total_success != report.report.total_greets %] | ||
[% report.report.total_greets - report.report.total_success | html %] couvertures n'ont pas été générées, veuillez vérifier les registres pour plus d'information. | ||
[% END %] | ||
</div> | ||
[% ELSE %] | ||
<div class="dialog message"> | ||
Les données de la tâche sont illisibles, veuillez vérifier les registres pour plus d'information. </div> | ||
</div> | ||
[% END %] | ||
[% ELSIF job.status == 'cancelled' %] | ||
<span>La tâche a été annulée avant de finir.</span> | ||
[% END %] | ||
[% END %] | ||
|
||
[% BLOCK detail %] | ||
[% END %] | ||
|
||
[% BLOCK js %] | ||
[% END %] |
30 changes: 30 additions & 0 deletions
30
Koha/Plugin/PDFtoCover/inc/fr/background_jobs/plugin_pdftocover_greeter.inc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
[% USE Koha %] | ||
|
||
[% BLOCK process %] | ||
[% END %] | ||
|
||
[% SET report = job.decoded_data %] | ||
[% BLOCK report %] | ||
[% IF job.status == 'finished' %] | ||
[% IF report %] | ||
<div class="dialog message"> | ||
[% report.report.total_success | html %] couvertures ont été générées avec succès.<br> | ||
[% IF report.report.total_success != report.report.total_greets %] | ||
[% report.report.total_greets - report.report.total_success | html %] couvertures n'ont pas été générées, veuillez vérifier les registres pour plus d'information. | ||
[% END %] | ||
</div> | ||
[% ELSE %] | ||
<div class="dialog message"> | ||
Les données de la tâche sont illisibles, veuillez vérifier les registres pour plus d'information. </div> | ||
</div> | ||
[% END %] | ||
[% ELSIF job.status == 'cancelled' %] | ||
<span>La tâche a été annulée avant de finir.</span> | ||
[% END %] | ||
[% END %] | ||
|
||
[% BLOCK detail %] | ||
[% END %] | ||
|
||
[% BLOCK js %] | ||
[% END %] |