updated to new version of extendedGitGraph
This commit is contained in:
@@ -10,6 +10,9 @@ $this->breadcrumbs =
|
||||
[
|
||||
'Admin',
|
||||
];
|
||||
|
||||
array_push($this->js_files, '/javascript/msmain_admin_script.js');
|
||||
|
||||
?>
|
||||
|
||||
<div class="container">
|
||||
@@ -135,7 +138,12 @@ $this->breadcrumbs =
|
||||
|
||||
<br><br>
|
||||
|
||||
<a class="btn btn-primary" href="?do_egh_update=1"> Update </a>
|
||||
<div style="text-align: center;">
|
||||
<textarea id="egh_ajaxOutput" readonly="readonly"></textarea>
|
||||
<br>
|
||||
<a class="btn btn-primary" href="javascript:startAjaxRefresh()" style="width: 90%"> Update </a>
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
20
www/protected/views/msmain/admin_egh_ajaxReload.php
Normal file
20
www/protected/views/msmain/admin_egh_ajaxReload.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
include 'extendedGitGraph.php';
|
||||
|
||||
$v = new ExtendedGitGraph('Mikescher');
|
||||
|
||||
//##########################################################
|
||||
|
||||
$v->addSecondaryUsername("Sam-Development");
|
||||
|
||||
$v->addSecondaryRepository("Anastron/ColorRunner");
|
||||
|
||||
//##########################################################
|
||||
|
||||
$v->setToken(file_get_contents('api_token.secret'));
|
||||
$v->collect();
|
||||
|
||||
//##########################################################
|
||||
|
||||
$v->generateAndSave();
|
||||
5
www/protected/views/msmain/admin_egh_ajaxStatus.php
Normal file
5
www/protected/views/msmain/admin_egh_ajaxStatus.php
Normal file
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
|
||||
session_start();
|
||||
|
||||
echo $_SESSION['ajax_progress_egh_refresh'];
|
||||
@@ -1,20 +0,0 @@
|
||||
<?php
|
||||
|
||||
$this->pageTitle = 'Update EGH - ' . Yii::app()->name;
|
||||
|
||||
$this->breadcrumbs =
|
||||
[
|
||||
'Admin',
|
||||
];
|
||||
|
||||
|
||||
$v = new ExtendedGitGraph('Mikescher');
|
||||
|
||||
$v->setToken(MsHelper::getStringDBVar('egg_auth-token'));
|
||||
$v->collect();
|
||||
|
||||
$v->generateAndSave();
|
||||
|
||||
$v->output_flushed('Generated and Finished');
|
||||
|
||||
$v->output_flushed('<a href="/admin" class="btn btn-primary">back</a>');
|
||||
Reference in New Issue
Block a user