summaryrefslogtreecommitdiff
path: root/app/helpers/namespaces_helper.rb
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-08-26 02:43:45 -0500
committerMike Greiling <mike@pixelcog.com>2017-08-26 03:31:15 -0500
commit0a8d0924fe9a1525b92423411dc1bfcdc9760833 (patch)
tree38c58b16e9c52d92a57696c9a9b5a428f5c07005 /app/helpers/namespaces_helper.rb
parent3488e8f011e493a89df60cd0db0fff4086f42bd5 (diff)
downloadgitlab-ce-0a8d0924fe9a1525b92423411dc1bfcdc9760833.tar.gz
expand the help text with links and additional instructions
Diffstat (limited to 'app/helpers/namespaces_helper.rb')
-rw-r--r--app/helpers/namespaces_helper.rb9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/helpers/namespaces_helper.rb b/app/helpers/namespaces_helper.rb
index ca149ac2c20..33d6875a704 100644
--- a/app/helpers/namespaces_helper.rb
+++ b/app/helpers/namespaces_helper.rb
@@ -41,7 +41,14 @@ module NamespacesHelper
elements = namespaces.sort_by(&:human_name).map! do |n|
[display_path ? n.full_path : n.human_name, n.id,
- data: { options_parent: type, visibility_level: n.visibility_level_value, visibility: n.visibility, name: n.name }]
+ data: {
+ options_parent: type,
+ visibility_level: n.visibility_level_value,
+ visibility: n.visibility,
+ name: n.name,
+ show_path: n.is_a?(Group) ? group_path(n) : user_path(n),
+ edit_path: n.is_a?(Group) ? edit_group_path(n) : nil
+ }]
end
[type.camelize, elements]