]> source.dussan.org Git - redmine.git/commitdiff
scm: use blank? for "root @ branch" in repository tree viewing.
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 16 Mar 2011 00:51:14 +0000 (00:51 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 16 Mar 2011 00:51:14 +0000 (00:51 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5147 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/repositories/_breadcrumbs.rhtml

index 026cab93a04df53e65eb9fb298d2f8e62a014a38..63236800a6d18c6dd36f040da9f18500070c8c7a 100644 (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)) -%>