Revision 2581
Added by Jean-Philippe Lang over 16 years ago
trunk/app/views/repositories/_dir_list_content.rhtml | ||
---|---|---|
5 | 5 |
<td style="padding-left: <%=18 * depth%>px;" class="filename"> |
6 | 6 |
<% if entry.is_dir? %> |
7 | 7 |
<span class="expander" onclick="<%= remote_function :url => {:action => 'browse', :id => @project, :path => to_path_param(entry.path), :rev => @rev, :depth => (depth + 1), :parent_id => tr_id}, |
8 |
:method => :get, |
|
8 | 9 |
:update => { :success => tr_id }, |
9 | 10 |
:position => :after, |
10 | 11 |
:success => "scmEntryLoaded('#{tr_id}')", |
trunk/app/views/repositories/browse.rhtml | ||
---|---|---|
1 | 1 |
<div class="contextual"> |
2 |
<% form_tag do %> |
|
2 |
<% form_tag({}, :method => :get) do %>
|
|
3 | 3 |
<%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %> |
4 | 4 |
<% end %> |
5 | 5 |
</div> |
trunk/app/views/repositories/show.rhtml | ||
---|---|---|
3 | 3 |
<%= link_to l(:label_statistics), {:action => 'stats', :id => @project}, :class => 'icon icon-stats' %> |
4 | 4 |
|
5 | 5 |
<% if [email protected]? && authorize_for('repositories', 'browse') -%> |
6 |
<% form_tag(:action => 'browse', :id => @project) do -%>
|
|
6 |
<% form_tag({:action => 'browse', :id => @project}, :method => :get) do -%>
|
|
7 | 7 |
| <%= l(:label_revision) %>: <%= text_field_tag 'rev', @rev, :size => 5 %> |
8 | 8 |
<% end -%> |
9 | 9 |
<% end -%> |
trunk/config/routes.rb | ||
---|---|---|
209 | 209 |
|
210 | 210 |
map.with_options :controller => 'repositories' do |repositories| |
211 | 211 |
repositories.with_options :conditions => {:method => :get} do |repository_views| |
212 |
repositories.connect 'projects/:id/repository', :action => 'show'
|
|
213 |
repositories.connect 'projects/:id/repository/edit', :action => 'edit'
|
|
214 |
repositories.connect 'projects/:id/repository/statistics', :action => 'stats'
|
|
215 |
repositories.connect 'projects/:id/repository/revisions', :action => 'revisions'
|
|
216 |
repositories.connect 'projects/:id/repository/revisions.:format', :action => 'revisions'
|
|
217 |
repositories.connect 'projects/:id/repository/revisions/:rev', :action => 'revision'
|
|
218 |
repositories.connect 'projects/:id/repository/revisions/:rev/diff', :action => 'diff'
|
|
219 |
repositories.connect 'projects/:id/repository/revisions/:rev/diff.:format', :action => 'diff'
|
|
220 |
repositories.connect 'projects/:id/repository/revisions/:rev/:action/*path'
|
|
221 |
repositories.connect 'projects/:id/repository/:action/*path'
|
|
212 |
repository_views.connect 'projects/:id/repository', :action => 'show'
|
|
213 |
repository_views.connect 'projects/:id/repository/edit', :action => 'edit'
|
|
214 |
repository_views.connect 'projects/:id/repository/statistics', :action => 'stats'
|
|
215 |
repository_views.connect 'projects/:id/repository/revisions', :action => 'revisions'
|
|
216 |
repository_views.connect 'projects/:id/repository/revisions.:format', :action => 'revisions'
|
|
217 |
repository_views.connect 'projects/:id/repository/revisions/:rev', :action => 'revision'
|
|
218 |
repository_views.connect 'projects/:id/repository/revisions/:rev/diff', :action => 'diff'
|
|
219 |
repository_views.connect 'projects/:id/repository/revisions/:rev/diff.:format', :action => 'diff'
|
|
220 |
repository_views.connect 'projects/:id/repository/revisions/:rev/:action/*path'
|
|
221 |
repository_views.connect 'projects/:id/repository/:action/*path'
|
|
222 | 222 |
end |
223 | 223 |
|
224 | 224 |
repositories.connect 'projects/:id/repository/edit', :action => 'edit', :conditions => {:method => :post} |
Also available in: Unified diff
Fixing repository routes (#2967).