Skip to content

Instantly share code, notes, and snippets.

@dogweather
Created May 13, 2015 19:08
Show Gist options
  • Save dogweather/7cd4bfd826bb367e87af to your computer and use it in GitHub Desktop.
Save dogweather/7cd4bfd826bb367e87af to your computer and use it in GitHub Desktop.
my show for a business
<div class="row">
<div class="col-sm-7">
<div class="page-header" itemscope itemtype="http://schema.org/Restaurant">
<h1 style="margin-bottom:0" itemprop="name">
<%= @business.name %>
</h1>
<address class="text-muted" itemprop="address" itemscope itemtype="http://schema.org/PostalAddress">
<span itemprop="streetAddress"><%= @business.address %></span><br>
<span itemprop="addressLocality"><%= @business.city %></span>, <span itemprop="addressRegion">OR</span> <span itemprop="postalCode"><%= @business.zipcode %></span>
</address>
</div>
<h2>Inspected <%= @inspection.date.to_formatted_s(:long) %></h2>
<%= render partial: 'violations', locals: {inspection: @inspection, show_header: false} %>
<%= render 'previous_inspections' %>
<%= render 'citation' %>
</div>
<div class="col-sm-offset-1 col-sm-4">
<div class="panel panel-default inspection-score-panel">
<h4 class="text-center" style="margin-bottom: 0">Health Score</h4>
<p class="text-center inspection-score"><%= @score %></p>
<p class="text-center text-muted" style="margin-top: -0.25em; padding-top: 0"><small>out of 100</small></p>
</div>
<div>&nbsp;</div>
<div class="panel panel-default" style="height: 302px;">
<iframe
width="100%"
height="300"
frameborder="0" style="border:0;"
src="<%= @google_map_url %>">
</iframe>
</div>
</div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment