Display an error message when there is no column for a project
This commit is contained in:
@@ -426,6 +426,10 @@ nav .active a {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.public-board {
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
#board th a {
|
||||
text-decoration: none;
|
||||
font-size: 150%;
|
||||
|
||||
@@ -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 !',
|
||||
);
|
||||
|
||||
@@ -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!' => '',
|
||||
*/
|
||||
);
|
||||
|
||||
@@ -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>
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user