<div class="line-detail">
  <span class="header-detail">Requested Date : </span>
  <span class="content-detail"><%= @site_request.created_at.strftime("%d %B %Y - %H:%M") %></span>
</div>

<% if @site_request.sites_to_add.count > 0 %>
	<div class="line-detail">
	  <span class="header-detail">Sites To Add : </span>
	  <span class="content-detail">
	  <ol>
		  <% @site_request.sites_to_add.each_with_index do |sid,i| %>
		  	<% site = RegisteredSite.where(:site_domain => sid).first rescue nil %>
		  	<% if !site.nil? %>
		  		<li><a href="http://<%= site.site_domain %>" target="_blank"><%= site.title %></li>
		  	<% else %>
		  		<li><a href="http://<%= sid %>" target="_blank"><%= sid %></a>&nbsp;&nbsp;<i class="fa fa-ban" aria-hidden="true"></i></li>
		  	<% end %>
		  <% end %>
	  </ol>
	  </span>
	</div>
<% end %>
<% if @site_request.sites_added.count > 0 %>
	<div class="line-detail">
	  <span class="header-detail">Sites Added : </span>
	  <span class="content-detail">
	  <ol>
		  <% @site_request.sites_added.each_with_index do |sid,i| %>
		  	<% site = RegisteredSite.find(sid) rescue nil %> 
		  	<% if !site.nil? %>
		  		<li><a href="http://<%= site.site_domain %>" target="_blank"><%= site.title %></li>
		  	<% end %>
		  <% end %>
	  </ol>
	  </span>
	</div>
<% end %>