Skip to content

Commit

Permalink
Merge pull request #72 from craue/patch-3
Browse files Browse the repository at this point in the history
removed some superfluous parentheses
  • Loading branch information
webda2l committed Sep 23, 2013
2 parents b9caaa4 + 15508df commit 2e67a02
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Resources/views/default.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
{% for translationsFields in form %}
{% set locale = translationsFields.vars.name %}

<li {% if (app.request.locale == locale) %}class="active"{% endif %}>
<li {% if app.request.locale == locale %}class="active"{% endif %}>
<a href="javascript:void(0)" data-toggle="tab" data-target=".a2lix_translationsFields-{{ locale }}">
{{ locale|capitalize }}
</a>
Expand All @@ -16,7 +16,7 @@
{% for translationsFields in form %}
{% set locale = translationsFields.vars.name %}

<div class="a2lix_translationsFields-{{ locale }} tab-pane {% if (app.request.locale == locale) %}active{% endif %}">
<div class="a2lix_translationsFields-{{ locale }} tab-pane {% if app.request.locale == locale %}active{% endif %}">
{{ form_widget(translationsFields) }}
</div>
{% endfor %}
Expand All @@ -29,17 +29,16 @@
{% block a2lix_translations_gedmo_widget %}
{% if form.vars.simple_way %}
{{ block('a2lix_translations_widget') }}

{% else %}
<div class="a2lix_translations tabbable">
<ul class="a2lix_translationsLocales nav nav-tabs">
{% for translationsLocales in form %}
{% set isDefaultLocale = ('defaultLocale' == translationsLocales.vars.name) %}
{% set isDefaultLocale = 'defaultLocale' == translationsLocales.vars.name %}

{% for translationsFields in translationsLocales %}
{% set locale = translationsFields.vars.name %}

<li {% if (app.request.locale == locale) %}class="active"{% endif %}>
<li {% if app.request.locale == locale %}class="active"{% endif %}>
<a href="javascript:void(0)" data-toggle="tab" data-target=".a2lix_translationsFields-{{ locale }}">
{{ locale|capitalize }} {% if isDefaultLocale %}[Default]{% endif %}
</a>
Expand All @@ -53,7 +52,7 @@
{% for translationsFields in translationsLocales %}
{% set locale = translationsFields.vars.name %}

<div class="a2lix_translationsFields-{{ locale }} tab-pane {% if (app.request.locale == locale) %}active{% endif %}">
<div class="a2lix_translationsFields-{{ locale }} tab-pane {% if app.request.locale == locale %}active{% endif %}">
{{ form_widget(translationsFields) }}
</div>
{% endfor %}
Expand Down

0 comments on commit 2e67a02

Please sign in to comment.