Skip to content
This repository
tree: 3cf467fc16
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 27 lines (25 sloc) 0.607 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
<h2>Medication listing</h2>
<ul class="nav nav-tabs">
  <li>
    <%= link_to "List", list_medications_path %>
  </li>
  <li class="active">
    <%= link_to "Map", map_medications_path %>
  </li>
</ul>
<div class="container-fluid">
  <div class="row-fluid">
    <div class="span2">
      Filters
    </div>
    <div class="span10">
      <div id='map'><div>
    </div>
  </div>
</div>
<%= content_for :tail do %>
  <%= javascript_tag "Map.init(#{@medications.to_json})" %>
<% end %>

<%= content_for :head do %>
  <script src="http://maps.googleapis.com/maps/api/js?v=3&amp;sensor=false"></script>
<% end %>
Something went wrong with that request. Please try again.