33
0
mirror of https://github.com/joomla-extensions/patchtester.git synced 2024-12-23 03:19:00 +00:00

Merge pull request #103 from elkuku/user-test-sha

User test sha
This commit is contained in:
Michael Babker 2015-09-05 12:22:56 -04:00
commit bab7c4fa87
10 changed files with 18 additions and 3 deletions

View File

@ -347,7 +347,8 @@ class PullsModel extends \JModelDatabase
$pull->number,
$this->getDb()->quote($pull->title),
$this->getDb()->quote(\JHtml::_('string.truncate', $pull->body, 100)),
$this->getDb()->quote($pull->html_url)
$this->getDb()->quote($pull->html_url),
$this->getDb()->quote($pull->head->sha)
);
$data[] = implode($pullData, ',');
@ -361,7 +362,8 @@ class PullsModel extends \JModelDatabase
$this->getDb()->quoteName('pull_id'),
$this->getDb()->quoteName('title'),
$this->getDb()->quoteName('description'),
$this->getDb()->quoteName('pull_url')
$this->getDb()->quoteName('pull_url'),
$this->getDb()->quoteName('sha')
)
)
->values($data)

View File

@ -97,6 +97,9 @@ $sortFields = $this->getSortFields();
<th class="nowrap">
<?php echo \JText::_('JGLOBAL_TITLE'); ?>
</th>
<th class="nowrap">
<?php echo \JText::_('COM_PATCHTESTER_SHA'); ?>
</th>
<th width="8%" class="nowrap center">
<?php echo \JText::_('COM_PATCHTESTER_GITHUB'); ?>
</th>

View File

@ -22,6 +22,9 @@ foreach ($this->items as $i => $item) :
<td>
<span class="hasTooltip" title="<strong>Info</strong><br/><?php echo $this->escape($item->description); ?>"><?php echo $this->escape($item->title); ?></span>
</td>
<td>
<?php echo substr($item->sha, 0, 10); ?>
</td>
<td class="center">
<a class="btn btn-small btn-info" href="<?php echo $item->pull_url; ?>" target="_blank">
<span class="octicon octicon-mark-github"></span> <?php echo \JText::_('COM_PATCHTESTER_GITHUB'); ?>

View File

@ -4,6 +4,7 @@ CREATE TABLE IF NOT EXISTS `#__patchtester_pulls` (
`title` varchar(200) NOT NULL,
`description` varchar(150) NOT NULL DEFAULT '',
`pull_url` varchar(255) NOT NULL,
`sha` varchar(40) NOT NULL,
PRIMARY KEY (`id`)
) DEFAULT CHARSET=utf8;

View File

@ -4,6 +4,7 @@ CREATE TABLE IF NOT EXISTS "#__patchtester_pulls" (
"title" character varying(200) NOT NULL,
"description" character varying(150) DEFAULT '' NOT NULL,
"pull_url" character varying(255) NOT NULL,
"sha" character varying(40) NOT NULL,
PRIMARY KEY ("id")
);

View File

@ -4,6 +4,7 @@ CREATE TABLE [#__patchtester_pulls] (
[title] [nvarchar](200) NOT NULL,
[description] [nvarchar](150) NOT NULL DEFAULT '',
[pull_url] [nvarchar](255) NOT NULL,
[sha] [nvarchar](40) NOT NULL,
CONSTRAINT [PK_#__patchtester_pulls] PRIMARY KEY CLUSTERED
(
[id] ASC

View File

@ -59,4 +59,5 @@ COM_PATCHTESTER_REQUIREMENTS_NOT_MET="Ihr System erfüllt nicht die Mindestvorra
COM_PATCHTESTER_REVERT_OK="Der Patch wurde zurückgenommen."
COM_PATCHTESTER_REVERT_PATCH="Patch zurücknehmen"
COM_PATCHTESTER_TEST_THIS_PATCH="Diesen Patch testen"
COM_PATCHTESTER_TOOLBAR_FETCH_DATA="Daten abrufen"
COM_PATCHTESTER_TOOLBAR_FETCH_DATA="Daten abrufen"
COM_PATCHTESTER_SHA="SHA"

View File

@ -60,3 +60,4 @@ COM_PATCHTESTER_REVERT_OK="Patch successfully reverted"
COM_PATCHTESTER_REVERT_PATCH="Revert Patch"
COM_PATCHTESTER_TEST_THIS_PATCH="Test This Patch"
COM_PATCHTESTER_TOOLBAR_FETCH_DATA="Fetch Data"
COM_PATCHTESTER_SHA="SHA"

View File

@ -60,3 +60,4 @@ COM_PATCHTESTER_REVERT_OK="Correctif retiré avec succès"
COM_PATCHTESTER_REVERT_PATCH="Retirer le correctif"
COM_PATCHTESTER_TEST_THIS_PATCH="Tester ce correctif"
COM_PATCHTESTER_TOOLBAR_FETCH_DATA="Extraire les données"
COM_PATCHTESTER_SHA="SHA"

View File

@ -44,3 +44,4 @@ COM_PATCHTESTER_REVERT_OK="Patch met succes ongedaan gemaakt"
COM_PATCHTESTER_REVERT_PATCH="Patch ongedaan maken"
COM_PATCHTESTER_TEST_THIS_PATCH="Test deze patch"
COM_PATCHTESTER_TOOLBAR_FETCH_DATA="Gegevens ophalen"
COM_PATCHTESTER_SHA="SHA"