Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-factor all tpl files that use statement $foreach@iteration % number == 0 #55

Closed
agorshechnikov opened this issue Nov 25, 2015 · 1 comment
Assignees
Labels
Milestone

Comments

@agorshechnikov
Copy link
Contributor

Please re-factor tpl files and replace the statement:

{if $foreach@iteration % number == 0}
    </div>
    <div class="row">
{/if}

with this statement:

{if $foreach@iteration % number == 0 && !$foreach@last}
    </div>
    <div class="row">
{/if}

Reason: previous statement creates empty div with class row.

@agorshechnikov agorshechnikov added this to the 4.0.2 milestone Nov 25, 2015
@glebovsky glebovsky self-assigned this Nov 27, 2015
glebovsky added a commit to intelliants/subrion-template-houses that referenced this issue Nov 27, 2015
glebovsky added a commit to intelliants/subrion-template-cars that referenced this issue Nov 27, 2015
@glebovsky
Copy link
Contributor

Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants