scm: use blank? for "root @ branch" in repository tree viewing.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5147 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-03-16 00:51:14 +00:00
parent 2a161b4576
commit 16b02fcfad
1 changed files with 1 additions and 1 deletions

View File

@ -23,6 +23,6 @@ dirs.each do |dir|
# For Mercurial *tip*, @rev and @changeset are nil.
rev_text = @changeset.nil? ? @rev : format_revision(@changeset)
%>
<%= "@ #{h rev_text}" if rev_text %>
<%= "@ #{h rev_text}" unless rev_text.blank? %>
<% html_title(with_leading_slash(path)) -%>