<%
var delText, deletedText;
delText = isRemoveFromAlbum? "remove" : "moved";
deletedText = isRemoveFromAlbum ? "removed" : "deleted";
%>
<%if (type=="allPhotos" || type=="allVideos"){ %>
The following item(s) will be moved to the Trash:
<%_.each(photoItems, function(item) { %>
-
< <%= item.get('name') %> >
<%});%>
<% } else if(type=="videoAlbum" || type=="photoAlbum") {%>
<% if(moduleType=='video'){ %>
The following item(s) will be <%=actionType %>:
<%}else{%>
The following item(s) will be <%=actionType %>:
<%}%>
<% if(photoItems.length == 0) {
if(Array.isArray(albumNames)) {
_.each(albumNames, function(albumName) { %>
-
< <%= albumName %> >
<%});
} else { %>
-
< <%= albumNames %> >
<% }
} %>
<% _.each(photoItems, function(item) { %>
-
< <%= item.get('name') %> >
<% }); %>
<% } else if (photoItems) {%>
The following item(s) will be moved to the Trash:
<% if(photoItems.length == 0) {
if(Array.isArray(albumNames)) {
_.each(albumNames, function(albumName) { %>
-
< <%= albumName %> >
<%});
} else { %>
-
< <%= albumNames %> >
<% }
} %>
<% _.each(photoItems, function(item) { %>
-
< <%= item.get('name') %> >
<% }); %>
<% }%>
<% if (type == "photoAlbum" || type == "videoAlbum") { %>