<% photoUrl = '';%>
<% if (photo) {%>
<% if (photo.match('http|https:\/\/')) {%>
<% photoUrl = photo%>
<% } else { %>
<% photoUrl = $('#website_url').val()+'media/'+photo.replace('/', '/small/') %>
<% } %>
<% } else { %>
<% photoUrl = $('#website_url').val() + 'system/images/noimage.png' %>
<% } %>
<%= name %>