Better size for person menu

This commit is contained in:
Marc Ducobu 2015-08-25 17:27:45 +02:00
parent 7798cfedfa
commit 39a859d85e
2 changed files with 20 additions and 20 deletions

View File

@ -87,7 +87,7 @@
<div id="person_details" class="content parent">
<section class="container">
<div class="grid-8">
<div class="grid-9">
{# Flash messages ! #}
<div class="container">
{% for flashMessage in app.session.flashbag.get('success') %}
@ -118,12 +118,14 @@
{% block personcontent %}<!-- block personcontent empty -->{%endblock%}
</div>
{# Note: activeRouteKey should be defined in Controller or child layout #}
{{ chill_menu('person', {
'layout': 'ChillPersonBundle::menu.html.twig',
'args' : {'person_id': person.id },
'activeRouteKey': activeRouteKey
}) }}
<div class="grid-3">
{# Note: activeRouteKey should be defined in Controller or child layout #}
{{ chill_menu('person', {
'layout': 'ChillPersonBundle::menu.html.twig',
'args' : {'person_id': person.id },
'activeRouteKey': activeRouteKey
}) }}
</div>
</section>
</div>
</div>

View File

@ -14,16 +14,14 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
#}
<div class="grid-4">
<ul class="tab-nav">
{% for route in routes %}
<li class="{% spaceless %}
{% if route.key == activeRouteKey %}
active
{% endif %}
{% endspaceless %} ">
<a href="{{ path(route.key, args ) }}" >{{ route.label|trans }}</a>
</li>
{% endfor %}
</ul>
</div>
<ul class="tab-nav">
{% for route in routes %}
<li class="{% spaceless %}
{% if route.key == activeRouteKey %}
active
{% endif %}
{% endspaceless %} ">
<a href="{{ path(route.key, args ) }}" >{{ route.label|trans }}</a>
</li>
{% endfor %}
</ul>