% data = action_data("check_session") %> <% if data["session"] == true %> <% if data["type"] == "jobs" %> <%= render_view %> <% elsif data["type"] == "internships" %> <%= render_view("internships") %> <% elsif data["type"] == "exchanges" %> <%= render_view("exchanges") %> <% elsif data["type"] == "candidates" %> <%= render_view("candidate_show") %> <% end %> <% case data["type"] when "jobs", "internships", "exchanges" %>