<% img_root = "https://s3.us-east-2.amazonaws.com/pbogardcom-images/" %>
<% img_path = "computers/old/#{computer["name"].parameterize}" %>

<% 
uri = URI("#{img_root}#{img_path}.png")
request = Net::HTTP.new(uri.host)
response = request.request_head(uri.path)
img = response.code.to_i == 200 ? "#{img_path}.png" : "#{img_path}.jpg" %>

Response <%= response.code %>

<div id="<%= computer["name"].parameterize %>" class="container computer-summary">
  <div class="col-sm-12">
    <h3 id="<%= computer["name"].parameterize %>"><%= computer["name"] %> <small><%= [computer["from"],computer["to"]].join("&ndash;").html_safe if computer["from"] && computer["to"]%></small></h3>
    <%= "<p>#{computer["description"]}</p>".html_safe if computer["description"] %>
  </div>
  <div class="col-sm-4"><%= project_image(img, attribution: computer["attribution"]) %></div>
  <div class="col-sm-8">
    <%= "<h4>#{computer["model"]}</h4>".html_safe if computer["model"] %>
    <%= [%Q(<ul class="list-unstyled">), computer["specs"].map{|spec| "<li>#{spec}</li>"}, %Q(</ul>)].join.html_safe if computer["specs"] %>
  </div>
</div>
<% img_root = "https://s3.us-east-2.amazonaws.com/pbogardcom-images/" %>
<% img_path = "computers/old/#{computer["name"].parameterize}" %>

<% 
uri = URI("#{img_root}#{img_path}.png")
request = Net::HTTP.new(uri.host)
response = request.request_head(uri.path)
img = response.code.to_i == 200 ? "#{img_path}.png" : "#{img_path}.jpg" %>

<div id="<%= computer["name"].parameterize %>" class="container computer-summary">
  <div class="col-sm-12">
    <h3 id="<%= computer["name"].parameterize %>"><%= computer["name"] %> <small><%= [computer["from"],computer["to"]].join("&ndash;").html_safe if computer["from"] && computer["to"]%></small></h3>
    <%= "<p>#{computer["description"]}</p>".html_safe if computer["description"] %>
  </div>
  <div class="col-sm-4"><%= project_image(img, attribution: computer["attribution"]) %></div>
  <div class="col-sm-8">
    <%= "<h4>#{computer["model"]}</h4>".html_safe if computer["model"] %>
    <%= [%Q(<ul class="list-unstyled">), computer["specs"].map{|spec| "<li>#{spec}</li>"}, %Q(</ul>)].join.html_safe if computer["specs"] %>
  </div>
</div>
Remove status text from computer summary partial
Remove status text from computer summary partial
