2011-10-11 13:02:57 +00:00
|
|
|
<?php
|
2022-09-08 08:54:04 +00:00
|
|
|
|
2011-10-11 13:02:57 +00:00
|
|
|
/**
|
2014-05-03 23:48:08 +00:00
|
|
|
* Patch testing component for the Joomla! CMS
|
2013-07-13 02:26:21 +00:00
|
|
|
*
|
2018-09-01 14:32:23 +00:00
|
|
|
* @copyright Copyright (C) 2011 - 2012 Ian MacLennan, Copyright (C) 2013 - 2018 Open Source Matters, Inc. All rights reserved.
|
2013-07-13 02:26:21 +00:00
|
|
|
* @license GNU General Public License version 2 or later
|
2011-10-11 13:02:57 +00:00
|
|
|
*/
|
|
|
|
|
2019-08-28 01:20:49 +00:00
|
|
|
use Joomla\CMS\HTML\HTMLHelper;
|
|
|
|
use Joomla\CMS\Language\Text;
|
2020-11-28 13:43:53 +00:00
|
|
|
use Joomla\CMS\Layout\LayoutHelper;
|
2019-08-28 01:20:49 +00:00
|
|
|
use Joomla\CMS\Router\Route;
|
|
|
|
|
2022-09-08 08:54:04 +00:00
|
|
|
// phpcs:disable PSR1.Files.SideEffects
|
|
|
|
\defined('_JEXEC') or die;
|
|
|
|
// phpcs:enable PSR1.Files.SideEffects
|
|
|
|
|
2023-08-17 20:01:47 +00:00
|
|
|
/** @var \Joomla\Component\Patchtester\Administrator\View\Pulls\PullsHtmlView $this */
|
2019-10-17 20:32:19 +00:00
|
|
|
|
2020-04-03 19:49:15 +00:00
|
|
|
HTMLHelper::_('stylesheet', 'com_patchtester/octicons.css', ['version' => '3.5.0', 'relative' => true]);
|
|
|
|
HTMLHelper::_('script', 'com_patchtester/patchtester.js', ['version' => 'auto', 'relative' => true]);
|
2023-08-25 19:57:29 +00:00
|
|
|
|
|
|
|
$listOrder = $this->escape($this->state->get('list.ordering'));
|
|
|
|
$listDirn = $this->escape($this->state->get('list.direction'));
|
2015-05-05 23:25:36 +00:00
|
|
|
?>
|
2019-10-17 20:32:19 +00:00
|
|
|
<form action="<?php echo Route::_('index.php?option=com_patchtester&view=pulls'); ?>" method="post" name="adminForm" id="adminForm">
|
2022-09-08 08:54:04 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<div id="j-main-container" class="j-main-container">
|
|
|
|
<?php echo LayoutHelper::render('joomla.searchtools.default', ['view' => $this]); ?>
|
|
|
|
<div id="j-main-container" class="j-main-container">
|
|
|
|
<?php if (empty($this->items)) :
|
|
|
|
?>
|
|
|
|
<div class="alert alert-info">
|
|
|
|
<span class="fa fa-info-circle" aria-hidden="true"></span><span class="sr-only"><?php echo Text::_('INFO'); ?></span>
|
|
|
|
<?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
else :
|
|
|
|
?>
|
|
|
|
<table class="table">
|
|
|
|
<caption id="captionTable" class="sr-only">
|
|
|
|
<?php echo Text::_('COM_PATCHTESTER_PULLS_TABLE_CAPTION'); ?>, <?php echo Text::_('JGLOBAL_SORTED_BY'); ?>
|
|
|
|
</caption>
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th scope="col" style="width:5%" class="text-center">
|
2023-08-25 19:57:29 +00:00
|
|
|
<?php echo HTMLHelper::_('searchtools.sort', 'COM_PATCHTESTER_PULL_ID', 'pulls.pull_id', $listDirn, $listOrder); ?>
|
2022-09-08 08:54:04 +00:00
|
|
|
</th>
|
|
|
|
<th scope="col" style="min-width:100px">
|
2023-08-25 19:57:29 +00:00
|
|
|
<?php echo HTMLHelper::_('searchtools.sort', 'JGLOBAL_TITLE', 'pulls.title', $listDirn, $listOrder); ?>
|
2022-09-08 08:54:04 +00:00
|
|
|
</th>
|
|
|
|
<th scope="col" style="width:8%" class="d-none d-md-table-cell text-center">
|
|
|
|
<?php echo Text::_('COM_PATCHTESTER_BRANCH'); ?>
|
|
|
|
</th>
|
|
|
|
<th scope="col" style="width:8%" class="d-none d-md-table-cell text-center">
|
|
|
|
<?php echo Text::_('COM_PATCHTESTER_READY_TO_COMMIT'); ?>
|
|
|
|
</th>
|
|
|
|
<th scope="col" style="width:10%" class="text-center">
|
|
|
|
<?php echo Text::_('JSTATUS'); ?>
|
|
|
|
</th>
|
|
|
|
<th scope="col" style="width:15%" class="text-center">
|
|
|
|
<?php echo Text::_('COM_PATCHTESTER_TEST_THIS_PATCH'); ?>
|
|
|
|
</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<?php echo $this->loadTemplate('items'); ?>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
<?php
|
|
|
|
endif; ?>
|
2015-02-22 23:44:35 +00:00
|
|
|
|
2022-09-08 08:54:04 +00:00
|
|
|
<?php echo $this->pagination->getListFooter(); ?>
|
2011-10-11 13:02:57 +00:00
|
|
|
|
2022-09-08 08:54:04 +00:00
|
|
|
<input type="hidden" name="task" value="" />
|
|
|
|
<input type="hidden" name="boxchecked" value="0" />
|
|
|
|
<input type="hidden" name="pull_id" id="pull_id" value="" />
|
|
|
|
<?php echo HTMLHelper::_('form.token'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-10-01 11:23:01 +00:00
|
|
|
</form>
|