mirror of
https://github.com/LBRYFoundation/pool.git
synced 2025-08-23 17:37:25 +00:00
coins: add link_site field
don't forget to restart memcached service to refresh the db structure
This commit is contained in:
parent
3498e311da
commit
b43fa9236b
5 changed files with 21 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
|||
-- Recent additions to add after db init (.gz)
|
||||
-- mysql yaamp -p < file.sql
|
||||
|
||||
-- don't forget to restart memcached service to refresh the db structure
|
||||
|
||||
ALTER TABLE `coins` ADD `rpcssl` TINYINT(1) NOT NULL DEFAULT '0' AFTER `rpcport`;
|
||||
ALTER TABLE `coins` ADD `rpccurl` TINYINT(1) NOT NULL DEFAULT '0' AFTER `rpcport`;
|
||||
ALTER TABLE `coins` ADD `rpccert` VARCHAR(255) NULL AFTER `rpcssl`;
|
||||
|
|
|
@ -527,6 +527,9 @@ function getAdminWalletLinks($coin, $info=NULL, $src='wallet')
|
|||
if(!empty($coin->link_github))
|
||||
$html .= CHtml::link('git', $coin->link_github, array('target'=>'_blank')).' ';
|
||||
|
||||
if(!empty($coin->link_site))
|
||||
$html .= CHtml::link('site', $coin->link_site, array('target'=>'_blank')).' ';
|
||||
|
||||
$html .= CHtml::link('google', 'http://google.com/search?q='.urlencode($coin->name.' '.$coin->symbol.' bitcointalk'), array('target'=>'_blank'));
|
||||
|
||||
return $html;
|
||||
|
|
|
@ -47,6 +47,12 @@ echo CUFHtml::activeTextField($coin, 'link_github');
|
|||
echo "<p class='formHint2'></p>";
|
||||
echo CUFHtml::closeCtrlHolder();
|
||||
|
||||
echo CUFHtml::openActiveCtrlHolder($coin, 'link_site');
|
||||
echo CUFHtml::activeLabelEx($coin, 'link_site');
|
||||
echo CUFHtml::activeTextField($coin, 'link_site');
|
||||
echo "<p class='formHint2'></p>";
|
||||
echo CUFHtml::closeCtrlHolder();
|
||||
|
||||
echo CUFHtml::openActiveCtrlHolder($coin, 'link_exchange');
|
||||
echo CUFHtml::activeLabelEx($coin, 'link_exchange');
|
||||
echo CUFHtml::activeTextField($coin, 'link_exchange');
|
||||
|
|
|
@ -69,7 +69,10 @@ foreach($list as $coin)
|
|||
echo "<td>";
|
||||
|
||||
if(!empty($coin->link_bitcointalk))
|
||||
echo "<a href='$coin->link_bitcointalk' target=_blank>forum</a> ";
|
||||
echo CHtml::link('forum', $coin->link_bitcointalk, array('target'=>'_blank'));
|
||||
|
||||
elseif(!empty($coin->link_site))
|
||||
echo CHtml::link('site', $coin->link_site, array('target'=>'_blank'));
|
||||
|
||||
echo "</td>";
|
||||
echo "</tr>";
|
||||
|
|
|
@ -327,6 +327,12 @@ echo CUFHtml::activeTextField($coin, 'link_github');
|
|||
echo "<p class='formHint2'></p>";
|
||||
echo CUFHtml::closeCtrlHolder();
|
||||
|
||||
echo CUFHtml::openActiveCtrlHolder($coin, 'link_site');
|
||||
echo CUFHtml::activeLabelEx($coin, 'link_site');
|
||||
echo CUFHtml::activeTextField($coin, 'link_site');
|
||||
echo "<p class='formHint2'></p>";
|
||||
echo CUFHtml::closeCtrlHolder();
|
||||
|
||||
echo CUFHtml::openActiveCtrlHolder($coin, 'link_exchange');
|
||||
echo CUFHtml::activeLabelEx($coin, 'link_exchange');
|
||||
echo CUFHtml::activeTextField($coin, 'link_exchange');
|
||||
|
|
Loading…
Add table
Reference in a new issue