]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/trace/view.rhtml
Replacing the non existant image with a pending text on the trace page
[rails.git] / app / views / trace / view.rhtml
index d4bdb9745522f9666834f5908c91906a3576bedb..f547f05db4ddeafd85fc1ad4e90888d5026317f9 100644 (file)
@@ -1,6 +1,10 @@
 <h2><%= h(@title) %></h2>
 
-<img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
+  <% if @trace.inserted %>
+    <img src="<%= url_for :controller => 'trace', :action => 'picture', :id => @trace.id, :display_name => @trace.user.display_name %>">
+  <% else %>
+    <span style="color:red">PENDING</span>
+  <% end %>
 
 <table border="0">
   <tr>