<% if (status=='D') { %>

<%= title %>

<% } else if (status=='E') { %>
<% if (has_settings) { %>
<% } else { %>
<% } %>
<% } %>