diff options
author | randx <dmitriy.zaporozhets@gmail.com> | 2012-07-10 22:52:38 +0300 |
---|---|---|
committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-07-10 22:52:38 +0300 |
commit | 1a2bacfb4b4b8f4d79df0335b4daf1d2cfa16d88 (patch) | |
tree | 980046192fa8c9db035936321f9e07ccdcde0814 /config | |
parent | b8425cf173841eb2f7ba95141f364241a81a52a8 (diff) | |
download | gitlab-ce-1a2bacfb4b4b8f4d79df0335b4daf1d2cfa16d88.tar.gz |
Feature: ajax load for tree commit log
Diffstat (limited to 'config')
-rw-r--r-- | config/routes.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 3b33ed8dfd1..73b9f643ad5 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -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, |