Improve project page titles
This commit is contained in:
parent
a3b4b25df2
commit
9d6715ddc0
|
|
@ -15,6 +15,8 @@ New features:
|
|||
|
||||
Improvements:
|
||||
|
||||
* Improve project page title
|
||||
* Remove sidebar titles when not necessary
|
||||
* Internal events management refactoring
|
||||
* Handle header X-Real-IP to get IP address
|
||||
* Display project name for task auto-complete fields
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ class AnalyticController extends BaseController
|
|||
'metrics' => $this->projectDailyStatsModel->getRawMetrics($project['id'], $from, $to),
|
||||
'date_format' => $this->configModel->get('application_date_format'),
|
||||
'date_formats' => $this->dateParser->getAvailableFormats($this->dateParser->getDateFormats()),
|
||||
'title' => t('Lead and Cycle time for "%s"', $project['name']),
|
||||
'title' => t('Lead and cycle time'),
|
||||
)));
|
||||
}
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ class AnalyticController extends BaseController
|
|||
'project' => $project,
|
||||
'paginator' => $paginator,
|
||||
'metrics' => $this->estimatedTimeComparisonAnalytic->build($project['id']),
|
||||
'title' => t('Compare hours for "%s"', $project['name']),
|
||||
'title' => t('Estimated vs actual time'),
|
||||
)));
|
||||
}
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ class AnalyticController extends BaseController
|
|||
$this->response->html($this->helper->layout->analytic('analytic/avg_time_columns', array(
|
||||
'project' => $project,
|
||||
'metrics' => $this->averageTimeSpentColumnAnalytic->build($project['id']),
|
||||
'title' => t('Average time spent into each column for "%s"', $project['name']),
|
||||
'title' => t('Average time into each column'),
|
||||
)));
|
||||
}
|
||||
|
||||
|
|
@ -92,7 +92,7 @@ class AnalyticController extends BaseController
|
|||
$this->response->html($this->helper->layout->analytic('analytic/tasks', array(
|
||||
'project' => $project,
|
||||
'metrics' => $this->taskDistributionAnalytic->build($project['id']),
|
||||
'title' => t('Task repartition for "%s"', $project['name']),
|
||||
'title' => t('Task distribution'),
|
||||
)));
|
||||
}
|
||||
|
||||
|
|
@ -108,7 +108,7 @@ class AnalyticController extends BaseController
|
|||
$this->response->html($this->helper->layout->analytic('analytic/users', array(
|
||||
'project' => $project,
|
||||
'metrics' => $this->userDistributionAnalytic->build($project['id']),
|
||||
'title' => t('User repartition for "%s"', $project['name']),
|
||||
'title' => t('User repartition'),
|
||||
)));
|
||||
}
|
||||
|
||||
|
|
@ -119,7 +119,7 @@ class AnalyticController extends BaseController
|
|||
*/
|
||||
public function cfd()
|
||||
{
|
||||
$this->commonAggregateMetrics('analytic/cfd', 'total', 'Cumulative flow diagram for "%s"');
|
||||
$this->commonAggregateMetrics('analytic/cfd', 'total', t('Cumulative flow diagram'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -129,7 +129,7 @@ class AnalyticController extends BaseController
|
|||
*/
|
||||
public function burndown()
|
||||
{
|
||||
$this->commonAggregateMetrics('analytic/burndown', 'score', 'Burndown chart for "%s"');
|
||||
$this->commonAggregateMetrics('analytic/burndown', 'score', t('Burndown chart'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
@ -157,7 +157,7 @@ class AnalyticController extends BaseController
|
|||
'project' => $project,
|
||||
'date_format' => $this->configModel->get('application_date_format'),
|
||||
'date_formats' => $this->dateParser->getAvailableFormats($this->dateParser->getDateFormats()),
|
||||
'title' => t($title, $project['name']),
|
||||
'title' => $title,
|
||||
)));
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -156,6 +156,10 @@ class LayoutHelper extends Base
|
|||
*/
|
||||
public function analytic($template, array $params)
|
||||
{
|
||||
if (isset($params['project']['name'])) {
|
||||
$params['title'] = $params['project']['name'].' > '.$params['title'];
|
||||
}
|
||||
|
||||
return $this->subLayout('analytic/layout', 'analytic/sidebar', $template, $params);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<div class="page-header">
|
||||
<h2><?= t('Compare Estimated Time vs Actual Time') ?></h2>
|
||||
<h2><?= t('Estimated vs actual time') ?></h2>
|
||||
</div>
|
||||
|
||||
<div class="listing">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<div class="page-header">
|
||||
<h2><?= t('Subtasks exportation for "%s"', $project['name']) ?></h2>
|
||||
<h2><?= t('Subtasks export') ?></h2>
|
||||
</div>
|
||||
|
||||
<p class="alert alert-info"><?= t('This report contains all subtasks information for the given date range.') ?></p>
|
||||
|
|
@ -21,4 +21,4 @@
|
|||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-blue"><?= t('Execute') ?></button>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<div class="page-header">
|
||||
<h2><?= t('Daily project summary export for "%s"', $project['name']) ?></h2>
|
||||
<h2><?= t('Daily project summary export') ?></h2>
|
||||
</div>
|
||||
|
||||
<p class="alert alert-info"><?= t('This export contains the number of tasks per column grouped per day.') ?></p>
|
||||
|
|
@ -21,4 +21,4 @@
|
|||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-blue"><?= t('Execute') ?></button>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
<div class="page-header">
|
||||
<h2><?= t('Tasks exportation for "%s"', $project['name']) ?></h2>
|
||||
<h2><?= t('Tasks exportation') ?></h2>
|
||||
</div>
|
||||
|
||||
<p class="alert alert-info"><?= t('This report contains all tasks information for the given date range.') ?></p>
|
||||
|
|
@ -21,4 +21,4 @@
|
|||
<div class="form-actions">
|
||||
<button type="submit" class="btn btn-blue"><?= t('Execute') ?></button>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<?= $this->url->link('K<span>B</span>', 'DashboardController', 'show', array(), false, '', t('Dashboard')) ?>
|
||||
</span>
|
||||
<span class="title">
|
||||
<?php if (isset($project) && ! empty($project)): ?>
|
||||
<?php if (! empty($project) && ! empty($task)): ?>
|
||||
<?= $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
|
||||
<?php else: ?>
|
||||
<?= $this->text->e($title) ?>
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<div class="sidebar sidebar-icons">
|
||||
<h2><?= t('Task #%d', $task['id']) ?></h2>
|
||||
<div class="sidebar-title">
|
||||
<h2><?= t('Task #%d', $task['id']) ?></h2>
|
||||
</div>
|
||||
<ul>
|
||||
<li <?= $this->app->checkMenuSelection('TaskViewController', 'show') ?>>
|
||||
<i class="fa fa-newspaper-o fa-fw"></i>
|
||||
|
|
@ -28,7 +30,9 @@
|
|||
</ul>
|
||||
|
||||
<?php if ($this->user->hasProjectAccess('TaskModificationController', 'edit', $task['project_id'])): ?>
|
||||
<h2><?= t('Actions') ?></h2>
|
||||
<div class="sidebar-title">
|
||||
<h2><?= t('Actions') ?></h2>
|
||||
</div>
|
||||
<ul>
|
||||
<li>
|
||||
<i class="fa fa-pencil-square-o fa-fw"></i>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,7 @@
|
|||
<div class="sidebar">
|
||||
<div class="sidebar-title">
|
||||
<h2><?= t('Information') ?></h2>
|
||||
</div>
|
||||
<ul>
|
||||
<?php if ($this->user->hasAccess('UserViewController', 'show')): ?>
|
||||
<li <?= $this->app->checkMenuSelection('UserViewController', 'show') ?>>
|
||||
|
|
@ -34,7 +37,12 @@
|
|||
<?php endif ?>
|
||||
|
||||
<?= $this->hook->render('template:user:sidebar:information', array('user' => $user)) ?>
|
||||
</ul>
|
||||
|
||||
<div class="sidebar-title">
|
||||
<h2><?= t('Actions') ?></h2>
|
||||
</div>
|
||||
<ul>
|
||||
<?php if ($this->user->isAdmin() || $this->user->isCurrentUser($user['id'])): ?>
|
||||
|
||||
<?php if ($this->user->hasAccess('UserModificationController', 'show')): ?>
|
||||
|
|
|
|||
Loading…
Reference in New Issue