<%
var styleitem = this.styleitem;
_(obj.history.style).chain()
.sortBy(function(item) { return item.id })
.each(function(item) {
print(styleitem({
item: item,
withdel: true,
classes: (obj.style && obj.style.id === item.id) ? 'proj-active' : ''
}));
});
%>
<% if (obj.source) { %>
<%= this.emptystate({message:'You don\'t have any saved styles yet.
Create one now to see it appear in this list.'}) %>
<% } else { %>
<%= this.emptystate({message:'You don\'t have any saved styles yet.
Save your currently active style to see it appear in this list.'}) %>
<% } %>
<%
var sourceitem = this.sourceitem;
_(obj.history.source).chain()
.filter(function(item) { return item.id.indexOf('tmsource://') === 0 })
.sortBy(function(item) { return item.id })
.each(function(item) {
print(sourceitem({
item: item,
withdel: true,
classes: (obj.source && obj.source.id === item.id) ? 'proj-active' : ''
}));
});
%>
<% if (obj.source) { %>
<%= this.emptystate({message:'You don\'t have any saved local sources yet.
Save your currently active source.'}) %>
<% } else { %>
<%= this.emptystate({message:'You don\'t have any saved local sources.
Create a new one now.'}) %>
<% } %>