Display tous link if present only, add link to homepage

This commit is contained in:
Nicolas Le Goff
2013-02-26 20:12:07 +01:00
committed by Romain Neutron
parent 3bd8190b27
commit 77f8e22460

View File

@@ -1,3 +1,5 @@
{# variable "login" a login object #}
<!DOCTYPE html>
<!--[if lt IE 7]> <html ng-app="phraseanetAuthentication" class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html ng-app="phraseanetAuthentication" class="no-js lt-ie9 lt-ie8"> <![endif]-->
@@ -89,9 +91,17 @@
{% block footer_content %}
<div class="footer-block">
<ul class="inline footer-list unstyled">
<li class="item-first" >{% trans "Home" %}</li>
<li>{% trans "Help" %}</li>
<li><a href="{{ path("login_cgus") }}">{% trans "Terms of use" %}</a></li>
<li class="item-first" >
<a href="{{ path("homepage") }}">{% trans "Home" %}</a>
</li>
<li>
<a href="#">{% trans "Help" %}</a>
</li>
{% if login.get_cgus(app) is not empty %}
<li>
<a href="{{ path("login_cgus") }}">{% trans "Terms of use" %}</a>
</li>
{% endif %}
<li>&copy; Copyright Alchemy 2005-{{ "now"|date("Y") }}</li>
</ul>
</div>
@@ -108,8 +118,6 @@
</div><!--/span-->
</div><!--/row-->
</div><!--/.fluid-container-->
{% block javascript %}
{% endblock %}
{% include 'common/analytics.html.twig' %}
</body>
</html>