1
0

Added <ExtendedGitGraph> (zu /about & /admin)

This commit is contained in:
2014-06-07 19:53:13 +02:00
parent a6c751a636
commit 02aa4a2cf4
15 changed files with 906 additions and 353 deletions

View File

@@ -90,5 +90,14 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="/javascript/scripts.js"></script>
<?php
foreach($this->js_scripts as $script ) {
echo '<script type="text/javascript" language="JavaScript">', PHP_EOL;
echo $script;
echo '</script>', PHP_EOL;
}
?>
</body>
</html>

View File

@@ -27,6 +27,9 @@ $this->selectedNav = 'about';
<p>If you want you can look <?php echo MsHtml::link('here', '/programs'); ?> at the things I programd </p>
</div>
<?php echo (new ExtendedGitGraph('Mikescher'))->loadFinished(); ?>
<br />
<div class="well cstm-well-light">
<?php
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm',
@@ -35,6 +38,7 @@ $this->selectedNav = 'about';
]);
?>
<fieldset>
<legend>Contact</legend>
<?php

View File

@@ -39,7 +39,7 @@
); ?>
</div>
<div class="span3">
<div class="span3" style="display: none">
<?php
echo MsHtml::lead('Programs');
@@ -52,7 +52,7 @@
); ?>
</div>
<div class="span3">
<div class="span3" style="display: none">
<?php
echo MsHtml::lead('Programs');
@@ -65,4 +65,23 @@
); ?>
</div>
</div>
<div class="well well-small">
<?php
$egh = new ExtendedGitGraph('Mikescher');
$egh->loadData();
?>
<h2>ExtendedGitGraph</h2>
<hr>
<strong>Last Update: </strong> <?php echo $egh->getFinishedDate()->format('d.m.Y H:i'); ?> <br>
<strong>Repositories: </strong> <?php echo count($egh->repositories); ?> <br>
<strong>Commits: </strong> <?php echo count($egh->commits); ?> <br>
<br><br>
<a class="btn btn-primary" href="?do_egh_update=1"> Update </a>
</div>
</div>

View File

@@ -0,0 +1,13 @@
<?php
$v = new ExtendedGitGraph('Mikescher');
//$v->authenticate('7e26c5f1621349c14a7d');
$v->setToken('7b3f6443cdd4b2f92d75c4c8aa83cfda6c7ca3ce');
$v->collect();
$v->generateAndSave();
$v->output_flushed('Generated and Finished');
$v->output_flushed('<a href="/admin" class="btn btn-primary">back</a>');