aliases.tmpl 219 B

123456789101112
  1. <?js
  2. var data = obj || {};
  3. ?>
  4. <?js if (data.aliases.length > 1) { ?>
  5. <ul>
  6. <?js data.aliases.forEach(function(alias) { ?>
  7. <li><?js= alias ?></li>
  8. <?js }); ?>
  9. </ul>
  10. <?js } else { ?>
  11. <?js= data.aliases[0] ?>
  12. <?js } ?>