Improve 'task show' title

This commit is contained in:
Frédéric Guillot
2014-05-09 21:52:14 -04:00
parent 0a5a11a7c9
commit 4b834d1cb9
6 changed files with 41 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
<section id="main">
<div class="page-header">
<h2>#<?= $task['id'] ?> - <?= Helper\escape($task['title']) ?></h2>
<h2><?= Helper\escape($task['project_name']) ?> &gt; <?= t('Task #%d', $task['id']) ?></h2>
<ul>
<li><a href="?controller=board&amp;action=show&amp;project_id=<?= $task['project_id'] ?>"><?= t('Back to the board') ?></a></li>
</ul>
@@ -26,8 +26,8 @@
</div>
<div class="task-show-main">
<h2><?= t('Details') ?></h2>
<article id="infos" class="task task-<?= $task['color_id'] ?>">
<article class="task task-<?= $task['color_id'] ?> task-show-details">
<h2><?= Helper\escape($task['title']) ?></h2>
<?php if ($task['score']): ?>
<span class="task-score"><?= Helper\escape($task['score']) ?></span>
<?php endif ?>
@@ -71,7 +71,7 @@
<h2><?= t('Description') ?></h2>
<?php if ($task['description']): ?>
<article id="description" class="markdown">
<article class="markdown task-show-description">
<?= Helper\markdown($task['description']) ?: t('There is no description.') ?>
</article>
<?php else: ?>
@@ -115,7 +115,6 @@
</div>
</form>
<?php endif ?>
</div>
</section>