* week number in graph is now a config parameter, defaults to 25
* urlhelper added to the layout * footer changed to some stats
This commit is contained in:
parent
5047caab1a
commit
b45f0139e5
@ -9,6 +9,8 @@
|
||||
|
||||
return [
|
||||
'app.config' => [
|
||||
'numberOfWeeks' => 25,
|
||||
|
||||
'jira.user' => '',
|
||||
'jira.password' => '',
|
||||
'jira.query.filtered' => 'https://jirapducc.mo.ca.am.ericsson.se/rest/api/2/search?maxResults=1000&jql=filter=%s&fields=created,resolutiondate',
|
||||
|
||||
@ -118,7 +118,7 @@ class JiraCollectorService
|
||||
private function prepareWeekHash(): array
|
||||
{
|
||||
$hash = [];
|
||||
for ($i = 0; $i > -30; $i-- ) {
|
||||
for ($i = 0; $i > -$this->config->get('numberOfWeeks', 25); $i-- ) {
|
||||
$hashIndex = date("Y_W", strtotime("${i} week"));
|
||||
$hash[$hashIndex] = new WeekData();
|
||||
}
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
.app { display: flex; min-height: 100vh; flex-direction: column; }
|
||||
.app-content { flex: 1; }
|
||||
.app-footer { padding-bottom: 1em; }
|
||||
.right { float: right; }
|
||||
.zf-green, h2 a { color: #68b604; }
|
||||
</style>
|
||||
<?=$this->section('stylesheets')?>
|
||||
@ -27,9 +28,10 @@
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="/">
|
||||
<img src="/zf-logo.png" alt="Zend Expressive" />
|
||||
<img src="<?=$this->serverurl('/zf-logo.png')?>" alt="Zend Expressive" />
|
||||
</a>
|
||||
</div>
|
||||
<!--
|
||||
<div class="collapse navbar-collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li>
|
||||
@ -44,6 +46,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
-->
|
||||
</div>
|
||||
</nav>
|
||||
</header>
|
||||
@ -61,7 +64,8 @@
|
||||
<?=$this->section('footer')?>
|
||||
<?php else: ?>
|
||||
<p>
|
||||
© 2005 - <?=date('Y')?> by Zend Technologies Ltd. All rights reserved.
|
||||
Running on PHP<?=PHP_VERSION?>
|
||||
<span class="right">Feasting on <b><?=ceil(memory_get_peak_usage()/1024/1024)?>MB</b> of your precious RAM</span>
|
||||
</p>
|
||||
<?php endif ?>
|
||||
</div>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user