mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 00:35:30 +00:00
link to hubchart site for site detail on pubsites page
This commit is contained in:
parent
61304d80d2
commit
551cf8ee94
1 changed files with 3 additions and 2 deletions
|
@ -28,9 +28,10 @@ class Pubsites extends \Zotlabs\Web\Controller {
|
||||||
if($ret['success']) {
|
if($ret['success']) {
|
||||||
$j = json_decode($ret['body'],true);
|
$j = json_decode($ret['body'],true);
|
||||||
if($j) {
|
if($j) {
|
||||||
$o .= '<table class="table table-striped table-hover"><tr><td>' . t('Hub URL') . '</td><td>' . t('Access Type') . '</td><td>' . t('Registration Policy') . '</td><td>' . t('Software') . '</td><td colspan="2">' . t('Ratings') . '</td></tr>';
|
$o .= '<table class="table table-striped table-hover"><tr><td>' . t('Hub URL') . '</td><td>' . t('Access Type') . '</td><td>' . t('Registration Policy') . '</td><td>' . t('Stats') . '</td><td>' . t('Software') . '</td><td colspan="2">' . t('Ratings') . '</td></tr>';
|
||||||
if($j['sites']) {
|
if($j['sites']) {
|
||||||
foreach($j['sites'] as $jj) {
|
foreach($j['sites'] as $jj) {
|
||||||
|
$m = parse_url($jj['url']);
|
||||||
if(strpos($jj['project'],\Zotlabs\Lib\System::get_platform_name()) === false)
|
if(strpos($jj['project'],\Zotlabs\Lib\System::get_platform_name()) === false)
|
||||||
continue;
|
continue;
|
||||||
$host = strtolower(substr($jj['url'],strpos($jj['url'],'://')+3));
|
$host = strtolower(substr($jj['url'],strpos($jj['url'],'://')+3));
|
||||||
|
@ -43,7 +44,7 @@ class Pubsites extends \Zotlabs\Web\Controller {
|
||||||
$location = '<br /> ';
|
$location = '<br /> ';
|
||||||
}
|
}
|
||||||
$urltext = str_replace(array('https://'), '', $jj['url']);
|
$urltext = str_replace(array('https://'), '', $jj['url']);
|
||||||
$o .= '<tr><td><a href="'. (($jj['sellpage']) ? $jj['sellpage'] : $jj['url'] . '/register' ) . '" ><i class="fa fa-link"></i> ' . $urltext . '</a>' . $location . '</td><td>' . $jj['access'] . '</td><td>' . $jj['register'] . '</td><td>' . ucwords($jj['project']) . '</td><td><a href="ratings/' . $host . '" class="btn-btn-default"><i class="fa fa-eye"></i> ' . t('View') . '</a></td>' . $rate_links . '</tr>';
|
$o .= '<tr><td><a href="'. (($jj['sellpage']) ? $jj['sellpage'] : $jj['url'] . '/register' ) . '" ><i class="fa fa-link"></i> ' . $urltext . '</a>' . $location . '</td><td>' . $jj['access'] . '</td><td>' . $jj['register'] . '</td><td>' . '<a target="stats" href="https://hubchart-tarine.rhcloud.com/hub.jsp?hubFqdn=' . $m['host'] . '"><i class="fa fa-area-chart"></i></a></td><td>' . ucwords($jj['project']) . '</td><td><a href="ratings/' . $host . '" class="btn-btn-default"><i class="fa fa-eye"></i> ' . t('View') . '</a></td>' . $rate_links . '</tr>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue