Esempio n. 1
0
  return choices.map((choice) => html`
<div class=pushSelection data-name="${choice.Name}">
  <check-icon-sk title="Currently installed."></check-icon-sk>
  <pre><a target=_blank href="${linkToCommit(choice.Hash)}">${shorten(choice.Hash)}</a></pre>
  <pre class=built>${diffDate(choice.Built)}</pre>
  <pre class=userid title="${choice.UserID}">${shorten(choice.UserID)}</pre>
  <span>${choice.Note}</span>
  ${dirtyIndicator(choice)}
</div>`);
Esempio n. 2
0
const listBots = (bots) => bots.map(bot => {
  return html`
<tr>
  <td>${bot.bot_id}</td>
  <td>${_keyDimension(bot)}</td>
  <td>${bot.status}</td>
  <td>${diffDate(bot.since)} ago</td>
  <td>${bot.silenced}</td>
</tr>`
});