forked from lix-project/hydra
Don't show an empty projects list
This commit is contained in:
parent
a0b58b6b62
commit
27a740d4b1
1 changed files with 9 additions and 0 deletions
|
@ -15,6 +15,8 @@
|
|||
|
||||
<h2>Projects</h2>
|
||||
|
||||
[% IF projects.size != 0 %]
|
||||
|
||||
<p>The following projects are hosted on this server:</p>
|
||||
|
||||
<table class="table table-condensed table-striped clickable-rows">
|
||||
|
@ -36,4 +38,11 @@
|
|||
</tbody>
|
||||
</table>
|
||||
|
||||
[% ELSE %]
|
||||
|
||||
<div class="alert alert-warning">Hydra has no projects yet. Please
|
||||
<a href="[% c.uri_for(c.controller('Project').action_for('create')) %]">create a project</a>.</div>
|
||||
|
||||
[% END %]
|
||||
|
||||
[% END %]
|
||||
|
|
Loading…
Reference in a new issue