projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d9bf36
)
Replacing the non existant image with a pending text on the trace page
author
Shaun McDonald
<shaun@shaunmcdonald.me.uk>
Tue, 10 Jun 2008 17:17:32 +0000
(17:17 +0000)
committer
Shaun McDonald
<shaun@shaunmcdonald.me.uk>
Tue, 10 Jun 2008 17:17:32 +0000
(17:17 +0000)
app/views/trace/view.rhtml
patch
|
blob
|
history
diff --git
a/app/views/trace/view.rhtml
b/app/views/trace/view.rhtml
index d4bdb9745522f9666834f5908c91906a3576bedb..f547f05db4ddeafd85fc1ad4e90888d5026317f9 100644
(file)
--- a/
app/views/trace/view.rhtml
+++ b/
app/views/trace/view.rhtml
@@
-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>