mirror of
https://github.com/google/nomulus.git
synced 2025-08-05 09:21:49 +02:00
Roll back changelist 180942763
*** Reason for rollback *** Breaks the FOSS build. We'll reincorporate this change once Closure Rules is properly updated to accommodate it. *** Original change description *** Change all foreach loops in Soy templates to use the for loop syntax Soy supports 2 kinds of loops: foreach- for iterating over items in a collection e.g. {foreach $item in $list}...{/foreach} for - for indexed iteration e.g. {for $i in range(0, 10)}...{/for} The reason Soy has 2 different loops is an accident of history, Soy didn’t use to have a proper grammar for expressions and so the alternate ‘for...range’ syntax was added to make it possible to write indexed loops. As the gramma... *** ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=180961695
This commit is contained in:
parent
d52a701f50
commit
ffcfa283f6
24 changed files with 103 additions and 109 deletions
|
@ -59,7 +59,7 @@
|
|||
</th>
|
||||
</tr>
|
||||
{if isNonnull($item['host:addr'])}
|
||||
{for $addr in $item['host:addr']}
|
||||
{foreach $addr in $item['host:addr']}
|
||||
{if not $readonly}
|
||||
<input type="hidden"
|
||||
name="host:oldAddr[{index($addr)}].value"
|
||||
|
@ -70,7 +70,7 @@
|
|||
{param name: 'host:addr[' + index($addr) + '].value' /}
|
||||
{param value: $item['host:addr'][index($addr)] /}
|
||||
{/call}
|
||||
{/for}
|
||||
{/foreach}
|
||||
{/if}
|
||||
<tr id="domain-host-addrs-footer"></tr>
|
||||
</table>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue