JoomlaPolska / jezyk-J4

Język polski dla Joomla 4
GNU General Public License v2.0
3 stars 5 forks source link

[4.1] Add Visual Indicator for Failing Scheduled Tasks #148

Closed joomlapl-bot closed 2 years ago

joomlapl-bot commented 2 years ago

PR w związku ze zmianą oryginału https://github.com/joomla/joomla-cms/pull/36765 Poniżej zmiany w oryginale:

Click to expand the diff! ```diff diff --git a/administrator/components/com_scheduler/tmpl/tasks/default.php b/administrator/components/com_scheduler/tmpl/tasks/default.php index 109c90cb38ed..375d7f024497 100644 --- a/administrator/components/com_scheduler/tmpl/tasks/default.php +++ b/administrator/components/com_scheduler/tmpl/tasks/default.php @@ -17,6 +17,7 @@ use Joomla\CMS\Layout\LayoutHelper; use Joomla\CMS\Router\Route; use Joomla\CMS\Session\Session; +use Joomla\Component\Scheduler\Administrator\Task\Status; use Joomla\Component\Scheduler\Administrator\View\Tasks\HtmlView; /** @var HtmlView $this*/ @@ -63,7 +64,8 @@ /** @var Joomla\CMS\WebAsset\WebAssetManager $wa */ $wa = $this->document->getWebAssetManager(); $wa->useScript('multiselect') - ->useScript('com_scheduler.test-task'); + ->useScript('com_scheduler.test-task') + ->useStyle('com_scheduler.admin-view-tasks-css'); ?>
escape($item->title); ?> - - escape($item->title); ?> - + + + escape($item->title); ?> + + + escape($item->title); ?> + + last_exit_code, [Status::OK, Status::WILL_RESUME])): ?> + +
+ last_exit_code); ?> +
+ +
note): ?> diff --git a/administrator/language/en-GB/com_scheduler.ini b/administrator/language/en-GB/com_scheduler.ini index 4e3c9961588e..2a9d9db2cc63 100644 --- a/administrator/language/en-GB/com_scheduler.ini +++ b/administrator/language/en-GB/com_scheduler.ini @@ -81,6 +81,7 @@ COM_SCHEDULER_LAST_RUN_DATE="Last Run Date" COM_SCHEDULER_MANAGER_TASKS="Scheduled Tasks" COM_SCHEDULER_MANAGER_TASK_EDIT="Edit Task" COM_SCHEDULER_MANAGER_TASK_NEW="New Task" +COM_SCHEDULER_MANAGER_TOOLTIP_TASK_FAILING="Task failed. Exit code: %1$d" COM_SCHEDULER_MSG_MANAGE_NO_TASK_PLUGINS="There are no task types matching your query." COM_SCHEDULER_NEW_TASK="New Task" COM_SCHEDULER_N_ITEMS_DELETED="%d tasks deleted." diff --git a/build/media_source/com_scheduler/css/admin-view-tasks.css b/build/media_source/com_scheduler/css/admin-view-tasks.css new file mode 100644 index 000000000000..73cc39390918 --- /dev/null +++ b/build/media_source/com_scheduler/css/admin-view-tasks.css @@ -0,0 +1,5 @@ +.task-title span.failure-indicator { + position: relative; + bottom: 0.5em; + color: #ffb514; +} diff --git a/build/media_source/com_scheduler/joomla.asset.json b/build/media_source/com_scheduler/joomla.asset.json index f09df3fa3e4d..530f26cf4d27 100644 --- a/build/media_source/com_scheduler/joomla.asset.json +++ b/build/media_source/com_scheduler/joomla.asset.json @@ -83,6 +83,11 @@ "name": "com_scheduler.admin-view-task-css", "type": "style", "uri": "com_scheduler/admin-view-task.css" + }, + { + "name": "com_scheduler.admin-view-tasks-css", + "type": "style", + "uri": "com_scheduler/admin-view-tasks.css" } ] } ```