From d1a8e14e64b2d36762f8406f330958db344be4d6 Mon Sep 17 00:00:00 2001 From: Nikolai Plath Date: Tue, 12 Jun 2012 13:42:03 -0500 Subject: [PATCH] Move out items template --- .../views/pulls/tmpl/default.php | 189 +++++++----------- .../views/pulls/tmpl/default_items.php | 89 +++++++++ 2 files changed, 162 insertions(+), 116 deletions(-) create mode 100644 administrator/components/com_patchtester/views/pulls/tmpl/default_items.php diff --git a/administrator/components/com_patchtester/views/pulls/tmpl/default.php b/administrator/components/com_patchtester/views/pulls/tmpl/default.php index 61c7354..8ba82ad 100644 --- a/administrator/components/com_patchtester/views/pulls/tmpl/default.php +++ b/administrator/components/com_patchtester/views/pulls/tmpl/default.php @@ -1,146 +1,103 @@ escape($this->state->get('list.ordering')); -$listDirn = $this->escape($this->state->get('list.direction')); +$listOrder = $this->escape($this->state->get('list.ordering')); +$listDirn = $this->escape($this->state->get('list.direction')); ?> -
+ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - - + + + - items as $i => $item) : - if (isset($this->patches[$item->number])) { - $patch = $this->patches[$item->number]; - } else { - $patch = false; - } - ?> - - - - - - - - - + loadTemplate('items'); ?>
- - - - - - - -
- -
- - -
- - - - - - - - - - - -
+ + + + + + + +
+ +
+
+ + + + + + I + + + + + +
-
+
- id); ?> - - number; ?> - - title; ?> - - joomlacode_issue > 0) { - echo ''; - echo '[#' . $item->joomlacode_issue . ']'; - } - ?> - - applied) { - echo JText::_('COM_PATCHTESTER_APPLIED'); - } else { - echo JText::_('COM_PATCHTESTER_NOT_APPLIED'); - } - ?> - - applied) { - echo ''.JText::_('COM_PATCHTESTER_REVERT_PATCH').''; - } else { - echo ''.JText::_('COM_PATCHTESTER_APPLY_PATCH').''; - } - ?> -
- - - - - + + + + +
diff --git a/administrator/components/com_patchtester/views/pulls/tmpl/default_items.php b/administrator/components/com_patchtester/views/pulls/tmpl/default_items.php new file mode 100644 index 0000000..77f3719 --- /dev/null +++ b/administrator/components/com_patchtester/views/pulls/tmpl/default_items.php @@ -0,0 +1,89 @@ +items as $i => $item) : + if (isset($this->patches[$item->number])) : + $patch = $this->patches[$item->number]; + else : + $patch = false; + endif; + ?> + + + id); ?> + + + number; ?> + + + + title; ?> + + + + body) : + echo JHtml::_('tooltip', htmlspecialchars($item->body), 'Info'); + else : + echo ' '; + endif; + ?> + + + joomlacode_issue) + { + $title = ' title="Open link::'.JText::_('COM_PATCHTESTER_OPEN_IN_JOOMLACODE').'"'; + + if(is_int($item->joomlacode_issue)) + { + echo ''; + echo '[#' . $item->joomlacode_issue . ']'; + } + else + { + echo ''; + echo '[#joomlacode]'; + } + } + ?> + + + applied) + { + echo '
'; + echo JText::_('COM_PATCHTESTER_APPLIED'); + echo '
'; + } + else + { + echo JText::_('COM_PATCHTESTER_NOT_APPLIED'); + } + ?> + + + applied) + { + echo '' . JText::_('COM_PATCHTESTER_REVERT_PATCH') . ''; + } + else + { + echo '' . JText::_('COM_PATCHTESTER_APPLY_PATCH') . ''; + } + ?> + + +