diff --git a/administrator/templates/hathor/html/com_patchtester/pulls/default.php b/administrator/templates/hathor/html/com_patchtester/pulls/default.php index ea24129..f58954c 100644 --- a/administrator/templates/hathor/html/com_patchtester/pulls/default.php +++ b/administrator/templates/hathor/html/com_patchtester/pulls/default.php @@ -8,50 +8,109 @@ 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')); +$filterApplied = $this->escape($this->state->get('filter.applied')); +$sortFields = $this->getSortFields(); -?> - + Joomla.orderTable = function() { + table = document.getElementById('sortTable'); + direction = document.getElementById('directionTable'); + order = table.options[table.selectedIndex].value; + if (order != '" . $listOrder . "') { + dirn = 'asc'; + } else { + dirn = direction.options[direction.selectedIndex].value; + } + + Joomla.tableOrdering(order, dirn, ''); + } + " +); + +JFactory::getDocument()->addStyleDeclaration( + ' + .icon-48-patchtester { background-image:url("/media/com_patchtester/images/icon-48-patchtester.png"); } + ' +); +echo JHtmlBootstrap::renderModal( + 'modal-refresh', array( + 'url' => JUri::root() . 'administrator/index.php?option=com_patchtester&view=fetch&tmpl=component', + 'title' => JText::_('COM_PATCHTESTER_TOOLBAR_FETCH_DATA'), + 'width' => '800px', + 'height' => '300px' + ) +); +?>
-
- - -
+
+ +
+ + +
+
+ + +
+
+ + +
+
+ + +
+
- - - - - + + @@ -69,7 +128,7 @@ $listDirn = $this->escape($this->state->get('list.direction')); - + diff --git a/administrator/templates/hathor/html/com_patchtester/pulls/default_items.php b/administrator/templates/hathor/html/com_patchtester/pulls/default_items.php index 9aaf40e..7fb077b 100644 --- a/administrator/templates/hathor/html/com_patchtester/pulls/default_items.php +++ b/administrator/templates/hathor/html/com_patchtester/pulls/default_items.php @@ -8,35 +8,36 @@ defined('_JEXEC') or die; +JHtml::stylesheet("com_patchtester/octicons.css", false, true, false); 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; + ?> +
+ -
-
+ -
-
I - + + - + + + + + +
- number; ?> + pull_id; ?> - +

escape($item->title); ?> +

+
+ + - body) : - echo JHtml::_('tooltip', htmlspecialchars($item->body), 'Info'); - else : - echo ' '; - endif; - ?> + + + - applied) : ?> + applied) : ?> @@ -47,10 +48,10 @@ foreach ($this->items as $i => $item) : - applied) : - echo '' . JText::_('COM_PATCHTESTER_REVERT_PATCH') . ''; + applied) : + echo '' . JText::_('COM_PATCHTESTER_REVERT_PATCH') . ''; else : - echo '' . JText::_('COM_PATCHTESTER_APPLY_PATCH') . ''; + echo '' . JText::_('COM_PATCHTESTER_APPLY_PATCH') . ''; endif; ?>