summaryrefslogtreecommitdiffstats
path: root/app/views/repositories/changes.rhtml
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-02 20:58:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-02 20:58:02 +0000
commit8c65cc47122b802150bf3591cb4eba4f8c4fb4b4 (patch)
tree220613c121aa31f859cca016c04e7d3cc6fab320 /app/views/repositories/changes.rhtml
parente4724c7626a329cee82875a7e1bbec450eab4667 (diff)
downloadredmine-8c65cc47122b802150bf3591cb4eba4f8c4fb4b4.tar.gz
redmine-8c65cc47122b802150bf3591cb4eba4f8c4fb4b4.zip
Added Annotate/Blame view for Subversion, CVS and Mercurial repositories.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@947 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views/repositories/changes.rhtml')
-rw-r--r--app/views/repositories/changes.rhtml11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/views/repositories/changes.rhtml b/app/views/repositories/changes.rhtml
index 5d1db96ba..f843983db 100644
--- a/app/views/repositories/changes.rhtml
+++ b/app/views/repositories/changes.rhtml
@@ -2,14 +2,17 @@
<h3><%=h @entry.name %></h3>
-<% if @repository.supports_cat? %>
<p>
<% if @entry.is_text? %>
-<%= link_to l(:button_view), {:action => 'entry', :id => @project, :path => @path, :rev => @rev } %> |
+ <% if @repository.supports_cat? %>
+ <%= link_to l(:button_view), {:action => 'entry', :id => @project, :path => @path, :rev => @rev } %> |
+ <% end %>
+ <% if @repository.supports_annotate? %>
+ <%= link_to l(:button_annotate), {:action => 'annotate', :id => @project, :path => @path, :rev => @rev } %> |
+ <% end %>
<% end %>
-<%= link_to l(:button_download), {:action => 'entry', :id => @project, :path => @path, :rev => @rev, :format => 'raw' } %>
+<%= link_to(l(:button_download), {:action => 'entry', :id => @project, :path => @path, :rev => @rev, :format => 'raw' }) if @repository.supports_cat? %>
<%= "(#{number_to_human_size(@entry.size)})" if @entry.size %>
</p>
-<% end %>
<%= render :partial => 'revisions', :locals => {:project => @project, :path => @path, :revisions => @changesets, :entry => @entry }%>