Display an error message when there is no column for a project

This commit is contained in:
Frédéric Guillot
2014-02-23 20:34:55 -05:00
parent 2298594455
commit 50051e776f
5 changed files with 92 additions and 73 deletions

View File

@@ -426,6 +426,10 @@ nav .active a {
text-align: right;
}
.public-board {
margin-top: 5px;
}
#board th a {
text-decoration: none;
font-size: 150%;

View File

@@ -180,4 +180,5 @@ return array(
'%d closed tasks' => '%d tâches terminées',
'no task for this project' => 'aucune tâche pour ce projet',
'Public link' => 'Accès public',
'There is no column in your project!' => 'Il n\'y a aucune colonne dans votre projet !',
);

View File

@@ -180,4 +180,8 @@ return array(
'%d closed tasks' => '%d zamkniętych zadań',
'no task for this project' => 'brak zadań dla tego projektu',
'Public link' => 'Link publiczny',
/* Missing translations:
'There is no column in your project!' => '',
*/
);

View File

@@ -21,6 +21,10 @@
</ul>
</div>
<?php if (empty($columns)): ?>
<p class="alert alert-error"><?= t('There is no column in your project!') ?></p>
<?php else: ?>
<table id="board" data-project-id="<?= $current_project_id ?>">
<tr>
<?php $column_with = round(100 / count($columns), 2); ?>
@@ -60,6 +64,8 @@
</tr>
</table>
<?php endif ?>
</section>
<script type="text/javascript" src="assets/js/board.js"></script>

View File

@@ -1,5 +1,8 @@
<section id="main">
<section id="main" class="public-board">
<?php if (empty($columns)): ?>
<p class="alert alert-error"><?= t('There is no column in your project!') ?></p>
<?php else: ?>
<table id="board">
<tr>
<?php $column_with = round(100 / count($columns), 2); ?>
@@ -37,5 +40,6 @@
<?php endforeach ?>
</tr>
</table>
<?php endif ?>
</section>