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;
|
text-align: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.public-board {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
#board th a {
|
#board th a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
font-size: 150%;
|
font-size: 150%;
|
||||||
|
|||||||
@@ -180,4 +180,5 @@ return array(
|
|||||||
'%d closed tasks' => '%d tâches terminées',
|
'%d closed tasks' => '%d tâches terminées',
|
||||||
'no task for this project' => 'aucune tâche pour ce projet',
|
'no task for this project' => 'aucune tâche pour ce projet',
|
||||||
'Public link' => 'Accès public',
|
'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ń',
|
'%d closed tasks' => '%d zamkniętych zadań',
|
||||||
'no task for this project' => 'brak zadań dla tego projektu',
|
'no task for this project' => 'brak zadań dla tego projektu',
|
||||||
'Public link' => 'Link publiczny',
|
'Public link' => 'Link publiczny',
|
||||||
|
|
||||||
|
/* Missing translations:
|
||||||
|
'There is no column in your project!' => '',
|
||||||
|
*/
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -21,6 +21,10 @@
|
|||||||
</ul>
|
</ul>
|
||||||
</div>
|
</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 ?>">
|
<table id="board" data-project-id="<?= $current_project_id ?>">
|
||||||
<tr>
|
<tr>
|
||||||
<?php $column_with = round(100 / count($columns), 2); ?>
|
<?php $column_with = round(100 / count($columns), 2); ?>
|
||||||
@@ -60,6 +64,8 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<script type="text/javascript" src="assets/js/board.js"></script>
|
<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">
|
<table id="board">
|
||||||
<tr>
|
<tr>
|
||||||
<?php $column_with = round(100 / count($columns), 2); ?>
|
<?php $column_with = round(100 / count($columns), 2); ?>
|
||||||
@@ -37,5 +40,6 @@
|
|||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
<?php endif ?>
|
||||||
|
|
||||||
</section>
|
</section>
|
||||||
Reference in New Issue
Block a user