##// END OF EJS Templates
Do not show revisions links and field on filesystem repositories....
Jean-Philippe Lang -
r8545:346fccf782c8
parent child
Show More
@@ -4,7 +4,7
4
4
5 <%= link_to l(:label_statistics),
5 <%= link_to l(:label_statistics),
6 {:action => 'stats', :id => @project, :repository_id => @repository.identifier_param},
6 {:action => 'stats', :id => @project, :repository_id => @repository.identifier_param},
7 :class => 'icon icon-stats' %>
7 :class => 'icon icon-stats' if @repository.supports_all_revisions? %>
8
8
9 <% form_tag({:action => controller.action_name,
9 <% form_tag({:action => controller.action_name,
10 :id => @project,
10 :id => @project,
@@ -27,6 +27,8
27 :id => 'tag' %>
27 :id => 'tag' %>
28 <% end -%>
28 <% end -%>
29
29
30 | <%= l(:label_revision) %>:
30 <% if @repository.supports_all_revisions? %>
31 <%= text_field_tag 'rev', @rev, :size => 8 %>
31 | <%= l(:label_revision) %>:
32 <%= text_field_tag 'rev', @rev, :size => 8 %>
33 <% end %>
32 <% end -%>
34 <% end -%>
@@ -44,7 +44,7
44 <% end %>
44 <% end %>
45 </p>
45 </p>
46
46
47 <% if true # @path.blank? %>
47 <% if @repository.supports_all_revisions? %>
48 <% content_for :header_tags do %>
48 <% content_for :header_tags do %>
49 <%= auto_discovery_link_tag(
49 <%= auto_discovery_link_tag(
50 :atom, params.merge(
50 :atom, params.merge(
@@ -61,6 +61,10 class RepositoriesFilesystemControllerTest < ActionController::TestCase
61 assert assigns(:entries).size > 0
61 assert assigns(:entries).size > 0
62 assert_not_nil assigns(:changesets)
62 assert_not_nil assigns(:changesets)
63 assert assigns(:changesets).size == 0
63 assert assigns(:changesets).size == 0
64
65 assert_no_tag 'input', :attributes => {:name => 'rev'}
66 assert_no_tag 'a', :content => 'Statistics'
67 assert_no_tag 'a', :content => 'Atom'
64 end
68 end
65
69
66 def test_show_no_extension
70 def test_show_no_extension
@@ -58,6 +58,10 class RepositoriesSubversionControllerTest < ActionController::TestCase
58 assert_template 'show'
58 assert_template 'show'
59 assert_not_nil assigns(:entries)
59 assert_not_nil assigns(:entries)
60 assert_not_nil assigns(:changesets)
60 assert_not_nil assigns(:changesets)
61
62 assert_tag 'input', :attributes => {:name => 'rev'}
63 assert_tag 'a', :content => 'Statistics'
64 assert_tag 'a', :content => 'Atom'
61 end
65 end
62
66
63 def test_browse_root
67 def test_browse_root
General Comments 0
You need to be logged in to leave comments. Login now