mirror of
https://github.com/NixOS/hydra.git
synced 2024-10-17 16:37:26 -04:00
Don't show hidden projects on front page if user not logged in
This commit is contained in:
parent
998df1657e
commit
3e6372a597
|
@ -53,11 +53,13 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
[% FOREACH p IN projects %]
|
[% FOREACH p IN projects %]
|
||||||
<tr class="project [% IF !p.enabled %]disabled-project[% END %]">
|
[% IF !p.hidden || c.user_exists %]
|
||||||
<td><span class="[% IF !p.enabled %]disabled-project[% END %] [%+ IF p.hidden %]hidden-project[% END %]">[% INCLUDE renderProjectName project=p.name inRow=1 %]</span></td>
|
<tr class="project [% IF !p.enabled %]disabled-project[% END %]">
|
||||||
<td>[% HTML.escape(p.displayname) %]</td>
|
<td><span class="[% IF !p.enabled %]disabled-project[% END %] [%+ IF p.hidden %]hidden-project[% END %]">[% INCLUDE renderProjectName project=p.name inRow=1 %]</span></td>
|
||||||
<td>[% WRAPPER maybeLink uri=p.homepage %][% HTML.escape(p.description) %][% END %]</td>
|
<td>[% HTML.escape(p.displayname) %]</td>
|
||||||
</tr>
|
<td>[% WRAPPER maybeLink uri=p.homepage %][% HTML.escape(p.description) %][% END %]</td>
|
||||||
|
</tr>
|
||||||
|
[% END %]
|
||||||
[% END %]
|
[% END %]
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
Loading…
Reference in a new issue