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

View File

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