Feature: ajax load for tree commit log
This commit is contained in:
parent
b8425cf173
commit
1a2bacfb4b
9 changed files with 206 additions and 20 deletions
|
@ -117,6 +117,8 @@ Gitlab::Application.routes.draw do
|
|||
|
||||
member do
|
||||
get "tree", :constraints => { :id => /[a-zA-Z.\/0-9_\-]+/ }
|
||||
get "logs_tree", :constraints => { :id => /[a-zA-Z.\/0-9_\-]+/ }
|
||||
|
||||
get "blob",
|
||||
:constraints => {
|
||||
:id => /[a-zA-Z.0-9\/_\-]+/,
|
||||
|
@ -132,6 +134,14 @@ Gitlab::Application.routes.draw do
|
|||
:path => /.*/
|
||||
}
|
||||
|
||||
# tree viewer
|
||||
get "logs_tree/:path" => "refs#logs_tree",
|
||||
:as => :logs_file,
|
||||
:constraints => {
|
||||
:id => /[a-zA-Z.0-9\/_\-]+/,
|
||||
:path => /.*/
|
||||
}
|
||||
|
||||
# blame
|
||||
get "blame/:path" => "refs#blame",
|
||||
:as => :blame_file,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue