<%- _.last((obj.value || '').split(/:/)) %> |
|
|
<%- name %>
<% if (obj.error) { %>
<%= obj.traceback || '' %>
<% } else { %>
<%- obj.mock ? 'Previewed successfully.' : 'Ran successfully.' %>
<% } %>
<% _.each(obj.results, function (row) { %>
<% _.each(['to', 'cc', 'bcc', 'from', 'reply_to', 'on_behalf_of', 'subject'], function (key) { %>
<% if (key in row) { %>
<%- key %> |
<%- row[key] %> |
<% } %>
<% }) %>
<% if (row.body) { %>body | <%- row.body %> |
<% } %>
<% if (row.html) { %>html | <%= row.html %> |
<% } %>
<% if (row.attachments) { %>
attachments |
<% _.each(row.attachments, function (path) { %>
- <%- path %>
<% }) %>
|
<% } %>
<% }) %>
<%- value %>
<% var args = JSON.parse(row.args), kwargs = JSON.parse(row.kwargs) %>
<% if (_.size(args) + _.size(kwargs)) { %>
<%= _.size(args) ? ' ' + JSON.stringify(args, null, 2) + ' ' : '' %>
<%= _.size(kwargs) ? ' ' + JSON.stringify(kwargs, null, 2) + ' ' : '' %>
<% } %>
|
<%- row.schedule %>
<%- row.next ? moment.utc(row.next).fromNow() : '' %>
|