Skip to content

Commit

Permalink
[webui] do not show "show diff" link on first commit, it does not wor…
Browse files Browse the repository at this point in the history
…k and confuse the user
  • Loading branch information
adrianschroeter committed Jan 5, 2012
1 parent b12aef2 commit 9f9c770
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webui/app/views/package/_commit_item.html.erb
Expand Up @@ -25,7 +25,7 @@
:package => @package, :project => @project,
:rev => commit[:revision], :linkrev => 'base'}, :style => "margin-left: 2em") %>
<%= link_to('Show diff', :controller => :package, :action => :rdiff,
:package => @package, :project => @project, :rev => commit[:revision], :linkrev => 'base') %>
:package => @package, :project => @project, :rev => commit[:revision], :linkrev => 'base') unless commit[:revision] == 1 %>
<% else %>
<i>Revision <%=rev.to_s%> not found</i>
<% end %>

0 comments on commit 9f9c770

Please sign in to comment.