/**
 * Copyright (C) 2020 The Android Open Source Project
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

{namespace com.google.gerrit.server.mail.template.ChangeHeader}

{template ChangeHeader kind="text"}
  {@param? attentionSet: list<string>|null}
  {if $attentionSet && length($attentionSet) > 0}
    Attention is currently required from:{sp}
    {for $attentionSetUser, $index in $attentionSet}
      {$attentionSetUser}
      // add commas or dot.
      {if $index == length($attentionSet) - 1}.
      {else},{sp}
      {/if}
    {/for}
    {\n}
    {\n}
  {/if}
{/template}
