Replacing the non existant image with a pending text on the trace page
This commit is contained in:
parent
7d9bf3634c
commit
955122e412
1 changed files with 5 additions and 1 deletions
|
@ -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>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue