diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2019-07-11 20:38:19 +0000 |
---|---|---|
committer | Douglas Barbosa Alexandre <dbalexandre@gmail.com> | 2019-07-11 20:38:19 +0000 |
commit | 26faaa77ca7cb88fbeeef92a64052baa5b4d6712 (patch) | |
tree | 8c1ff68c51c420fbcbed7af0f8d72dfa2fc9bbce /app/helpers | |
parent | 410a506c09c968cd50227df239507d74aa1c706a (diff) | |
download | gitlab-ce-26faaa77ca7cb88fbeeef92a64052baa5b4d6712.tar.gz |
Moves method to TreeHelper
Reuses existing TreeHelper instead of creating a new one just for one
method.
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/tree_helper.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/tree_helper.rb b/app/helpers/tree_helper.rb index 4690b6ffbe1..a3575462de0 100644 --- a/app/helpers/tree_helper.rb +++ b/app/helpers/tree_helper.rb @@ -147,4 +147,11 @@ module TreeHelper def relative_url_root Gitlab.config.gitlab.relative_url_root.presence || '/' end + + # project and path are used on the EE version + def tree_content_data(logs_path, project, path) + { + "logs-path" => logs_path + } + end end |