summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrédéric Guillot <fguillot@users.noreply.github.com>2014-05-09 21:52:14 -0400
committerFrédéric Guillot <fguillot@users.noreply.github.com>2014-05-09 21:52:14 -0400
commit4b834d1cb98c074de254751fa2416a38cbb0cbca (patch)
treec4b5ce293c891aecd8c62fd3547d5712cf3b7a16
parent0a5a11a7c99fe216aa0a707354616411c554370d (diff)
Improve 'task show' title
-rw-r--r--assets/css/app.css51
-rw-r--r--locales/es_ES/translations.php1
-rw-r--r--locales/fr_FR/translations.php3
-rw-r--r--locales/pl_PL/translations.php1
-rw-r--r--locales/pt_BR/translations.php1
-rw-r--r--templates/task_show.php9
6 files changed, 41 insertions, 25 deletions
diff --git a/assets/css/app.css b/assets/css/app.css
index 5dedf33b..576a0bef 100644
--- a/assets/css/app.css
+++ b/assets/css/app.css
@@ -606,7 +606,6 @@ div.task-title a {
font-weight: normal;
}
-#infos,
div.task {
position: relative;
}
@@ -628,24 +627,6 @@ div.task .task-score {
}
/* task view */
-article.task li {
- margin-left: 20px;
- list-style-type: square;
-}
-
-article .task-score {
- font-size: 1.9em;
- right: 10px;
- top: 5px;
-}
-
-#description {
- border: 1px solid #999;
- border-radius: 5px;
- background: #f0f0f0;
- padding: 10px;
-}
-
.task-show {
position: relative;
}
@@ -672,6 +653,38 @@ article .task-score {
line-height: 1.8em;
}
+.task-show-details {
+ position: relative;
+ border-radius: 5px;
+}
+
+.task-show-details h2 {
+ font-size: 1.8em;
+ margin: 0;
+ margin-bottom: 25px;
+ padding: 0;
+ padding-left: 10px;
+ padding-right: 10px;
+}
+
+.task-show-details li {
+ margin-left: 25px;
+ list-style-type: circle;
+}
+
+.task-show-details .task-score {
+ font-size: 1.9em;
+ right: 10px;
+ bottom: 5px;
+}
+
+.task-show-description {
+ border: 1px solid #999;
+ border-radius: 5px;
+ background: #f0f0f0;
+ padding: 10px;
+}
+
/* markdown content */
.markdown {
line-height: 1.4em;
diff --git a/locales/es_ES/translations.php b/locales/es_ES/translations.php
index 4d2a606f..ea7da4ba 100644
--- a/locales/es_ES/translations.php
+++ b/locales/es_ES/translations.php
@@ -304,4 +304,5 @@ return array(
// 'Unlink my Google Account' => '',
// 'Login with my Google Account' => '',
// 'Project not found.' => '',
+ // 'Task #%d' => '',
);
diff --git a/locales/fr_FR/translations.php b/locales/fr_FR/translations.php
index cf676440..0db18901 100644
--- a/locales/fr_FR/translations.php
+++ b/locales/fr_FR/translations.php
@@ -303,5 +303,6 @@ return array(
'Link my Google Account' => 'Lier mon compte Google',
'Unlink my Google Account' => 'Ne plus utiliser mon compte Google',
'Login with my Google Account' => 'Se connecter avec mon compte Google',
- 'Project not found.' => 'Projet introuvable.'
+ 'Project not found.' => 'Projet introuvable.',
+ 'Task #%d' => 'Tâche n°%d',
);
diff --git a/locales/pl_PL/translations.php b/locales/pl_PL/translations.php
index 2a2ddbd8..d2018ef8 100644
--- a/locales/pl_PL/translations.php
+++ b/locales/pl_PL/translations.php
@@ -309,4 +309,5 @@ return array(
// 'Unlink my Google Account' => '',
// 'Login with my Google Account' => '',
// 'Project not found.' => '',
+ // 'Task #%d' => '',
);
diff --git a/locales/pt_BR/translations.php b/locales/pt_BR/translations.php
index 9c740bf7..9ef5a7f8 100644
--- a/locales/pt_BR/translations.php
+++ b/locales/pt_BR/translations.php
@@ -305,4 +305,5 @@ return array(
// 'Unlink my Google Account' => '',
// 'Login with my Google Account' => '',
// 'Project not found.' => '',
+ // 'Task #%d' => '',
);
diff --git a/templates/task_show.php b/templates/task_show.php
index eaabdfb1..97ce7f8c 100644
--- a/templates/task_show.php
+++ b/templates/task_show.php
@@ -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>