<%= link_to l(:label_statistics),
{:action => 'stats', :id => @project, :repository_id => @repository.identifier_param},
- :class => 'icon icon-stats' %>
+ :class => 'icon icon-stats' if @repository.supports_all_revisions? %>
<% form_tag({:action => controller.action_name,
:id => @project,
:id => 'tag' %>
<% end -%>
- | <%= l(:label_revision) %>:
- <%= text_field_tag 'rev', @rev, :size => 8 %>
+ <% if @repository.supports_all_revisions? %>
+ | <%= l(:label_revision) %>:
+ <%= text_field_tag 'rev', @rev, :size => 8 %>
+ <% end %>
<% end -%>
<% end %>
</p>
-<% if true # @path.blank? %>
+<% if @repository.supports_all_revisions? %>
<% content_for :header_tags do %>
<%= auto_discovery_link_tag(
:atom, params.merge(
assert assigns(:entries).size > 0
assert_not_nil assigns(:changesets)
assert assigns(:changesets).size == 0
+
+ assert_no_tag 'input', :attributes => {:name => 'rev'}
+ assert_no_tag 'a', :content => 'Statistics'
+ assert_no_tag 'a', :content => 'Atom'
end
def test_show_no_extension
assert_template 'show'
assert_not_nil assigns(:entries)
assert_not_nil assigns(:changesets)
+
+ assert_tag 'input', :attributes => {:name => 'rev'}
+ assert_tag 'a', :content => 'Statistics'
+ assert_tag 'a', :content => 'Atom'
end
def test_browse_root