Skip to content

Commit

Permalink
MINOR Replace control with loop
Browse files Browse the repository at this point in the history
  • Loading branch information
mattclegg committed Jun 24, 2013
1 parent 52c0bfd commit 7f73b52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions templates/Includes/Header.ss
Expand Up @@ -12,11 +12,11 @@

<% if Translations %>
<ul id="lang">
<% control Translations %>
<% loop Translations %>
<li>
<a href="$Link" hreflang="$Locale.RFC1766" title="$Title - $Locale.Nice">$Locale.Nice</a>
</li>
<% end_control %>
<% end_loop %>
</ul>
<% end_if %>
</header>
Expand Down
6 changes: 3 additions & 3 deletions templates/Includes/NavChildren.ss
Expand Up @@ -5,12 +5,12 @@
</a>
<% if MenuChildren %>
<ul class="dropdown-menu">
<% control MenuChildren %>
<% loop MenuChildren %>
<li>
<a href="$Link" title="Go to the $Title.XML page">$MenuTitle.XML</a>
</li>
<% end_control %>
<% end_loop %>
</ul>
<% end_if %>
</li>
</li>
<% end_loop %>

0 comments on commit 7f73b52

Please sign in to comment.