mirror of
https://github.com/joomla-extensions/patchtester.git
synced 2025-01-23 15:18:36 +00:00
Hathor is broken
This commit is contained in:
parent
9e5c274e3c
commit
8d32494a93
@ -8,20 +8,21 @@
|
||||
|
||||
defined('_JEXEC') or die;
|
||||
|
||||
JHtml::_('behavior.tooltip');
|
||||
JHtml::_('behavior.modal');
|
||||
JHtml::_('behavior.core');
|
||||
JHtml::_('bootstrap.tooltip');
|
||||
|
||||
$listOrder = $this->escape($this->state->get('list.ordering'));
|
||||
$listDirn = $this->escape($this->state->get('list.direction'));
|
||||
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
JFactory::getDocument()->addScriptDeclaration(
|
||||
"
|
||||
var submitpatch = function (task, id) {
|
||||
document.getElementById('pull_id').set('value', id);
|
||||
return Joomla.submitbutton(task);
|
||||
}
|
||||
</script>
|
||||
|
||||
"
|
||||
);
|
||||
?>
|
||||
<form action="<?php echo JRoute::_('index.php?option=com_patchtester&view=pulls'); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<div id="j-main-container">
|
||||
<fieldset id="filter-bar">
|
||||
|
@ -11,32 +11,30 @@ defined('_JEXEC') or die;
|
||||
foreach ($this->items as $i => $item) :
|
||||
$status = '';
|
||||
|
||||
if (isset($this->patches[$item->number])) :
|
||||
$patch = $this->patches[$item->number];
|
||||
$status = ($patch->applied) ? ' success' : '';
|
||||
else :
|
||||
$patch = false;
|
||||
if ($item->applied) :
|
||||
$status = ' success';
|
||||
endif;
|
||||
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?><?php echo $status ?>">
|
||||
<td class="center">
|
||||
<?php echo $item->number; ?>
|
||||
<?php echo $item->pull_id; ?>
|
||||
</td>
|
||||
<td>
|
||||
<a class="icon icon16-github hasTip" title="<?php echo JText::_('COM_PATCHTESTER_OPEN_IN_GITHUB'); ?>" href="<?php echo $item->html_url; ?>" target="_blank">
|
||||
<a class="icon icon16-github hasTooltip" title="<?php echo JText::_('COM_PATCHTESTER_OPEN_IN_GITHUB'); ?>" href="<?php echo $item->pull_url; ?>" target="_blank">
|
||||
<?php echo $this->escape($item->title); ?>
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
<?php if ($item->body) :
|
||||
echo JHtml::_('tooltip', htmlspecialchars($item->body), 'Info');
|
||||
<?php if ($item->title) :
|
||||
echo JHtml::_('tooltip', htmlspecialchars($item->title), 'Info');
|
||||
else :
|
||||
echo ' ';
|
||||
endif;
|
||||
?>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($patch && $patch->applied) : ?>
|
||||
<?php if ($item->applied) : ?>
|
||||
<span class="label label-success">
|
||||
<?php echo JText::_('COM_PATCHTESTER_APPLIED'); ?>
|
||||
</span>
|
||||
@ -47,10 +45,10 @@ foreach ($this->items as $i => $item) :
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($patch && $patch->applied) :
|
||||
echo '<a class="btn btn-small btn-success" href="javascript:submitpatch(\'pull.revert\', ' . (int) $patch->id . ');">' . JText::_('COM_PATCHTESTER_REVERT_PATCH') . '</a>';
|
||||
<?php if ($item->applied) :
|
||||
echo '<a class="btn btn-small btn-success" href="javascript:submitpatch(\'revert\', ' . (int) $item->applied . ');">' . JText::_('COM_PATCHTESTER_REVERT_PATCH') . '</a>';
|
||||
else :
|
||||
echo '<a class="btn btn-small btn-primary" href="javascript:submitpatch(\'pull.apply\', ' . (int) $item->number . ');">' . JText::_('COM_PATCHTESTER_APPLY_PATCH') . '</a>';
|
||||
echo '<a class="btn btn-small btn-primary" href="javascript:submitpatch(\'apply\', ' . (int) $item->pull_id . ');">' . JText::_('COM_PATCHTESTER_APPLY_PATCH') . '</a>';
|
||||
endif; ?>
|
||||
</td>
|
||||
</tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user