<% if(['running', 'warning'].indexOf(currentSite.status.toLowerCase()) != -1) { %>
<%= currentSite.ip %>
<% } else { %>
<%= currentSite.domain %>
Site Status: <%= currentSite.status %>
<% } %>