Replacing the non existant image with a pending text on the trace page

This commit is contained in:
Shaun McDonald 2008-06-10 17:17:32 +00:00
parent 7d9bf3634c
commit 955122e412

View 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>