From 1727d95c4c9a08067bdf72622b1d66d7de122895 Mon Sep 17 00:00:00 2001 From: Connor Turland Date: Wed, 23 Jan 2013 13:55:50 -0500 Subject: [PATCH] re-enabled my work so far on realtime for Fabio --- app/views/maps/show.html.erb | 39 +++++------------------------------- 1 file changed, 5 insertions(+), 34 deletions(-) diff --git a/app/views/maps/show.html.erb b/app/views/maps/show.html.erb index f4a359bf..e9def1b7 100644 --- a/app/views/maps/show.html.erb +++ b/app/views/maps/show.html.erb @@ -1,38 +1,11 @@ <%# # @file # Code to display a map - # TODO: Where is this accessible from? - # Top card is currently hidden to just show beautiful expanses of unadultered - # mappy goodness. + # /maps/:id #%> -
- <% if false %> - - <% end %> + <% if authenticated? %> @@ -74,21 +47,19 @@ <%= render :partial => 'maps/new' %> <% end %> -<% if false %> - <%= form_for @map, :url => realtime_path(@map), :method => "GET", :html => { :id => "MapRealtime"}, remote: true do |form| %> +<%= form_for @map, :url => realtime_path(@map), :method => "GET", :html => { :id => "MapRealtime"}, remote: true do |form| %> <%= form.hidden_field :time, :value => Time.now.to_i %> <%= form.hidden_field :ids, :value => 0 %> - <% end %> <% end %>