<% #Expected Passed-in Parameters Below data=data #Calculate Useful Variables first_version=(nil == data[:registry_settings][1]) tenant_info=data quotas_origin=Yajl::load(data[:registry_settings][0][:settings]) quotas_prev= first_version ? nil : (Yajl::load(data[:registry_settings][1][:settings])) applicant_accepted= (quotas_origin == quotas_prev) message= first_version ? (nil) : (applicant_accepted ? "The applicant has accepted the quotas you proposed. " : "The applicant proposed new quotas. ") message_class=(message==nil) ? 'hidden' : '' who='admin' review=true comment_list=get_comment_list_from_data(data) %>
<%=message%>
Review Project Request <%=erb :tenant_options, :locals => { :who=>who, :review=>review, :tenant_info=>tenant_info, :quotas_origin=>quotas_origin, :quotas_prev=>quotas_prev } %>
<%=erb :comment_list, :locals => {:comment_list=>comment_list} %> <%=erb :reject_comment_dialog%> <%=erb :inform_comment_dialog%>